2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 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=========================================================
21 package org.onap.so.bpmn.servicedecomposition.bbobjects;
23 import java.io.Serializable;
24 import javax.persistence.Id;
25 import com.fasterxml.jackson.annotation.JsonProperty;
26 import org.apache.commons.lang3.builder.EqualsBuilder;
27 import org.apache.commons.lang3.builder.HashCodeBuilder;
28 import org.onap.so.bpmn.servicedecomposition.ShallowCopy;
30 public class CloudRegion implements Serializable, ShallowCopy<CloudRegion> {
32 private static final long serialVersionUID = 680593168655326021L;
35 @JsonProperty("lcp-cloud-region-id")
36 private String lcpCloudRegionId;
38 @JsonProperty("cloud-owner")
39 private String cloudOwner;
40 @JsonProperty("tenant-id")
41 private String tenantId;
42 @JsonProperty("complex")
43 private String complex;
44 @JsonProperty("cloud-region-version")
45 private String cloudRegionVersion;
46 @JsonProperty("orchestration-disabled")
47 private Boolean orchestrationDisabled;
49 public String getLcpCloudRegionId() {
50 return lcpCloudRegionId;
53 public void setLcpCloudRegionId(String lcpCloudRegionId) {
54 this.lcpCloudRegionId = lcpCloudRegionId;
57 public String getTenantId() {
61 public void setTenantId(String tenantId) {
62 this.tenantId = tenantId;
65 public String getCloudOwner() {
69 public void setCloudOwner(String cloudOwner) {
70 this.cloudOwner = cloudOwner;
76 public String getCloudRegionVersion() {
77 return cloudRegionVersion;
83 public void setCloudRegionVersion(String cloudRegionVersion) {
84 this.cloudRegionVersion = cloudRegionVersion;
88 * i.e. aic clli, physical location id, site id
90 public String getComplex() {
95 * i.e. aic clli, physical location id, site id
97 public void setComplex(String complex) {
98 this.complex = complex;
101 public Boolean getOrchestrationDisabled() {
102 return orchestrationDisabled;
105 public void setOrchestrationDisabled(Boolean orchestrationDisabled) {
106 this.orchestrationDisabled = orchestrationDisabled;
110 public boolean equals(final Object other) {
111 if (!(other instanceof CloudRegion)) {
114 CloudRegion castOther = (CloudRegion) other;
115 return new EqualsBuilder().append(lcpCloudRegionId, castOther.lcpCloudRegionId)
116 .append(cloudOwner, castOther.cloudOwner).isEquals();
120 public int hashCode() {
121 return new HashCodeBuilder().append(lcpCloudRegionId).append(cloudOwner).toHashCode();