Add serviceOrder rest services
[externalapi/nbi.git] / src / main / java / org / onap / nbi / apis / serviceorder / model / ServiceSpecificationRef.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  * The service specification (default values, etc. are fetched from the catalogue).
33  */
34 @ApiModel(description = "The service specification (default values, etc. are fetched from the catalogue).")
35 @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaJerseyServerCodegen",
36         date = "2018-02-19T14:00:30.767Z")
37 public class ServiceSpecificationRef {
38     @JsonProperty("id")
39     private String id = null;
40
41     @JsonProperty("href")
42     private String href = null;
43
44     @JsonProperty("name")
45     private String name = null;
46
47     @JsonProperty("version")
48     private String version = null;
49
50     @JsonProperty("targetServiceSchema")
51     private TargetServiceSchema targetServiceSchema = null;
52
53     @JsonProperty("@type")
54     private String type = null;
55
56     @JsonProperty("@schemaLocation")
57     private String schemaLocation = null;
58
59     @JsonProperty("@baseType")
60     private String baseType = null;
61
62     public ServiceSpecificationRef id(String id) {
63         this.id = id;
64         return this;
65     }
66
67     /**
68      * Unique identifier of the service specification
69      *
70      * @return id
71      **/
72     @JsonProperty("id")
73     @ApiModelProperty(required = true, value = "Unique identifier of the service specification")
74     @NotNull
75     public String getId() {
76         return id;
77     }
78
79     public void setId(String id) {
80         this.id = id;
81     }
82
83     public ServiceSpecificationRef href(String href) {
84         this.href = href;
85         return this;
86     }
87
88     /**
89      * Reference of the service specification
90      *
91      * @return href
92      **/
93     @JsonProperty("href")
94     @ApiModelProperty(value = "Reference of the service specification")
95     public String getHref() {
96         return href;
97     }
98
99     public void setHref(String href) {
100         this.href = href;
101     }
102
103     public ServiceSpecificationRef name(String name) {
104         this.name = name;
105         return this;
106     }
107
108     /**
109      * @return name
110      **/
111     @JsonProperty("name")
112     @ApiModelProperty(value = "")
113     public String getName() {
114         return name;
115     }
116
117     public void setName(String name) {
118         this.name = name;
119     }
120
121     public ServiceSpecificationRef version(String version) {
122         this.version = version;
123         return this;
124     }
125
126     /**
127      * @return version
128      **/
129     @JsonProperty("version")
130     @ApiModelProperty(value = "")
131     public String getVersion() {
132         return version;
133     }
134
135     public void setVersion(String version) {
136         this.version = version;
137     }
138
139     public ServiceSpecificationRef targetServiceSchema(TargetServiceSchema targetServiceSchema) {
140         this.targetServiceSchema = targetServiceSchema;
141         return this;
142     }
143
144     /**
145      * @return targetServiceSchema
146      **/
147     @JsonProperty("targetServiceSchema")
148     @ApiModelProperty(value = "")
149     public TargetServiceSchema getTargetServiceSchema() {
150         return targetServiceSchema;
151     }
152
153     public void setTargetServiceSchema(TargetServiceSchema targetServiceSchema) {
154         this.targetServiceSchema = targetServiceSchema;
155     }
156
157     public ServiceSpecificationRef type(String type) {
158         this.type = type;
159         return this;
160     }
161
162     /**
163      * @return type
164      **/
165     @JsonProperty("@type")
166     @ApiModelProperty(value = "")
167     public String getType() {
168         return type;
169     }
170
171     public void setType(String type) {
172         this.type = type;
173     }
174
175     public ServiceSpecificationRef schemaLocation(String schemaLocation) {
176         this.schemaLocation = schemaLocation;
177         return this;
178     }
179
180     /**
181      * @return schemaLocation
182      **/
183     @JsonProperty("@schemaLocation")
184     @ApiModelProperty(value = "")
185     public String getSchemaLocation() {
186         return schemaLocation;
187     }
188
189     public void setSchemaLocation(String schemaLocation) {
190         this.schemaLocation = schemaLocation;
191     }
192
193     public ServiceSpecificationRef baseType(String baseType) {
194         this.baseType = baseType;
195         return this;
196     }
197
198     /**
199      * @return baseType
200      **/
201     @JsonProperty("@baseType")
202     @ApiModelProperty(value = "")
203     public String getBaseType() {
204         return baseType;
205     }
206
207     public void setBaseType(String baseType) {
208         this.baseType = baseType;
209     }
210
211
212     @Override
213     public boolean equals(java.lang.Object o) {
214         if (this == o) {
215             return true;
216         }
217         if (o == null || getClass() != o.getClass()) {
218             return false;
219         }
220         ServiceSpecificationRef serviceSpecificationRef = (ServiceSpecificationRef) o;
221         return Objects.equals(this.id, serviceSpecificationRef.id)
222                 && Objects.equals(this.href, serviceSpecificationRef.href)
223                 && Objects.equals(this.name, serviceSpecificationRef.name)
224                 && Objects.equals(this.version, serviceSpecificationRef.version)
225                 && Objects.equals(this.targetServiceSchema, serviceSpecificationRef.targetServiceSchema)
226                 && Objects.equals(this.type, serviceSpecificationRef.type)
227                 && Objects.equals(this.schemaLocation, serviceSpecificationRef.schemaLocation)
228                 && Objects.equals(this.baseType, serviceSpecificationRef.baseType);
229     }
230
231     @Override
232     public int hashCode() {
233         return Objects.hash(id, href, name, version, targetServiceSchema, type, schemaLocation, baseType);
234     }
235
236
237     @Override
238     public String toString() {
239         StringBuilder sb = new StringBuilder();
240         sb.append("class ServiceSpecificationRef {\n");
241
242         sb.append("    id: ").append(toIndentedString(id)).append("\n");
243         sb.append("    href: ").append(toIndentedString(href)).append("\n");
244         sb.append("    name: ").append(toIndentedString(name)).append("\n");
245         sb.append("    version: ").append(toIndentedString(version)).append("\n");
246         sb.append("    targetServiceSchema: ").append(toIndentedString(targetServiceSchema)).append("\n");
247         sb.append("    type: ").append(toIndentedString(type)).append("\n");
248         sb.append("    schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n");
249         sb.append("    baseType: ").append(toIndentedString(baseType)).append("\n");
250         sb.append("}");
251         return sb.toString();
252     }
253
254     /**
255      * Convert the given object to string with each line indented by 4 spaces (except the first
256      * line).
257      */
258     private String toIndentedString(java.lang.Object o) {
259         if (o == null) {
260             return "null";
261         }
262         return o.toString().replace("\n", "\n    ");
263     }
264 }
265