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 * ServiceCharacteristic
34 @ApiModel(description = "ServiceCharacteristic")
35 @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaJerseyServerCodegen",
36 date = "2018-02-19T14:00:30.767Z")
37 public class ServiceCharacteristic {
39 private String name = null;
41 @JsonProperty("valueType")
42 private String valueType = null;
44 @JsonProperty("value")
45 private Value value = null;
47 public ServiceCharacteristic name(String name) {
53 * Name of characteristic
58 @ApiModelProperty(required = true, value = "Name of characteristic")
60 public String getName() {
64 public void setName(String name) {
68 public ServiceCharacteristic valueType(String valueType) {
69 this.valueType = valueType;
76 @JsonProperty("valueType")
77 @ApiModelProperty(value = "")
78 public String getValueType() {
82 public void setValueType(String valueType) {
83 this.valueType = valueType;
86 public ServiceCharacteristic value(Value value) {
94 @JsonProperty("value")
95 @ApiModelProperty(value = "")
96 public Value getValue() {
100 public void setValue(Value value) {
106 public boolean equals(java.lang.Object o) {
110 if (o == null || getClass() != o.getClass()) {
113 ServiceCharacteristic serviceCharacteristic = (ServiceCharacteristic) o;
114 return Objects.equals(this.name, serviceCharacteristic.name)
115 && Objects.equals(this.valueType, serviceCharacteristic.valueType)
116 && Objects.equals(this.value, serviceCharacteristic.value);
120 public int hashCode() {
121 return Objects.hash(name, valueType, value);
126 public String toString() {
127 StringBuilder sb = new StringBuilder();
128 sb.append("class ServiceCharacteristic {\n");
130 sb.append(" name: ").append(toIndentedString(name)).append("\n");
131 sb.append(" valueType: ").append(toIndentedString(valueType)).append("\n");
132 sb.append(" value: ").append(toIndentedString(value)).append("\n");
134 return sb.toString();
138 * Convert the given object to string with each line indented by 4 spaces (except the first
141 private String toIndentedString(java.lang.Object o) {
145 return o.toString().replace("\n", "\n ");