Add Apache license header per file
[externalapi/nbi.git] / src / main / java / org / onap / nbi / apis / serviceorder / model / ServiceSpecificationRef.java
1 /**
2  *
3  *     Copyright (c) 2017 Orange.  All rights reserved.
4  *
5  *     Licensed under the Apache License, Version 2.0 (the "License");
6  *     you may not use this file except in compliance with the License.
7  *     You may obtain a copy of the License at
8  *
9  *         http://www.apache.org/licenses/LICENSE-2.0
10  *
11  *     Unless required by applicable law or agreed to in writing, software
12  *     distributed under the License is distributed on an "AS IS" BASIS,
13  *     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  *     See the License for the specific language governing permissions and
15  *     limitations under the License.
16  */
17 /*
18  * API ServiceOrder serviceOrder API designed for ONAP Beijing Release. This API is build from TMF
19  * open API16.5 + applied TMF guideline 3.0
20  *
21  * OpenAPI spec version: 0.1.1_inProgress
22  * 
23  *
24  * NOTE: This class is auto generated by the swagger code generator program.
25  * https://github.com/swagger-api/swagger-codegen.git Do not edit the class manually.
26  *
27  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
28  * in compliance with the License. You may obtain a copy of the License at
29  *
30  * http://www.apache.org/licenses/LICENSE-2.0
31  *
32  * Unless required by applicable law or agreed to in writing, software distributed under the License
33  * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
34  * or implied. See the License for the specific language governing permissions and limitations under
35  * the License.
36  */
37
38
39 package org.onap.nbi.apis.serviceorder.model;
40
41 import com.fasterxml.jackson.annotation.JsonProperty;
42 import io.swagger.annotations.ApiModel;
43 import io.swagger.annotations.ApiModelProperty;
44 import javax.validation.constraints.NotNull;
45 import java.util.Objects;
46
47 /**
48  * The service specification (default values, etc. are fetched from the catalogue).
49  */
50 @ApiModel(description = "The service specification (default values, etc. are fetched from the catalogue).")
51 @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaJerseyServerCodegen",
52         date = "2018-02-19T14:00:30.767Z")
53 public class ServiceSpecificationRef {
54     @JsonProperty("id")
55     private String id = null;
56
57     @JsonProperty("href")
58     private String href = null;
59
60     @JsonProperty("name")
61     private String name = null;
62
63     @JsonProperty("version")
64     private String version = null;
65
66     @JsonProperty("targetServiceSchema")
67     private TargetServiceSchema targetServiceSchema = null;
68
69     @JsonProperty("@type")
70     private String type = null;
71
72     @JsonProperty("@schemaLocation")
73     private String schemaLocation = null;
74
75     @JsonProperty("@baseType")
76     private String baseType = null;
77
78     public ServiceSpecificationRef id(String id) {
79         this.id = id;
80         return this;
81     }
82
83     /**
84      * Unique identifier of the service specification
85      *
86      * @return id
87      **/
88     @JsonProperty("id")
89     @ApiModelProperty(required = true, value = "Unique identifier of the service specification")
90     @NotNull
91     public String getId() {
92         return id;
93     }
94
95     public void setId(String id) {
96         this.id = id;
97     }
98
99     public ServiceSpecificationRef href(String href) {
100         this.href = href;
101         return this;
102     }
103
104     /**
105      * Reference of the service specification
106      *
107      * @return href
108      **/
109     @JsonProperty("href")
110     @ApiModelProperty(value = "Reference of the service specification")
111     public String getHref() {
112         return href;
113     }
114
115     public void setHref(String href) {
116         this.href = href;
117     }
118
119     public ServiceSpecificationRef name(String name) {
120         this.name = name;
121         return this;
122     }
123
124     /**
125      * @return name
126      **/
127     @JsonProperty("name")
128     @ApiModelProperty(value = "")
129     public String getName() {
130         return name;
131     }
132
133     public void setName(String name) {
134         this.name = name;
135     }
136
137     public ServiceSpecificationRef version(String version) {
138         this.version = version;
139         return this;
140     }
141
142     /**
143      * @return version
144      **/
145     @JsonProperty("version")
146     @ApiModelProperty(value = "")
147     public String getVersion() {
148         return version;
149     }
150
151     public void setVersion(String version) {
152         this.version = version;
153     }
154
155     public ServiceSpecificationRef targetServiceSchema(TargetServiceSchema targetServiceSchema) {
156         this.targetServiceSchema = targetServiceSchema;
157         return this;
158     }
159
160     /**
161      * @return targetServiceSchema
162      **/
163     @JsonProperty("targetServiceSchema")
164     @ApiModelProperty(value = "")
165     public TargetServiceSchema getTargetServiceSchema() {
166         return targetServiceSchema;
167     }
168
169     public void setTargetServiceSchema(TargetServiceSchema targetServiceSchema) {
170         this.targetServiceSchema = targetServiceSchema;
171     }
172
173     public ServiceSpecificationRef type(String type) {
174         this.type = type;
175         return this;
176     }
177
178     /**
179      * @return type
180      **/
181     @JsonProperty("@type")
182     @ApiModelProperty(value = "")
183     public String getType() {
184         return type;
185     }
186
187     public void setType(String type) {
188         this.type = type;
189     }
190
191     public ServiceSpecificationRef schemaLocation(String schemaLocation) {
192         this.schemaLocation = schemaLocation;
193         return this;
194     }
195
196     /**
197      * @return schemaLocation
198      **/
199     @JsonProperty("@schemaLocation")
200     @ApiModelProperty(value = "")
201     public String getSchemaLocation() {
202         return schemaLocation;
203     }
204
205     public void setSchemaLocation(String schemaLocation) {
206         this.schemaLocation = schemaLocation;
207     }
208
209     public ServiceSpecificationRef baseType(String baseType) {
210         this.baseType = baseType;
211         return this;
212     }
213
214     /**
215      * @return baseType
216      **/
217     @JsonProperty("@baseType")
218     @ApiModelProperty(value = "")
219     public String getBaseType() {
220         return baseType;
221     }
222
223     public void setBaseType(String baseType) {
224         this.baseType = baseType;
225     }
226
227
228     @Override
229     public boolean equals(java.lang.Object o) {
230         if (this == o) {
231             return true;
232         }
233         if (o == null || getClass() != o.getClass()) {
234             return false;
235         }
236         ServiceSpecificationRef serviceSpecificationRef = (ServiceSpecificationRef) o;
237         return Objects.equals(this.id, serviceSpecificationRef.id)
238                 && Objects.equals(this.href, serviceSpecificationRef.href)
239                 && Objects.equals(this.name, serviceSpecificationRef.name)
240                 && Objects.equals(this.version, serviceSpecificationRef.version)
241                 && Objects.equals(this.targetServiceSchema, serviceSpecificationRef.targetServiceSchema)
242                 && Objects.equals(this.type, serviceSpecificationRef.type)
243                 && Objects.equals(this.schemaLocation, serviceSpecificationRef.schemaLocation)
244                 && Objects.equals(this.baseType, serviceSpecificationRef.baseType);
245     }
246
247     @Override
248     public int hashCode() {
249         return Objects.hash(id, href, name, version, targetServiceSchema, type, schemaLocation, baseType);
250     }
251
252
253     @Override
254     public String toString() {
255         StringBuilder sb = new StringBuilder();
256         sb.append("class ServiceSpecificationRef {\n");
257
258         sb.append("    id: ").append(toIndentedString(id)).append("\n");
259         sb.append("    href: ").append(toIndentedString(href)).append("\n");
260         sb.append("    name: ").append(toIndentedString(name)).append("\n");
261         sb.append("    version: ").append(toIndentedString(version)).append("\n");
262         sb.append("    targetServiceSchema: ").append(toIndentedString(targetServiceSchema)).append("\n");
263         sb.append("    type: ").append(toIndentedString(type)).append("\n");
264         sb.append("    schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n");
265         sb.append("    baseType: ").append(toIndentedString(baseType)).append("\n");
266         sb.append("}");
267         return sb.toString();
268     }
269
270     /**
271      * Convert the given object to string with each line indented by 4 spaces (except the first
272      * line).
273      */
274     private String toIndentedString(java.lang.Object o) {
275         if (o == null) {
276             return "null";
277         }
278         return o.toString().replace("\n", "\n    ");
279     }
280 }
281