Remove lombok version and override
[policy/models.git] / models-tosca / src / main / java / org / onap / policy / models / tosca / ToscaConstraint.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP Policy Model
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
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
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.
18  *
19  * SPDX-License-Identifier: Apache-2.0
20  * ============LICENSE_END=========================================================
21  */
22
23 package org.onap.policy.models.tosca;
24
25 import com.google.gson.annotations.SerializedName;
26 import lombok.Getter;
27 import lombok.Setter;
28 import lombok.ToString;
29
30 /**
31  * Class to represent the Constraint of property in TOSCA definition.
32  *
33  * @author Chenfei Gao (cgao@research.att.com)
34  *
35  */
36 @ToString
37 public class ToscaConstraint {
38
39     @Getter
40     @Setter
41     @SerializedName("equal")
42     private String equal;
43
44     @Getter
45     @Setter
46     @SerializedName("greater_than")
47     private String greaterThan;
48
49     @Getter
50     @Setter
51     @SerializedName("greater_or_equal")
52     private String greaterOrEqual;
53
54     @Getter
55     @Setter
56     @SerializedName("less_than")
57     private String lessThan;
58
59     @Getter
60     @Setter
61     @SerializedName("less_or_equal")
62     private String lessOrEqual;
63
64     @Getter
65     @Setter
66     @SerializedName("in_range")
67     private String inRange;
68
69     @Getter
70     @Setter
71     @SerializedName("valid_values")
72     private String validValues;
73
74     @Getter
75     @Setter
76     @SerializedName("length")
77     private String length;
78
79     @Getter
80     @Setter
81     @SerializedName("min_length")
82     private String minLength;
83
84     @Getter
85     @Setter
86     @SerializedName("max_length")
87     private String maxLength;
88
89     @Getter
90     @Setter
91     @SerializedName("pattern")
92     private String pattern;
93 }