Add serviceOrder rest services
[externalapi/nbi.git] / src / main / java / org / onap / nbi / apis / serviceorder / model / RelatedParty.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  * A related party defines party which are involved in this order and the role they are playing
33  */
34 @ApiModel(description = "A related party defines party which are involved in this order and the role they are playing")
35 @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaJerseyServerCodegen",
36         date = "2018-02-19T14:00:30.767Z")
37 public class RelatedParty {
38     @JsonProperty("id")
39     private String id = null;
40
41     @JsonProperty("href")
42     private String href = null;
43
44     @JsonProperty("role")
45     private String role = null;
46
47     @JsonProperty("name")
48     private String name = null;
49
50     @JsonProperty("@referredType")
51     private String referredType = null;
52
53     public RelatedParty id(String id) {
54         this.id = id;
55         return this;
56     }
57
58     /**
59      * Unique identifier of a related party
60      *
61      * @return id
62      **/
63     @JsonProperty("id")
64     @ApiModelProperty(required = true, value = "Unique identifier of a related party")
65     @NotNull
66     public String getId() {
67         return id;
68     }
69
70     public void setId(String id) {
71         this.id = id;
72     }
73
74     public RelatedParty href(String href) {
75         this.href = href;
76         return this;
77     }
78
79     /**
80      * An hyperlink to the party
81      *
82      * @return href
83      **/
84     @JsonProperty("href")
85     @ApiModelProperty(value = "An hyperlink to the party")
86     public String getHref() {
87         return href;
88     }
89
90     public void setHref(String href) {
91         this.href = href;
92     }
93
94     public RelatedParty role(String role) {
95         this.role = role;
96         return this;
97     }
98
99     /**
100      * The role of the related party (e.g. Owner, requester, fullfiller etc)
101      *
102      * @return role
103      **/
104     @JsonProperty("role")
105     @ApiModelProperty(required = true, value = "The role of the related party (e.g. Owner, requester, fullfiller etc)")
106     @NotNull
107     public String getRole() {
108         return role;
109     }
110
111     public void setRole(String role) {
112         this.role = role;
113     }
114
115     public RelatedParty name(String name) {
116         this.name = name;
117         return this;
118     }
119
120     /**
121      * Name of the related party
122      *
123      * @return name
124      **/
125     @JsonProperty("name")
126     @ApiModelProperty(value = "Name of the related party")
127     public String getName() {
128         return name;
129     }
130
131     public void setName(String name) {
132         this.name = name;
133     }
134
135     public RelatedParty referredType(String referredType) {
136         this.referredType = referredType;
137         return this;
138     }
139
140     /**
141      * @return referredType
142      **/
143     @JsonProperty("@referredType")
144     @ApiModelProperty(value = "")
145     public String getReferredType() {
146         return referredType;
147     }
148
149     public void setReferredType(String referredType) {
150         this.referredType = referredType;
151     }
152
153
154     @Override
155     public boolean equals(java.lang.Object o) {
156         if (this == o) {
157             return true;
158         }
159         if (o == null || getClass() != o.getClass()) {
160             return false;
161         }
162         RelatedParty relatedParty = (RelatedParty) o;
163         return Objects.equals(this.id, relatedParty.id) && Objects.equals(this.href, relatedParty.href)
164                 && Objects.equals(this.role, relatedParty.role) && Objects.equals(this.name, relatedParty.name)
165                 && Objects.equals(this.referredType, relatedParty.referredType);
166     }
167
168     @Override
169     public int hashCode() {
170         return Objects.hash(id, href, role, name, referredType);
171     }
172
173
174     @Override
175     public String toString() {
176         StringBuilder sb = new StringBuilder();
177         sb.append("class RelatedParty {\n");
178
179         sb.append("    id: ").append(toIndentedString(id)).append("\n");
180         sb.append("    href: ").append(toIndentedString(href)).append("\n");
181         sb.append("    role: ").append(toIndentedString(role)).append("\n");
182         sb.append("    name: ").append(toIndentedString(name)).append("\n");
183         sb.append("    referredType: ").append(toIndentedString(referredType)).append("\n");
184         sb.append("}");
185         return sb.toString();
186     }
187
188     /**
189      * Convert the given object to string with each line indented by 4 spaces (except the first
190      * line).
191      */
192     private String toIndentedString(java.lang.Object o) {
193         if (o == null) {
194             return "null";
195         }
196         return o.toString().replace("\n", "\n    ");
197     }
198 }
199