Add serviceOrder rest services
[externalapi/nbi.git] / src / main / java / org / onap / nbi / apis / serviceorder / model / Value.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 java.util.Objects;
29
30 /**
31  * Value is a descriptive structure for service characteristic
32  */
33 @ApiModel(description = "Value is a descriptive structure for service characteristic")
34 @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaJerseyServerCodegen",
35         date = "2018-02-19T14:00:30.767Z")
36 public class Value {
37     @JsonProperty("@type")
38     private String type = null;
39
40     @JsonProperty("@schemaLocation")
41     private String schemaLocation = null;
42
43     @JsonProperty("serviceCharacteristicValue")
44     private String serviceCharacteristicValue = null;
45
46     public Value type(String type) {
47         this.type = type;
48         return this;
49     }
50
51     /**
52      * @return type
53      **/
54     @JsonProperty("@type")
55     @ApiModelProperty(value = "")
56     public String getType() {
57         return type;
58     }
59
60     public void setType(String type) {
61         this.type = type;
62     }
63
64     public Value schemaLocation(String schemaLocation) {
65         this.schemaLocation = schemaLocation;
66         return this;
67     }
68
69     /**
70      * @return schemaLocation
71      **/
72     @JsonProperty("@schemaLocation")
73     @ApiModelProperty(value = "")
74     public String getSchemaLocation() {
75         return schemaLocation;
76     }
77
78     public void setSchemaLocation(String schemaLocation) {
79         this.schemaLocation = schemaLocation;
80     }
81
82     public Value serviceCharacteristicValue(String serviceCharacteristicValue) {
83         this.serviceCharacteristicValue = serviceCharacteristicValue;
84         return this;
85     }
86
87     /**
88      * @return serviceCharacteristicValue
89      **/
90     @JsonProperty("serviceCharacteristicValue")
91     @ApiModelProperty(value = "")
92     public String getServiceCharacteristicValue() {
93         return serviceCharacteristicValue;
94     }
95
96     public void setServiceCharacteristicValue(String serviceCharacteristicValue) {
97         this.serviceCharacteristicValue = serviceCharacteristicValue;
98     }
99
100
101     @Override
102     public boolean equals(java.lang.Object o) {
103         if (this == o) {
104             return true;
105         }
106         if (o == null || getClass() != o.getClass()) {
107             return false;
108         }
109         Value value = (Value) o;
110         return Objects.equals(this.type, value.type) && Objects.equals(this.schemaLocation, value.schemaLocation)
111                 && Objects.equals(this.serviceCharacteristicValue, value.serviceCharacteristicValue);
112     }
113
114     @Override
115     public int hashCode() {
116         return Objects.hash(type, schemaLocation, serviceCharacteristicValue);
117     }
118
119
120     @Override
121     public String toString() {
122         StringBuilder sb = new StringBuilder();
123         sb.append("class Value {\n");
124
125         sb.append("    type: ").append(toIndentedString(type)).append("\n");
126         sb.append("    schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n");
127         sb.append("    serviceCharacteristicValue: ").append(toIndentedString(serviceCharacteristicValue)).append("\n");
128         sb.append("}");
129         return sb.toString();
130     }
131
132     /**
133      * Convert the given object to string with each line indented by 4 spaces (except the first
134      * line).
135      */
136     private String toIndentedString(java.lang.Object o) {
137         if (o == null) {
138             return "null";
139         }
140         return o.toString().replace("\n", "\n    ");
141     }
142 }
143