Add serviceOrder rest services
[externalapi/nbi.git] / src / main / java / org / onap / nbi / apis / serviceorder / model / Place.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  * Used to defined a place useful for the service (for example a delivery geographical place)
33  */
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")
37 public class Place {
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("role")
48     private String role = null;
49
50     @JsonProperty("@referredType")
51     private String referredType = null;
52
53     @JsonProperty("@schemaLocation")
54     private String schemaLocation = null;
55
56     public Place id(String id) {
57         this.id = id;
58         return this;
59     }
60
61     /**
62      * @return id
63      **/
64     @JsonProperty("id")
65     @ApiModelProperty(value = "")
66     public String getId() {
67         return id;
68     }
69
70     public void setId(String id) {
71         this.id = id;
72     }
73
74     public Place href(String href) {
75         this.href = href;
76         return this;
77     }
78
79     /**
80      * Reference of a place (for instance in google map)
81      *
82      * @return href
83      **/
84     @JsonProperty("href")
85     @ApiModelProperty(value = "Reference of a place (for instance in google map)")
86     public String getHref() {
87         return href;
88     }
89
90     public void setHref(String href) {
91         this.href = href;
92     }
93
94     public Place name(String name) {
95         this.name = name;
96         return this;
97     }
98
99     /**
100      * @return name
101      **/
102     @JsonProperty("name")
103     @ApiModelProperty(value = "")
104     public String getName() {
105         return name;
106     }
107
108     public void setName(String name) {
109         this.name = name;
110     }
111
112     public Place role(String role) {
113         this.role = role;
114         return this;
115     }
116
117     /**
118      * The role of the place (e.g. delivery address, install site etc)
119      *
120      * @return role
121      **/
122     @JsonProperty("role")
123     @ApiModelProperty(required = true, value = "The role of the place (e.g. delivery address, install site etc)")
124     @NotNull
125     public String getRole() {
126         return role;
127     }
128
129     public void setRole(String role) {
130         this.role = role;
131     }
132
133     public Place referredType(String referredType) {
134         this.referredType = referredType;
135         return this;
136     }
137
138     /**
139      * @return referredType
140      **/
141     @JsonProperty("@referredType")
142     @ApiModelProperty(value = "")
143     public String getReferredType() {
144         return referredType;
145     }
146
147     public void setReferredType(String referredType) {
148         this.referredType = referredType;
149     }
150
151     public Place schemaLocation(String schemaLocation) {
152         this.schemaLocation = schemaLocation;
153         return this;
154     }
155
156     /**
157      * @return schemaLocation
158      **/
159     @JsonProperty("@schemaLocation")
160     @ApiModelProperty(value = "")
161     public String getSchemaLocation() {
162         return schemaLocation;
163     }
164
165     public void setSchemaLocation(String schemaLocation) {
166         this.schemaLocation = schemaLocation;
167     }
168
169
170     @Override
171     public boolean equals(java.lang.Object o) {
172         if (this == o) {
173             return true;
174         }
175         if (o == null || getClass() != o.getClass()) {
176             return false;
177         }
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);
183     }
184
185     @Override
186     public int hashCode() {
187         return Objects.hash(id, href, name, role, referredType, schemaLocation);
188     }
189
190
191     @Override
192     public String toString() {
193         StringBuilder sb = new StringBuilder();
194         sb.append("class Place {\n");
195
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");
202         sb.append("}");
203         return sb.toString();
204     }
205
206     /**
207      * Convert the given object to string with each line indented by 4 spaces (except the first
208      * line).
209      */
210     private String toIndentedString(java.lang.Object o) {
211         if (o == null) {
212             return "null";
213         }
214         return o.toString().replace("\n", "\n    ");
215     }
216 }
217