2 package org.onap.vid.mso.model;
4 import com.fasterxml.jackson.annotation.*;
5 import org.apache.commons.lang.builder.EqualsBuilder;
6 import org.apache.commons.lang.builder.HashCodeBuilder;
7 import org.apache.commons.lang.builder.ToStringBuilder;
9 import java.util.HashMap;
14 * fields communicating the cloud configuration in a standard way
17 @JsonInclude(JsonInclude.Include.NON_NULL)
24 public class CloudConfiguration {
27 * Location identifier for the node
30 @JsonProperty("nodeLocation")
31 private String nodeLocation;
33 * LCP Node Location identifier
36 @JsonProperty("lcpCloudRegionId")
37 private String lcpCloudRegionId;
42 @JsonProperty("tenantId")
43 private String tenantId;
48 @JsonProperty("cloudOwner")
49 private String cloudOwner;
51 private Map<String, Object> additionalProperties = new HashMap<>();
54 * Location identifier for the node
59 @JsonProperty("nodeLocation")
60 public String getNodeLocation() {
65 * Location identifier for the node
70 @JsonProperty("nodeLocation")
71 public void setNodeLocation(String nodeLocation) {
72 this.nodeLocation = nodeLocation;
76 * LCP Node Location identifier
79 * The lcpCloudRegionId
81 @JsonProperty("lcpCloudRegionId")
82 public String getLcpCloudRegionId() {
83 return lcpCloudRegionId;
87 * LCP Node Location identifier
89 * @param lcpCloudRegionId
90 * The lcpCloudRegionId
92 @JsonProperty("lcpCloudRegionId")
93 public void setLcpCloudRegionId(String lcpCloudRegionId) {
94 this.lcpCloudRegionId = lcpCloudRegionId;
103 @JsonProperty("tenantId")
104 public String getTenantId() {
109 * Openstack tenant id
114 @JsonProperty("tenantId")
115 public void setTenantId(String tenantId) {
116 this.tenantId = tenantId;
125 @JsonProperty("cloudOwner")
126 public String getCloudOwner() {
136 @JsonProperty("cloudOwner")
137 public void setCloudOwner(String cloudOwner) {
138 this.cloudOwner = cloudOwner;
142 public String toString() {
143 return ToStringBuilder.reflectionToString(this);
147 public Map<String, Object> getAdditionalProperties() {
148 return this.additionalProperties;
152 public void setAdditionalProperty(String name, Object value) {
153 this.additionalProperties.put(name, value);
157 public int hashCode() {
158 return new HashCodeBuilder().append(nodeLocation).append(lcpCloudRegionId).append(tenantId).append(cloudOwner).append(additionalProperties).toHashCode();
162 public boolean equals(Object other) {
166 if (!(other instanceof CloudConfiguration)) {
169 CloudConfiguration rhs = ((CloudConfiguration) other);
170 return new EqualsBuilder().append(nodeLocation, rhs.nodeLocation).append(lcpCloudRegionId, rhs.lcpCloudRegionId).append(tenantId, rhs.tenantId).append(cloudOwner, rhs.cloudOwner).append(additionalProperties, rhs.additionalProperties).isEquals();