2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright © 2017 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=========================================================
20 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
22 package org.onap.aai.util;
24 import java.util.ArrayList;
25 import java.util.HashMap;
26 import java.util.List;
28 import javax.annotation.Generated;
29 import com.fasterxml.jackson.annotation.JsonAnyGetter;
30 import com.fasterxml.jackson.annotation.JsonAnySetter;
31 import com.fasterxml.jackson.annotation.JsonIgnore;
32 import com.fasterxml.jackson.annotation.JsonInclude;
33 import com.fasterxml.jackson.annotation.JsonProperty;
34 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
35 import org.apache.commons.lang.builder.EqualsBuilder;
36 import org.apache.commons.lang.builder.HashCodeBuilder;
37 import org.apache.commons.lang.builder.ToStringBuilder;
39 @JsonInclude(JsonInclude.Include.NON_NULL)
40 @Generated("org.jsonschema2pojo")
49 @JsonProperty("equipment-role")
50 private String equipmentRole;
51 @JsonProperty("action")
52 private String action;
53 @JsonProperty("key-value-list")
54 private List<KeyValueList> keyValueList = new ArrayList<KeyValueList>();
55 @JsonProperty("self-link")
56 private String selfLink;
58 private Map<String, Object> additionalProperties = new HashMap<String, Object>();
65 @JsonProperty("equipment-role")
66 public String getEquipmentRole() {
72 * @param equipmentRole
75 @JsonProperty("equipment-role")
76 public void setEquipmentRole(String equipmentRole) {
77 this.equipmentRole = equipmentRole;
80 public Entity withEquipmentRole(String equipmentRole) {
81 this.equipmentRole = equipmentRole;
90 @JsonProperty("action")
91 public String getAction() {
100 @JsonProperty("action")
101 public void setAction(String action) {
102 this.action = action;
105 public Entity withAction(String action) {
106 this.action = action;
115 @JsonProperty("key-value-list")
116 public List<KeyValueList> getKeyValueList() {
122 * @param keyValueList
125 @JsonProperty("key-value-list")
126 public void setKeyValueList(List<KeyValueList> keyValueList) {
127 this.keyValueList = keyValueList;
130 public Entity withKeyValueList(List<KeyValueList> keyValueList) {
131 this.keyValueList = keyValueList;
140 @JsonProperty("self-link")
141 public String getSelfLink() {
150 @JsonProperty("self-link")
151 public void setSelfLink(String selfLink) {
152 this.selfLink = selfLink;
155 public Entity withSelfLink(String selfLink) {
156 this.selfLink = selfLink;
161 public String toString() {
162 return ToStringBuilder.reflectionToString(this);
166 public Map<String, Object> getAdditionalProperties() {
167 return this.additionalProperties;
171 public void setAdditionalProperty(String name, Object value) {
172 this.additionalProperties.put(name, value);
175 public Entity withAdditionalProperty(String name, Object value) {
176 this.additionalProperties.put(name, value);
181 public int hashCode() {
182 return new HashCodeBuilder().append(equipmentRole).append(action).append(keyValueList).append(selfLink).append(additionalProperties).toHashCode();
186 public boolean equals(Object other) {
190 if ((other instanceof Entity) == false) {
193 Entity rhs = ((Entity) other);
194 return new EqualsBuilder().append(equipmentRole, rhs.equipmentRole).append(action, rhs.action).append(keyValueList, rhs.keyValueList).append(selfLink, rhs.selfLink).append(additionalProperties, rhs.additionalProperties).isEquals();