3 * Copyright (c) 2017 Orange. All rights reserved.
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
9 * http://www.apache.org/licenses/LICENSE-2.0
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.
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
21 * OpenAPI spec version: 0.1.1_inProgress
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.
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
30 * http://www.apache.org/licenses/LICENSE-2.0
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
39 package org.onap.nbi.apis.serviceorder.model;
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;
48 * The service specification (default values, etc. are fetched from the catalogue).
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 {
55 private String id = null;
58 private String href = null;
61 private String name = null;
63 @JsonProperty("version")
64 private String version = null;
66 @JsonProperty("targetServiceSchema")
67 private TargetServiceSchema targetServiceSchema = null;
69 @JsonProperty("@type")
70 private String type = null;
72 @JsonProperty("@schemaLocation")
73 private String schemaLocation = null;
75 @JsonProperty("@baseType")
76 private String baseType = null;
78 public ServiceSpecificationRef id(String id) {
84 * Unique identifier of the service specification
89 @ApiModelProperty(required = true, value = "Unique identifier of the service specification")
91 public String getId() {
95 public void setId(String id) {
99 public ServiceSpecificationRef href(String href) {
105 * Reference of the service specification
109 @JsonProperty("href")
110 @ApiModelProperty(value = "Reference of the service specification")
111 public String getHref() {
115 public void setHref(String href) {
119 public ServiceSpecificationRef name(String name) {
127 @JsonProperty("name")
128 @ApiModelProperty(value = "")
129 public String getName() {
133 public void setName(String name) {
137 public ServiceSpecificationRef version(String version) {
138 this.version = version;
145 @JsonProperty("version")
146 @ApiModelProperty(value = "")
147 public String getVersion() {
151 public void setVersion(String version) {
152 this.version = version;
155 public ServiceSpecificationRef targetServiceSchema(TargetServiceSchema targetServiceSchema) {
156 this.targetServiceSchema = targetServiceSchema;
161 * @return targetServiceSchema
163 @JsonProperty("targetServiceSchema")
164 @ApiModelProperty(value = "")
165 public TargetServiceSchema getTargetServiceSchema() {
166 return targetServiceSchema;
169 public void setTargetServiceSchema(TargetServiceSchema targetServiceSchema) {
170 this.targetServiceSchema = targetServiceSchema;
173 public ServiceSpecificationRef type(String type) {
181 @JsonProperty("@type")
182 @ApiModelProperty(value = "")
183 public String getType() {
187 public void setType(String type) {
191 public ServiceSpecificationRef schemaLocation(String schemaLocation) {
192 this.schemaLocation = schemaLocation;
197 * @return schemaLocation
199 @JsonProperty("@schemaLocation")
200 @ApiModelProperty(value = "")
201 public String getSchemaLocation() {
202 return schemaLocation;
205 public void setSchemaLocation(String schemaLocation) {
206 this.schemaLocation = schemaLocation;
209 public ServiceSpecificationRef baseType(String baseType) {
210 this.baseType = baseType;
217 @JsonProperty("@baseType")
218 @ApiModelProperty(value = "")
219 public String getBaseType() {
223 public void setBaseType(String baseType) {
224 this.baseType = baseType;
229 public boolean equals(java.lang.Object o) {
233 if (o == null || getClass() != o.getClass()) {
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);
248 public int hashCode() {
249 return Objects.hash(id, href, name, version, targetServiceSchema, type, schemaLocation, baseType);
254 public String toString() {
255 StringBuilder sb = new StringBuilder();
256 sb.append("class ServiceSpecificationRef {\n");
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");
267 return sb.toString();
271 * Convert the given object to string with each line indented by 4 spaces (except the first
274 private String toIndentedString(java.lang.Object o) {
278 return o.toString().replace("\n", "\n ");