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 * A related party defines party which are involved in this order and the role they are playing
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 {
39 private String id = null;
42 private String href = null;
45 private String role = null;
48 private String name = null;
50 @JsonProperty("@referredType")
51 private String referredType = null;
53 public RelatedParty id(String id) {
59 * Unique identifier of a related party
64 @ApiModelProperty(required = true, value = "Unique identifier of a related party")
66 public String getId() {
70 public void setId(String id) {
74 public RelatedParty href(String href) {
80 * An hyperlink to the party
85 @ApiModelProperty(value = "An hyperlink to the party")
86 public String getHref() {
90 public void setHref(String href) {
94 public RelatedParty role(String role) {
100 * The role of the related party (e.g. Owner, requester, fullfiller etc)
104 @JsonProperty("role")
105 @ApiModelProperty(required = true, value = "The role of the related party (e.g. Owner, requester, fullfiller etc)")
107 public String getRole() {
111 public void setRole(String role) {
115 public RelatedParty name(String name) {
121 * Name of the related party
125 @JsonProperty("name")
126 @ApiModelProperty(value = "Name of the related party")
127 public String getName() {
131 public void setName(String name) {
135 public RelatedParty referredType(String referredType) {
136 this.referredType = referredType;
141 * @return referredType
143 @JsonProperty("@referredType")
144 @ApiModelProperty(value = "")
145 public String getReferredType() {
149 public void setReferredType(String referredType) {
150 this.referredType = referredType;
155 public boolean equals(java.lang.Object o) {
159 if (o == null || getClass() != o.getClass()) {
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);
169 public int hashCode() {
170 return Objects.hash(id, href, role, name, referredType);
175 public String toString() {
176 StringBuilder sb = new StringBuilder();
177 sb.append("class RelatedParty {\n");
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");
185 return sb.toString();
189 * Convert the given object to string with each line indented by 4 spaces (except the first
192 private String toIndentedString(java.lang.Object o) {
196 return o.toString().replace("\n", "\n ");