Replaced all tabs with spaces in java and pom.xml
[so.git] / bpmn / MSOCommonBPMN / src / main / java / org / onap / so / bpmn / servicedecomposition / bbobjects / VpnBinding.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
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
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
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=========================================================
19  */
20
21 package org.onap.so.bpmn.servicedecomposition.bbobjects;
22
23 import java.io.Serializable;
24 import java.util.ArrayList;
25 import java.util.List;
26 import javax.persistence.Id;
27 import com.fasterxml.jackson.annotation.JsonProperty;
28 import com.fasterxml.jackson.annotation.JsonRootName;
29 import org.apache.commons.lang3.builder.EqualsBuilder;
30 import org.apache.commons.lang3.builder.HashCodeBuilder;
31 import org.onap.so.bpmn.servicedecomposition.ShallowCopy;
32
33
34 @JsonRootName("vpn-binding")
35 public class VpnBinding implements Serializable, ShallowCopy<VpnBinding> {
36     private static final long serialVersionUID = 3283413795353486924L;
37
38     @Id
39     @JsonProperty("vpn-id")
40     private String vpnId;
41     @JsonProperty("vpn-name")
42     private String vpnName;
43     @JsonProperty("vpn-platform")
44     private String vpnPlatform;
45     @JsonProperty("vpn-type")
46     private String vpnType;
47     @JsonProperty("vpn-region")
48     private String vpnRegion;
49     @JsonProperty("customer-vpn-id")
50     private String customerVpnId;
51     @JsonProperty("route-distinguisher")
52     private String routeDistinguisher;
53     @JsonProperty("resource-version")
54     private String resourceVersion;
55     @JsonProperty("route-targets")
56     private List<RouteTarget> routeTargets = new ArrayList<>();
57
58     public String getVpnId() {
59         return vpnId;
60     }
61
62     public void setVpnId(String value) {
63         this.vpnId = value;
64     }
65
66     public String getVpnName() {
67         return vpnName;
68     }
69
70     public void setVpnName(String value) {
71         this.vpnName = value;
72     }
73
74     public String getVpnPlatform() {
75         return vpnPlatform;
76     }
77
78     public void setVpnPlatform(String value) {
79         this.vpnPlatform = value;
80     }
81
82     public String getVpnType() {
83         return vpnType;
84     }
85
86     public void setVpnType(String value) {
87         this.vpnType = value;
88     }
89
90     public String getVpnRegion() {
91         return vpnRegion;
92     }
93
94     public void setVpnRegion(String value) {
95         this.vpnRegion = value;
96     }
97
98     public String getCustomerVpnId() {
99         return customerVpnId;
100     }
101
102     public void setCustomerVpnId(String value) {
103         this.customerVpnId = value;
104     }
105
106     public String getRouteDistinguisher() {
107         return routeDistinguisher;
108     }
109
110     public void setRouteDistinguisher(String value) {
111         this.routeDistinguisher = value;
112     }
113
114     public String getResourceVersion() {
115         return resourceVersion;
116     }
117
118     public void setResourceVersion(String value) {
119         this.resourceVersion = value;
120     }
121
122     public List<RouteTarget> getRouteTargets() {
123         return routeTargets;
124     }
125
126     @Override
127     public boolean equals(final Object other) {
128         if (!(other instanceof VpnBinding)) {
129             return false;
130         }
131         VpnBinding castOther = (VpnBinding) other;
132         return new EqualsBuilder().append(vpnId, castOther.vpnId).isEquals();
133     }
134
135     @Override
136     public int hashCode() {
137         return new HashCodeBuilder().append(vpnId).toHashCode();
138     }
139 }