Add serviceOrder rest services
[externalapi/nbi.git] / src / main / java / org / onap / nbi / apis / serviceorder / model / ServiceRef.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  * Service references
33  */
34 @ApiModel(description = "Service references")
35 @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaJerseyServerCodegen",
36         date = "2018-02-19T14:00:30.767Z")
37 public class ServiceRef {
38     @JsonProperty("id")
39     private String id = null;
40
41     @JsonProperty("href")
42     private String href = null;
43
44     public ServiceRef id(String id) {
45         this.id = id;
46         return this;
47     }
48
49     /**
50      * Unique identifier of the service
51      *
52      * @return id
53      **/
54     @JsonProperty("id")
55     @ApiModelProperty(required = true, value = "Unique identifier of the service")
56     @NotNull
57     public String getId() {
58         return id;
59     }
60
61     public void setId(String id) {
62         this.id = id;
63     }
64
65     public ServiceRef href(String href) {
66         this.href = href;
67         return this;
68     }
69
70     /**
71      * Reference of the service
72      *
73      * @return href
74      **/
75     @JsonProperty("href")
76     @ApiModelProperty(value = "Reference of the service")
77     public String getHref() {
78         return href;
79     }
80
81     public void setHref(String href) {
82         this.href = href;
83     }
84
85
86     @Override
87     public boolean equals(java.lang.Object o) {
88         if (this == o) {
89             return true;
90         }
91         if (o == null || getClass() != o.getClass()) {
92             return false;
93         }
94         ServiceRef serviceRef = (ServiceRef) o;
95         return Objects.equals(this.id, serviceRef.id) && Objects.equals(this.href, serviceRef.href);
96     }
97
98     @Override
99     public int hashCode() {
100         return Objects.hash(id, href);
101     }
102
103
104     @Override
105     public String toString() {
106         StringBuilder sb = new StringBuilder();
107         sb.append("class ServiceRef {\n");
108
109         sb.append("    id: ").append(toIndentedString(id)).append("\n");
110         sb.append("    href: ").append(toIndentedString(href)).append("\n");
111         sb.append("}");
112         return sb.toString();
113     }
114
115     /**
116      * Convert the given object to string with each line indented by 4 spaces (except the first
117      * line).
118      */
119     private String toIndentedString(java.lang.Object o) {
120         if (o == null) {
121             return "null";
122         }
123         return o.toString().replace("\n", "\n    ");
124     }
125 }
126