2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
21 package org.onap.aai.util;
23 import java.util.ArrayList;
24 import java.util.HashMap;
25 import java.util.List;
28 import javax.annotation.Generated;
30 import org.apache.commons.lang3.builder.EqualsBuilder;
31 import org.apache.commons.lang3.builder.HashCodeBuilder;
32 import org.apache.commons.lang3.builder.ToStringBuilder;
34 import com.fasterxml.jackson.annotation.JsonAnyGetter;
35 import com.fasterxml.jackson.annotation.JsonAnySetter;
36 import com.fasterxml.jackson.annotation.JsonIgnore;
37 import com.fasterxml.jackson.annotation.JsonInclude;
38 import com.fasterxml.jackson.annotation.JsonProperty;
39 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
41 @JsonInclude(JsonInclude.Include.NON_NULL)
42 @Generated("org.jsonschema2pojo")
43 @JsonPropertyOrder({"equipment-role", "action", "key-value-list", "self-link"})
46 @JsonProperty("equipment-role")
47 private String equipmentRole;
48 @JsonProperty("action")
49 private String action;
50 @JsonProperty("key-value-list")
51 private List<KeyValueList> keyValueList = new ArrayList<KeyValueList>();
52 @JsonProperty("self-link")
53 private String selfLink;
55 private Map<String, Object> additionalProperties = new HashMap<String, Object>();
62 @JsonProperty("equipment-role")
63 public String getEquipmentRole() {
69 * @param equipmentRole
72 @JsonProperty("equipment-role")
73 public void setEquipmentRole(String equipmentRole) {
74 this.equipmentRole = equipmentRole;
77 public Entity withEquipmentRole(String equipmentRole) {
78 this.equipmentRole = equipmentRole;
87 @JsonProperty("action")
88 public String getAction() {
97 @JsonProperty("action")
98 public void setAction(String action) {
102 public Entity withAction(String action) {
103 this.action = action;
112 @JsonProperty("key-value-list")
113 public List<KeyValueList> getKeyValueList() {
119 * @param keyValueList
122 @JsonProperty("key-value-list")
123 public void setKeyValueList(List<KeyValueList> keyValueList) {
124 this.keyValueList = keyValueList;
127 public Entity withKeyValueList(List<KeyValueList> keyValueList) {
128 this.keyValueList = keyValueList;
137 @JsonProperty("self-link")
138 public String getSelfLink() {
147 @JsonProperty("self-link")
148 public void setSelfLink(String selfLink) {
149 this.selfLink = selfLink;
152 public Entity withSelfLink(String selfLink) {
153 this.selfLink = selfLink;
158 public String toString() {
159 return ToStringBuilder.reflectionToString(this);
163 public Map<String, Object> getAdditionalProperties() {
164 return this.additionalProperties;
168 public void setAdditionalProperty(String name, Object value) {
169 this.additionalProperties.put(name, value);
172 public Entity withAdditionalProperty(String name, Object value) {
173 this.additionalProperties.put(name, value);
178 public int hashCode() {
179 return new HashCodeBuilder().append(equipmentRole).append(action).append(keyValueList).append(selfLink)
180 .append(additionalProperties).toHashCode();
184 public boolean equals(Object other) {
188 if ((other instanceof Entity) == false) {
191 Entity rhs = ((Entity) other);
192 return new EqualsBuilder().append(equipmentRole, rhs.equipmentRole).append(action, rhs.action)
193 .append(keyValueList, rhs.keyValueList).append(selfLink, rhs.selfLink)
194 .append(additionalProperties, rhs.additionalProperties).isEquals();