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 * Used to defined a place useful for the service (for example a delivery geographical place)
34 @ApiModel(description = "Used to defined a place useful for the service (for example a delivery geographical place)")
35 @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaJerseyServerCodegen",
36 date = "2018-02-19T14:00:30.767Z")
39 private String id = null;
42 private String href = null;
45 private String name = null;
48 private String role = null;
50 @JsonProperty("@referredType")
51 private String referredType = null;
53 @JsonProperty("@schemaLocation")
54 private String schemaLocation = null;
56 public Place id(String id) {
65 @ApiModelProperty(value = "")
66 public String getId() {
70 public void setId(String id) {
74 public Place href(String href) {
80 * Reference of a place (for instance in google map)
85 @ApiModelProperty(value = "Reference of a place (for instance in google map)")
86 public String getHref() {
90 public void setHref(String href) {
94 public Place name(String name) {
102 @JsonProperty("name")
103 @ApiModelProperty(value = "")
104 public String getName() {
108 public void setName(String name) {
112 public Place role(String role) {
118 * The role of the place (e.g. delivery address, install site etc)
122 @JsonProperty("role")
123 @ApiModelProperty(required = true, value = "The role of the place (e.g. delivery address, install site etc)")
125 public String getRole() {
129 public void setRole(String role) {
133 public Place referredType(String referredType) {
134 this.referredType = referredType;
139 * @return referredType
141 @JsonProperty("@referredType")
142 @ApiModelProperty(value = "")
143 public String getReferredType() {
147 public void setReferredType(String referredType) {
148 this.referredType = referredType;
151 public Place schemaLocation(String schemaLocation) {
152 this.schemaLocation = schemaLocation;
157 * @return schemaLocation
159 @JsonProperty("@schemaLocation")
160 @ApiModelProperty(value = "")
161 public String getSchemaLocation() {
162 return schemaLocation;
165 public void setSchemaLocation(String schemaLocation) {
166 this.schemaLocation = schemaLocation;
171 public boolean equals(java.lang.Object o) {
175 if (o == null || getClass() != o.getClass()) {
178 Place place = (Place) o;
179 return Objects.equals(this.id, place.id) && Objects.equals(this.href, place.href)
180 && Objects.equals(this.name, place.name) && Objects.equals(this.role, place.role)
181 && Objects.equals(this.referredType, place.referredType)
182 && Objects.equals(this.schemaLocation, place.schemaLocation);
186 public int hashCode() {
187 return Objects.hash(id, href, name, role, referredType, schemaLocation);
192 public String toString() {
193 StringBuilder sb = new StringBuilder();
194 sb.append("class Place {\n");
196 sb.append(" id: ").append(toIndentedString(id)).append("\n");
197 sb.append(" href: ").append(toIndentedString(href)).append("\n");
198 sb.append(" name: ").append(toIndentedString(name)).append("\n");
199 sb.append(" role: ").append(toIndentedString(role)).append("\n");
200 sb.append(" referredType: ").append(toIndentedString(referredType)).append("\n");
201 sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n");
203 return sb.toString();
207 * Convert the given object to string with each line indented by 4 spaces (except the first
210 private String toIndentedString(java.lang.Object o) {
214 return o.toString().replace("\n", "\n ");