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
5 * OpenAPI spec version: 0.1.1_inProgress
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.
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
14 * http://www.apache.org/licenses/LICENSE-2.0
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
23 package org.onap.nbi.apis.serviceorder.model;
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;
32 * The service specification (default values, etc. are fetched from the catalogue).
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 {
39 private String id = null;
42 private String href = null;
45 private String name = null;
47 @JsonProperty("version")
48 private String version = null;
50 @JsonProperty("targetServiceSchema")
51 private TargetServiceSchema targetServiceSchema = null;
53 @JsonProperty("@type")
54 private String type = null;
56 @JsonProperty("@schemaLocation")
57 private String schemaLocation = null;
59 @JsonProperty("@baseType")
60 private String baseType = null;
62 public ServiceSpecificationRef id(String id) {
68 * Unique identifier of the service specification
73 @ApiModelProperty(required = true, value = "Unique identifier of the service specification")
75 public String getId() {
79 public void setId(String id) {
83 public ServiceSpecificationRef href(String href) {
89 * Reference of the service specification
94 @ApiModelProperty(value = "Reference of the service specification")
95 public String getHref() {
99 public void setHref(String href) {
103 public ServiceSpecificationRef name(String name) {
111 @JsonProperty("name")
112 @ApiModelProperty(value = "")
113 public String getName() {
117 public void setName(String name) {
121 public ServiceSpecificationRef version(String version) {
122 this.version = version;
129 @JsonProperty("version")
130 @ApiModelProperty(value = "")
131 public String getVersion() {
135 public void setVersion(String version) {
136 this.version = version;
139 public ServiceSpecificationRef targetServiceSchema(TargetServiceSchema targetServiceSchema) {
140 this.targetServiceSchema = targetServiceSchema;
145 * @return targetServiceSchema
147 @JsonProperty("targetServiceSchema")
148 @ApiModelProperty(value = "")
149 public TargetServiceSchema getTargetServiceSchema() {
150 return targetServiceSchema;
153 public void setTargetServiceSchema(TargetServiceSchema targetServiceSchema) {
154 this.targetServiceSchema = targetServiceSchema;
157 public ServiceSpecificationRef type(String type) {
165 @JsonProperty("@type")
166 @ApiModelProperty(value = "")
167 public String getType() {
171 public void setType(String type) {
175 public ServiceSpecificationRef schemaLocation(String schemaLocation) {
176 this.schemaLocation = schemaLocation;
181 * @return schemaLocation
183 @JsonProperty("@schemaLocation")
184 @ApiModelProperty(value = "")
185 public String getSchemaLocation() {
186 return schemaLocation;
189 public void setSchemaLocation(String schemaLocation) {
190 this.schemaLocation = schemaLocation;
193 public ServiceSpecificationRef baseType(String baseType) {
194 this.baseType = baseType;
201 @JsonProperty("@baseType")
202 @ApiModelProperty(value = "")
203 public String getBaseType() {
207 public void setBaseType(String baseType) {
208 this.baseType = baseType;
213 public boolean equals(java.lang.Object o) {
217 if (o == null || getClass() != o.getClass()) {
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);
232 public int hashCode() {
233 return Objects.hash(id, href, name, version, targetServiceSchema, type, schemaLocation, baseType);
238 public String toString() {
239 StringBuilder sb = new StringBuilder();
240 sb.append("class ServiceSpecificationRef {\n");
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");
251 return sb.toString();
255 * Convert the given object to string with each line indented by 4 spaces (except the first
258 private String toIndentedString(java.lang.Object o) {
262 return o.toString().replace("\n", "\n ");