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 precise that an appointment was set-up with a related party for this order item
34 @ApiModel(description = "Used to precise that an appointment was set-up with a related party for this order item")
35 @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaJerseyServerCodegen",
36 date = "2018-02-19T14:00:30.767Z")
37 public class AppointmentRef {
39 private String id = null;
42 private String href = null;
44 @JsonProperty("@referredType")
45 private String referredType = null;
47 public AppointmentRef id(String id) {
53 * Unique identifier of the appointment
58 @ApiModelProperty(required = true, value = "Unique identifier of the appointment")
60 public String getId() {
64 public void setId(String id) {
68 public AppointmentRef href(String href) {
74 * Reference of the appointmenrt
79 @ApiModelProperty(required = true, value = "Reference of the appointmenrt")
81 public String getHref() {
85 public void setHref(String href) {
89 public AppointmentRef referredType(String referredType) {
90 this.referredType = referredType;
95 * @return referredType
97 @JsonProperty("@referredType")
98 @ApiModelProperty(value = "")
99 public String getReferredType() {
103 public void setReferredType(String referredType) {
104 this.referredType = referredType;
109 public boolean equals(java.lang.Object o) {
113 if (o == null || getClass() != o.getClass()) {
116 AppointmentRef appointmentRef = (AppointmentRef) o;
117 return Objects.equals(this.id, appointmentRef.id) && Objects.equals(this.href, appointmentRef.href)
118 && Objects.equals(this.referredType, appointmentRef.referredType);
122 public int hashCode() {
123 return Objects.hash(id, href, referredType);
128 public String toString() {
129 StringBuilder sb = new StringBuilder();
130 sb.append("class AppointmentRef {\n");
132 sb.append(" id: ").append(toIndentedString(id)).append("\n");
133 sb.append(" href: ").append(toIndentedString(href)).append("\n");
134 sb.append(" referredType: ").append(toIndentedString(referredType)).append("\n");
136 return sb.toString();
140 * Convert the given object to string with each line indented by 4 spaces (except the first
143 private String toIndentedString(java.lang.Object o) {
147 return o.toString().replace("\n", "\n ");