3ef0f71386abf342d4df8d74816d6ff081490516
[so.git] / bpmn / MSOCommonBPMN / src / main / java / org / onap / so / bpmn / servicedecomposition / bbobjects / Evc.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
25 import com.fasterxml.jackson.annotation.JsonProperty;
26 import com.fasterxml.jackson.annotation.JsonRootName;
27 import org.apache.commons.lang3.builder.EqualsBuilder;
28 import org.apache.commons.lang3.builder.HashCodeBuilder;
29 import org.onap.so.bpmn.servicedecomposition.ShallowCopy;
30
31 import javax.persistence.Id;
32
33 @JsonRootName("evc")
34 public class Evc implements Serializable, ShallowCopy<Evc> {
35
36         private static final long serialVersionUID = -3556506672371317659L;
37
38         @Id
39         @JsonProperty("evc-id")
40     private String evcId;
41         @JsonProperty("forwarding-path-topology")
42     private String forwardingPathTopology;
43         @JsonProperty("cir-value")
44     private String cirValue;
45         @JsonProperty("cir-units")
46     private String cirUnits;
47         @JsonProperty("connection-diversity-group-id")
48     private String connectionDiversityGroupId;
49         @JsonProperty("service-hours")
50     private String serviceHours;
51         @JsonProperty("esp-evc-circuit-id")
52     private String espEvcCircuitId;
53         @JsonProperty("esp-evc-cir-value")
54     private String espEvcCirValue;
55         @JsonProperty("esp-evc-cir-units")
56     private String espEvcCirUnits;
57         @JsonProperty("esp-itu-code")
58     private String espItuCode;
59     @JsonProperty("collector-pop-clli")
60     private String collectorPopClli;
61     @JsonProperty("inter-connect-type-ingress")
62     private String interConnectTypeIngress;
63     @JsonProperty("tagmode-access-ingress")
64     private String tagmodeAccessIngress;
65     @JsonProperty("tagmode-access-egress")
66     private String tagmodeAccessEgress;
67
68         public String getEvcId() {
69                 return evcId;
70         }
71         public void setEvcId(String evcId) {
72                 this.evcId = evcId;
73         }
74         public String getForwardingPathTopology() {
75                 return forwardingPathTopology;
76         }
77         public void setForwardingPathTopology(String forwardingPathTopology) {
78                 this.forwardingPathTopology = forwardingPathTopology;
79         }
80         public String getCirValue() {
81                 return cirValue;
82         }
83         public void setCirValue(String cirValue) {
84                 this.cirValue = cirValue;
85         }
86         public String getCirUnits() {
87                 return cirUnits;
88         }
89         public void setCirUnits(String cirUnits) {
90                 this.cirUnits = cirUnits;
91         }
92         public String getConnectionDiversityGroupId() {
93                 return connectionDiversityGroupId;
94         }
95         public void setConnectionDiversityGroupId(String connectionDiversityGroupId) {
96                 this.connectionDiversityGroupId = connectionDiversityGroupId;
97         }
98         public String getServiceHours() {
99                 return serviceHours;
100         }
101         public void setServiceHours(String serviceHours) {
102                 this.serviceHours = serviceHours;
103         }
104         public String getEspEvcCircuitId() {
105                 return espEvcCircuitId;
106         }
107         public void setEspEvcCircuitId(String espEvcCircuitId) {
108                 this.espEvcCircuitId = espEvcCircuitId;
109         }
110         public String getEspEvcCirValue() {
111                 return espEvcCirValue;
112         }
113         public void setEspEvcCirValue(String espEvcCirValue) {
114                 this.espEvcCirValue = espEvcCirValue;
115         }
116         public String getEspEvcCirUnits() {
117                 return espEvcCirUnits;
118         }
119         public void setEspEvcCirUnits(String espEvcCirUnits) {
120                 this.espEvcCirUnits = espEvcCirUnits;
121         }
122         public String getEspItuCode() {
123                 return espItuCode;
124         }
125         public void setEspItuCode(String espItuCode) {
126                 this.espItuCode = espItuCode;
127         }
128         public String getCollectorPopClli() {
129                 return collectorPopClli;
130         }
131         public void setCollectorPopClli(String collectorPopClli) {
132                 this.collectorPopClli = collectorPopClli;
133         }
134         public String getInterConnectTypeIngress() {
135                 return interConnectTypeIngress;
136         }
137         public void setInterConnectTypeIngress(String interConnectTypeIngress) {
138                 this.interConnectTypeIngress = interConnectTypeIngress;
139         }
140         public String getTagmodeAccessIngress() {
141                 return tagmodeAccessIngress;
142         }
143         public void setTagmodeAccessIngress(String tagmodeAccessIngress) {
144                 this.tagmodeAccessIngress = tagmodeAccessIngress;
145         }
146         public String getTagmodeAccessEgress() {
147                 return tagmodeAccessEgress;
148         }
149         public void setTagmodeAccessEgress(String tagmodeAccessEgress) {
150                 this.tagmodeAccessEgress = tagmodeAccessEgress;
151         }
152         @Override
153         public boolean equals(final Object other) {
154                 if (!(other instanceof Evc)) {
155                         return false;
156                 }
157                 Evc castOther = (Evc) other;
158                 return new EqualsBuilder().append(evcId, castOther.evcId).isEquals();
159         }
160         @Override
161         public int hashCode() {
162                 return new HashCodeBuilder().append(evcId).toHashCode();
163         }
164 }