2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright 2018 TechMahindra
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=========================================================
20 package org.onap.dcaegen2.ves.domain;
22 import java.util.HashMap;
23 import java.util.List;
25 import com.fasterxml.jackson.annotation.JsonAnyGetter;
26 import com.fasterxml.jackson.annotation.JsonAnySetter;
27 import com.fasterxml.jackson.annotation.JsonIgnore;
28 import com.fasterxml.jackson.annotation.JsonInclude;
29 import com.fasterxml.jackson.annotation.JsonProperty;
30 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
31 import org.apache.commons.lang.builder.EqualsBuilder;
32 import org.apache.commons.lang.builder.HashCodeBuilder;
33 import org.apache.commons.lang.builder.ToStringBuilder;
35 @JsonInclude(JsonInclude.Include.NON_NULL)
41 "mobileFlowFieldsVersion",
42 "otherEndpointIpAddress",
44 "reportingEndpointIpAddr",
45 "reportingEndpointPort",
62 "otherFunctionalRole",
64 "radioAccessTechnology",
71 public class MobileFlowFields {
73 @JsonProperty("flowDirection")
74 private String flowDirection;
75 @JsonProperty("gtpPerFlowMetrics")
76 private GtpPerFlowMetrics gtpPerFlowMetrics;
77 @JsonProperty("ipProtocolType")
78 private String ipProtocolType;
79 @JsonProperty("ipVersion")
80 private String ipVersion;
81 @JsonProperty("mobileFlowFieldsVersion")
82 private Double mobileFlowFieldsVersion;
83 @JsonProperty("otherEndpointIpAddress")
84 private String otherEndpointIpAddress;
85 @JsonProperty("otherEndpointPort")
86 private Long otherEndpointPort;
87 @JsonProperty("reportingEndpointIpAddr")
88 private String reportingEndpointIpAddr;
89 @JsonProperty("reportingEndpointPort")
90 private Long reportingEndpointPort;
91 @JsonProperty("additionalFields")
92 private List<AdditionalField> additionalFields = null;
93 @JsonProperty("applicationType")
94 private String applicationType;
95 @JsonProperty("appProtocolType")
96 private String appProtocolType;
97 @JsonProperty("appProtocolVersion")
98 private String appProtocolVersion;
101 @JsonProperty("connectionType")
102 private String connectionType;
103 @JsonProperty("ecgi")
105 @JsonProperty("gtpProtocolType")
106 private String gtpProtocolType;
107 @JsonProperty("gtpVersion")
108 private String gtpVersion;
109 @JsonProperty("httpHeader")
110 private String httpHeader;
111 @JsonProperty("imei")
113 @JsonProperty("imsi")
121 @JsonProperty("msisdn")
122 private String msisdn;
123 @JsonProperty("otherFunctionalRole")
124 private String otherFunctionalRole;
127 @JsonProperty("radioAccessTechnology")
128 private String radioAccessTechnology;
131 @JsonProperty("samplingAlgorithm")
132 private Long samplingAlgorithm;
135 @JsonProperty("tunnelId")
136 private String tunnelId;
137 @JsonProperty("vlanId")
138 private String vlanId;
140 private Map<String, Object> additionalProperties = new HashMap<String, Object>();
142 @JsonProperty("flowDirection")
143 public String getFlowDirection() {
144 return flowDirection;
147 @JsonProperty("flowDirection")
148 public void setFlowDirection(String flowDirection) {
149 this.flowDirection = flowDirection;
152 @JsonProperty("gtpPerFlowMetrics")
153 public GtpPerFlowMetrics getGtpPerFlowMetrics() {
154 return gtpPerFlowMetrics;
157 @JsonProperty("gtpPerFlowMetrics")
158 public void setGtpPerFlowMetrics(GtpPerFlowMetrics gtpPerFlowMetrics) {
159 this.gtpPerFlowMetrics = gtpPerFlowMetrics;
162 @JsonProperty("ipProtocolType")
163 public String getIpProtocolType() {
164 return ipProtocolType;
167 @JsonProperty("ipProtocolType")
168 public void setIpProtocolType(String ipProtocolType) {
169 this.ipProtocolType = ipProtocolType;
172 @JsonProperty("ipVersion")
173 public String getIpVersion() {
177 @JsonProperty("ipVersion")
178 public void setIpVersion(String ipVersion) {
179 this.ipVersion = ipVersion;
182 @JsonProperty("mobileFlowFieldsVersion")
183 public Double getMobileFlowFieldsVersion() {
184 return mobileFlowFieldsVersion;
187 @JsonProperty("mobileFlowFieldsVersion")
188 public void setMobileFlowFieldsVersion(Double mobileFlowFieldsVersion) {
189 this.mobileFlowFieldsVersion = mobileFlowFieldsVersion;
192 @JsonProperty("otherEndpointIpAddress")
193 public String getOtherEndpointIpAddress() {
194 return otherEndpointIpAddress;
197 @JsonProperty("otherEndpointIpAddress")
198 public void setOtherEndpointIpAddress(String otherEndpointIpAddress) {
199 this.otherEndpointIpAddress = otherEndpointIpAddress;
202 @JsonProperty("otherEndpointPort")
203 public Long getOtherEndpointPort() {
204 return otherEndpointPort;
207 @JsonProperty("otherEndpointPort")
208 public void setOtherEndpointPort(Long otherEndpointPort) {
209 this.otherEndpointPort = otherEndpointPort;
212 @JsonProperty("reportingEndpointIpAddr")
213 public String getReportingEndpointIpAddr() {
214 return reportingEndpointIpAddr;
217 @JsonProperty("reportingEndpointIpAddr")
218 public void setReportingEndpointIpAddr(String reportingEndpointIpAddr) {
219 this.reportingEndpointIpAddr = reportingEndpointIpAddr;
222 @JsonProperty("reportingEndpointPort")
223 public Long getReportingEndpointPort() {
224 return reportingEndpointPort;
227 @JsonProperty("reportingEndpointPort")
228 public void setReportingEndpointPort(Long reportingEndpointPort) {
229 this.reportingEndpointPort = reportingEndpointPort;
232 @JsonProperty("additionalFields")
233 public List<AdditionalField> getAdditionalFields() {
234 return additionalFields;
237 @JsonProperty("additionalFields")
238 public void setAdditionalFields(List<AdditionalField> additionalFields) {
239 this.additionalFields = additionalFields;
242 @JsonProperty("applicationType")
243 public String getApplicationType() {
244 return applicationType;
247 @JsonProperty("applicationType")
248 public void setApplicationType(String applicationType) {
249 this.applicationType = applicationType;
252 @JsonProperty("appProtocolType")
253 public String getAppProtocolType() {
254 return appProtocolType;
257 @JsonProperty("appProtocolType")
258 public void setAppProtocolType(String appProtocolType) {
259 this.appProtocolType = appProtocolType;
262 @JsonProperty("appProtocolVersion")
263 public String getAppProtocolVersion() {
264 return appProtocolVersion;
267 @JsonProperty("appProtocolVersion")
268 public void setAppProtocolVersion(String appProtocolVersion) {
269 this.appProtocolVersion = appProtocolVersion;
273 public String getCid() {
278 public void setCid(String cid) {
282 @JsonProperty("connectionType")
283 public String getConnectionType() {
284 return connectionType;
287 @JsonProperty("connectionType")
288 public void setConnectionType(String connectionType) {
289 this.connectionType = connectionType;
292 @JsonProperty("ecgi")
293 public String getEcgi() {
297 @JsonProperty("ecgi")
298 public void setEcgi(String ecgi) {
302 @JsonProperty("gtpProtocolType")
303 public String getGtpProtocolType() {
304 return gtpProtocolType;
307 @JsonProperty("gtpProtocolType")
308 public void setGtpProtocolType(String gtpProtocolType) {
309 this.gtpProtocolType = gtpProtocolType;
312 @JsonProperty("gtpVersion")
313 public String getGtpVersion() {
317 @JsonProperty("gtpVersion")
318 public void setGtpVersion(String gtpVersion) {
319 this.gtpVersion = gtpVersion;
322 @JsonProperty("httpHeader")
323 public String getHttpHeader() {
327 @JsonProperty("httpHeader")
328 public void setHttpHeader(String httpHeader) {
329 this.httpHeader = httpHeader;
332 @JsonProperty("imei")
333 public String getImei() {
337 @JsonProperty("imei")
338 public void setImei(String imei) {
342 @JsonProperty("imsi")
343 public String getImsi() {
347 @JsonProperty("imsi")
348 public void setImsi(String imsi) {
353 public String getLac() {
358 public void setLac(String lac) {
363 public String getMcc() {
368 public void setMcc(String mcc) {
373 public String getMnc() {
378 public void setMnc(String mnc) {
382 @JsonProperty("msisdn")
383 public String getMsisdn() {
387 @JsonProperty("msisdn")
388 public void setMsisdn(String msisdn) {
389 this.msisdn = msisdn;
392 @JsonProperty("otherFunctionalRole")
393 public String getOtherFunctionalRole() {
394 return otherFunctionalRole;
397 @JsonProperty("otherFunctionalRole")
398 public void setOtherFunctionalRole(String otherFunctionalRole) {
399 this.otherFunctionalRole = otherFunctionalRole;
403 public String getRac() {
408 public void setRac(String rac) {
412 @JsonProperty("radioAccessTechnology")
413 public String getRadioAccessTechnology() {
414 return radioAccessTechnology;
417 @JsonProperty("radioAccessTechnology")
418 public void setRadioAccessTechnology(String radioAccessTechnology) {
419 this.radioAccessTechnology = radioAccessTechnology;
423 public String getSac() {
428 public void setSac(String sac) {
432 @JsonProperty("samplingAlgorithm")
433 public Long getSamplingAlgorithm() {
434 return samplingAlgorithm;
437 @JsonProperty("samplingAlgorithm")
438 public void setSamplingAlgorithm(Long samplingAlgorithm) {
439 this.samplingAlgorithm = samplingAlgorithm;
443 public String getTac() {
448 public void setTac(String tac) {
452 @JsonProperty("tunnelId")
453 public String getTunnelId() {
457 @JsonProperty("tunnelId")
458 public void setTunnelId(String tunnelId) {
459 this.tunnelId = tunnelId;
462 @JsonProperty("vlanId")
463 public String getVlanId() {
467 @JsonProperty("vlanId")
468 public void setVlanId(String vlanId) {
469 this.vlanId = vlanId;
473 public Map<String, Object> getAdditionalProperties() {
474 return this.additionalProperties;
478 public void setAdditionalProperty(String name, Object value) {
479 this.additionalProperties.put(name, value);
483 public String toString() {
484 return new ToStringBuilder(this).append("flowDirection", flowDirection).append("gtpPerFlowMetrics", gtpPerFlowMetrics).append("ipProtocolType", ipProtocolType).append("ipVersion", ipVersion).append("mobileFlowFieldsVersion", mobileFlowFieldsVersion).append("otherEndpointIpAddress", otherEndpointIpAddress).append("otherEndpointPort", otherEndpointPort).append("reportingEndpointIpAddr", reportingEndpointIpAddr).append("reportingEndpointPort", reportingEndpointPort).append("additionalFields", additionalFields).append("applicationType", applicationType).append("appProtocolType", appProtocolType).append("appProtocolVersion", appProtocolVersion).append("cid", cid).append("connectionType", connectionType).append("ecgi", ecgi).append("gtpProtocolType", gtpProtocolType).append("gtpVersion", gtpVersion).append("httpHeader", httpHeader).append("imei", imei).append("imsi", imsi).append("lac", lac).append("mcc", mcc).append("mnc", mnc).append("msisdn", msisdn).append("otherFunctionalRole", otherFunctionalRole).append("rac", rac).append("radioAccessTechnology", radioAccessTechnology).append("sac", sac).append("samplingAlgorithm", samplingAlgorithm).append("tac", tac).append("tunnelId", tunnelId).append("vlanId", vlanId).append("additionalProperties", additionalProperties).toString();
488 public int hashCode() {
489 return new HashCodeBuilder().append(sac).append(mcc).append(samplingAlgorithm).append(tac).append(applicationType).append(gtpPerFlowMetrics).append(vlanId).append(radioAccessTechnology).append(lac).append(flowDirection).append(httpHeader).append(mnc).append(additionalFields).append(reportingEndpointIpAddr).append(appProtocolVersion).append(msisdn).append(tunnelId).append(imei).append(ipVersion).append(gtpProtocolType).append(reportingEndpointPort).append(otherEndpointPort).append(connectionType).append(ecgi).append(gtpVersion).append(cid).append(ipProtocolType).append(mobileFlowFieldsVersion).append(additionalProperties).append(imsi).append(otherFunctionalRole).append(otherEndpointIpAddress).append(appProtocolType).append(rac).toHashCode();
493 public boolean equals(Object other) {
497 if ((other instanceof MobileFlowFields) == false) {
500 MobileFlowFields rhs = ((MobileFlowFields) other);
501 return new EqualsBuilder().append(sac, rhs.sac).append(mcc, rhs.mcc).append(samplingAlgorithm, rhs.samplingAlgorithm).append(tac, rhs.tac).append(applicationType, rhs.applicationType).append(gtpPerFlowMetrics, rhs.gtpPerFlowMetrics).append(vlanId, rhs.vlanId).append(radioAccessTechnology, rhs.radioAccessTechnology).append(lac, rhs.lac).append(flowDirection, rhs.flowDirection).append(httpHeader, rhs.httpHeader).append(mnc, rhs.mnc).append(additionalFields, rhs.additionalFields).append(reportingEndpointIpAddr, rhs.reportingEndpointIpAddr).append(appProtocolVersion, rhs.appProtocolVersion).append(msisdn, rhs.msisdn).append(tunnelId, rhs.tunnelId).append(imei, rhs.imei).append(ipVersion, rhs.ipVersion).append(gtpProtocolType, rhs.gtpProtocolType).append(reportingEndpointPort, rhs.reportingEndpointPort).append(otherEndpointPort, rhs.otherEndpointPort).append(connectionType, rhs.connectionType).append(ecgi, rhs.ecgi).append(gtpVersion, rhs.gtpVersion).append(cid, rhs.cid).append(ipProtocolType, rhs.ipProtocolType).append(mobileFlowFieldsVersion, rhs.mobileFlowFieldsVersion).append(additionalProperties, rhs.additionalProperties).append(imsi, rhs.imsi).append(otherFunctionalRole, rhs.otherFunctionalRole).append(otherEndpointIpAddress, rhs.otherEndpointIpAddress).append(appProtocolType, rhs.appProtocolType).append(rac, rhs.rac).isEquals();