Replaced all tabs with spaces in java and pom.xml
[so.git] / bpmn / MSOCommonBPMN / src / main / java / org / onap / so / bpmn / servicedecomposition / bbobjects / Configuration.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 com.fasterxml.jackson.annotation.JsonProperty;
24 import com.fasterxml.jackson.annotation.JsonRootName;
25 import org.apache.commons.lang3.builder.EqualsBuilder;
26 import org.apache.commons.lang3.builder.HashCodeBuilder;
27 import org.onap.so.bpmn.servicedecomposition.Metadata;
28 import org.onap.so.bpmn.servicedecomposition.modelinfo.ModelInfoConfiguration;
29 import org.onap.so.db.catalog.beans.OrchestrationStatus;
30 import javax.persistence.Id;
31 import java.io.Serializable;
32 import java.util.ArrayList;
33 import java.util.List;
34 import org.onap.so.bpmn.servicedecomposition.ShallowCopy;
35
36 @JsonRootName("configuration")
37 public class Configuration implements Serializable, ShallowCopy<Configuration> {
38     private static final long serialVersionUID = 4525487672816730299L;
39
40     @Id
41     @JsonProperty("configuration-id")
42     private String configurationId;
43     @JsonProperty("orchestration-status")
44     private OrchestrationStatus orchestrationStatus;
45     @JsonProperty("tunnel-bandwidth")
46     private String tunnelBandwidth;
47     @JsonProperty("vendor-allowed-max-bandwidth")
48     private String vendorAllowedMaxBandwidth;
49     @JsonProperty("management-option")
50     private String managementOption;
51     @JsonProperty("configuration-name")
52     private String configurationName;
53     @JsonProperty("configuration-type")
54     private String configurationType;
55     @JsonProperty("configuration-sub-type")
56     private String configurationSubType;
57     @JsonProperty("operational-status")
58     private String operationalStatus;
59     @JsonProperty("configuration-selflink")
60     private String configurationSelflink;
61     @JsonProperty("metadata")
62     private Metadata metadata;
63     @JsonProperty("forwarder-evcs")
64     private List<ForwarderEvc> forwarderEvcs = new ArrayList<>();
65     @JsonProperty("evcs")
66     private List<Evc> evcs = new ArrayList<>();
67     @JsonProperty("vnfc")
68     private Vnfc vnfc = new Vnfc();
69     @JsonProperty("model-info-configuration")
70     private ModelInfoConfiguration modelInfoConfiguration;
71
72     @JsonProperty("related-configuration")
73     private Configuration relatedConfiguration;
74
75     @JsonProperty("l3-network")
76     private L3Network network;
77
78     @JsonProperty("l-interface")
79     private LInterface lInterface;
80
81     public ModelInfoConfiguration getModelInfoConfiguration() {
82         return modelInfoConfiguration;
83     }
84
85     public void setModelInfoConfiguration(ModelInfoConfiguration modelInfoConfiguration) {
86         this.modelInfoConfiguration = modelInfoConfiguration;
87     }
88
89     public List<ForwarderEvc> getForwarderEvcs() {
90         return forwarderEvcs;
91     }
92
93     public Vnfc getVnfc() {
94         return vnfc;
95     }
96
97     public void setVnfc(Vnfc vnfc) {
98         this.vnfc = vnfc;
99     }
100
101     public List<Evc> getEvcs() {
102         return evcs;
103     }
104
105     public String getConfigurationId() {
106         return configurationId;
107     }
108
109     public void setConfigurationId(String configurationId) {
110         this.configurationId = configurationId;
111     }
112
113     public String getManagementOption() {
114         return managementOption;
115     }
116
117     public void setManagementOption(String managementOption) {
118         this.managementOption = managementOption;
119     }
120
121     public String getConfigurationName() {
122         return configurationName;
123     }
124
125     public void setConfigurationName(String configurationName) {
126         this.configurationName = configurationName;
127     }
128
129     public String getConfigurationType() {
130         return configurationType;
131     }
132
133     public void setConfigurationType(String configurationType) {
134         this.configurationType = configurationType;
135     }
136
137     public String getConfigurationSubType() {
138         return configurationSubType;
139     }
140
141     public void setConfigurationSubType(String configurationSubType) {
142         this.configurationSubType = configurationSubType;
143     }
144
145     public String getOperationalStatus() {
146         return operationalStatus;
147     }
148
149     public void setOperationalStatus(String operationalStatus) {
150         this.operationalStatus = operationalStatus;
151     }
152
153     public String getConfigurationSelflink() {
154         return configurationSelflink;
155     }
156
157     public void setConfigurationSelflink(String configurationSelflink) {
158         this.configurationSelflink = configurationSelflink;
159     }
160
161     public OrchestrationStatus getOrchestrationStatus() {
162         return orchestrationStatus;
163     }
164
165     public void setOrchestrationStatus(OrchestrationStatus orchestrationStatus) {
166         this.orchestrationStatus = orchestrationStatus;
167     }
168
169     public String getTunnelBandwidth() {
170         return tunnelBandwidth;
171     }
172
173     public void setTunnelBandwidth(String tunnelBandwidth) {
174         this.tunnelBandwidth = tunnelBandwidth;
175     }
176
177     public String getVendorAllowedMaxBandwidth() {
178         return vendorAllowedMaxBandwidth;
179     }
180
181     public void setVendorAllowedMaxBandwidth(String vendorAllowedMaxBandwidth) {
182         this.vendorAllowedMaxBandwidth = vendorAllowedMaxBandwidth;
183     }
184
185     public Metadata getMetadata() {
186         return metadata;
187     }
188
189     public void setMetadata(Metadata metadata) {
190         this.metadata = metadata;
191     }
192
193     public Configuration getRelatedConfiguration() {
194         return relatedConfiguration;
195     }
196
197     public void setRelatedConfiguration(Configuration relatedConfiguration) {
198         this.relatedConfiguration = relatedConfiguration;
199     }
200
201     public void setForwarderEvcs(List<ForwarderEvc> forwarderEvcs) {
202         this.forwarderEvcs = forwarderEvcs;
203     }
204
205     public void setEvcs(List<Evc> evcs) {
206         this.evcs = evcs;
207     }
208
209     public L3Network getNetwork() {
210         return network;
211     }
212
213     public void setNetwork(L3Network network) {
214         this.network = network;
215     }
216
217     public LInterface getlInterface() {
218         return lInterface;
219     }
220
221     public void setlInterface(LInterface lInterface) {
222         this.lInterface = lInterface;
223     }
224
225     @Override
226     public boolean equals(final Object other) {
227         if (!(other instanceof Configuration)) {
228             return false;
229         }
230         Configuration castOther = (Configuration) other;
231         return new EqualsBuilder().append(configurationId, castOther.configurationId).isEquals();
232     }
233
234     @Override
235     public int hashCode() {
236         return new HashCodeBuilder().append(configurationId).toHashCode();
237     }
238
239 }