2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
19 * SPDX-License-Identifier: Apache-2.0
20 * ============LICENSE_END=========================================================
23 package org.onap.policy.models.tosca;
25 import com.google.gson.annotations.SerializedName;
28 import lombok.ToString;
31 * Class to represent the Constraint of property in TOSCA definition.
33 * @author Chenfei Gao (cgao@research.att.com)
37 public class ToscaConstraint {
41 @SerializedName("equal")
46 @SerializedName("greater_than")
47 private String greaterThan;
51 @SerializedName("greater_or_equal")
52 private String greaterOrEqual;
56 @SerializedName("less_than")
57 private String lessThan;
61 @SerializedName("less_or_equal")
62 private String lessOrEqual;
66 @SerializedName("in_range")
67 private String inRange;
71 @SerializedName("valid_values")
72 private String validValues;
76 @SerializedName("length")
77 private String length;
81 @SerializedName("min_length")
82 private String minLength;
86 @SerializedName("max_length")
87 private String maxLength;
91 @SerializedName("pattern")
92 private String pattern;