Add serviceOrder rest services
[externalapi/nbi.git] / src / main / java / org / onap / nbi / apis / serviceorder / model / ServiceCharacteristic.java
1 /*
2  * API ServiceOrder serviceOrder API designed for ONAP Beijing Release. This API is build from TMF
3  * open API16.5 + applied TMF guideline 3.0
4  *
5  * OpenAPI spec version: 0.1.1_inProgress
6  * 
7  *
8  * NOTE: This class is auto generated by the swagger code generator program.
9  * https://github.com/swagger-api/swagger-codegen.git Do not edit the class manually.
10  *
11  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
12  * in compliance with the License. You may obtain a copy of the License at
13  *
14  * http://www.apache.org/licenses/LICENSE-2.0
15  *
16  * Unless required by applicable law or agreed to in writing, software distributed under the License
17  * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
18  * or implied. See the License for the specific language governing permissions and limitations under
19  * the License.
20  */
21
22
23 package org.onap.nbi.apis.serviceorder.model;
24
25 import com.fasterxml.jackson.annotation.JsonProperty;
26 import io.swagger.annotations.ApiModel;
27 import io.swagger.annotations.ApiModelProperty;
28 import javax.validation.constraints.NotNull;
29 import java.util.Objects;
30
31 /**
32  * ServiceCharacteristic
33  */
34 @ApiModel(description = "ServiceCharacteristic")
35 @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaJerseyServerCodegen",
36         date = "2018-02-19T14:00:30.767Z")
37 public class ServiceCharacteristic {
38     @JsonProperty("name")
39     private String name = null;
40
41     @JsonProperty("valueType")
42     private String valueType = null;
43
44     @JsonProperty("value")
45     private Value value = null;
46
47     public ServiceCharacteristic name(String name) {
48         this.name = name;
49         return this;
50     }
51
52     /**
53      * Name of characteristic
54      *
55      * @return name
56      **/
57     @JsonProperty("name")
58     @ApiModelProperty(required = true, value = "Name of characteristic")
59     @NotNull
60     public String getName() {
61         return name;
62     }
63
64     public void setName(String name) {
65         this.name = name;
66     }
67
68     public ServiceCharacteristic valueType(String valueType) {
69         this.valueType = valueType;
70         return this;
71     }
72
73     /**
74      * @return valueType
75      **/
76     @JsonProperty("valueType")
77     @ApiModelProperty(value = "")
78     public String getValueType() {
79         return valueType;
80     }
81
82     public void setValueType(String valueType) {
83         this.valueType = valueType;
84     }
85
86     public ServiceCharacteristic value(Value value) {
87         this.value = value;
88         return this;
89     }
90
91     /**
92      * @return value
93      **/
94     @JsonProperty("value")
95     @ApiModelProperty(value = "")
96     public Value getValue() {
97         return value;
98     }
99
100     public void setValue(Value value) {
101         this.value = value;
102     }
103
104
105     @Override
106     public boolean equals(java.lang.Object o) {
107         if (this == o) {
108             return true;
109         }
110         if (o == null || getClass() != o.getClass()) {
111             return false;
112         }
113         ServiceCharacteristic serviceCharacteristic = (ServiceCharacteristic) o;
114         return Objects.equals(this.name, serviceCharacteristic.name)
115                 && Objects.equals(this.valueType, serviceCharacteristic.valueType)
116                 && Objects.equals(this.value, serviceCharacteristic.value);
117     }
118
119     @Override
120     public int hashCode() {
121         return Objects.hash(name, valueType, value);
122     }
123
124
125     @Override
126     public String toString() {
127         StringBuilder sb = new StringBuilder();
128         sb.append("class ServiceCharacteristic {\n");
129
130         sb.append("    name: ").append(toIndentedString(name)).append("\n");
131         sb.append("    valueType: ").append(toIndentedString(valueType)).append("\n");
132         sb.append("    value: ").append(toIndentedString(value)).append("\n");
133         sb.append("}");
134         return sb.toString();
135     }
136
137     /**
138      * Convert the given object to string with each line indented by 4 spaces (except the first
139      * line).
140      */
141     private String toIndentedString(java.lang.Object o) {
142         if (o == null) {
143             return "null";
144         }
145         return o.toString().replace("\n", "\n    ");
146     }
147 }
148