Add serviceOrder rest services
[externalapi/nbi.git] / src / main / java / org / onap / nbi / apis / serviceorder / model / AppointmentRef.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 precise that an appointment was set-up with a related party for this order item
33  */
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 {
38     @JsonProperty("id")
39     private String id = null;
40
41     @JsonProperty("href")
42     private String href = null;
43
44     @JsonProperty("@referredType")
45     private String referredType = null;
46
47     public AppointmentRef id(String id) {
48         this.id = id;
49         return this;
50     }
51
52     /**
53      * Unique identifier of the appointment
54      *
55      * @return id
56      **/
57     @JsonProperty("id")
58     @ApiModelProperty(required = true, value = "Unique identifier of the appointment")
59     @NotNull
60     public String getId() {
61         return id;
62     }
63
64     public void setId(String id) {
65         this.id = id;
66     }
67
68     public AppointmentRef href(String href) {
69         this.href = href;
70         return this;
71     }
72
73     /**
74      * Reference of the appointmenrt
75      *
76      * @return href
77      **/
78     @JsonProperty("href")
79     @ApiModelProperty(required = true, value = "Reference of the appointmenrt")
80     @NotNull
81     public String getHref() {
82         return href;
83     }
84
85     public void setHref(String href) {
86         this.href = href;
87     }
88
89     public AppointmentRef referredType(String referredType) {
90         this.referredType = referredType;
91         return this;
92     }
93
94     /**
95      * @return referredType
96      **/
97     @JsonProperty("@referredType")
98     @ApiModelProperty(value = "")
99     public String getReferredType() {
100         return referredType;
101     }
102
103     public void setReferredType(String referredType) {
104         this.referredType = referredType;
105     }
106
107
108     @Override
109     public boolean equals(java.lang.Object o) {
110         if (this == o) {
111             return true;
112         }
113         if (o == null || getClass() != o.getClass()) {
114             return false;
115         }
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);
119     }
120
121     @Override
122     public int hashCode() {
123         return Objects.hash(id, href, referredType);
124     }
125
126
127     @Override
128     public String toString() {
129         StringBuilder sb = new StringBuilder();
130         sb.append("class AppointmentRef {\n");
131
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");
135         sb.append("}");
136         return sb.toString();
137     }
138
139     /**
140      * Convert the given object to string with each line indented by 4 spaces (except the first
141      * line).
142      */
143     private String toIndentedString(java.lang.Object o) {
144         if (o == null) {
145             return "null";
146         }
147         return o.toString().replace("\n", "\n    ");
148     }
149 }
150