--- /dev/null
+/*\r
+* ============LICENSE_START=======================================================\r
+* ONAP : DCAE\r
+* ================================================================================\r
+* Copyright 2018 TechMahindra\r
+*=================================================================================\r
+* Licensed under the Apache License, Version 2.0 (the "License");\r
+* you may not use this file except in compliance with the License.\r
+* You may obtain a copy of the License at\r
+*\r
+* http://www.apache.org/licenses/LICENSE-2.0\r
+*\r
+* Unless required by applicable law or agreed to in writing, software\r
+* distributed under the License is distributed on an "AS IS" BASIS,\r
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+* See the License for the specific language governing permissions and\r
+* limitations under the License.\r
+* ============LICENSE_END=========================================================\r
+*/\r
+package org.onap.dcaegen2.ves.domain.ves7_0;\r
+\r
+import java.util.HashMap;\r
+import java.util.Map;\r
+import com.fasterxml.jackson.annotation.JsonCreator;\r
+import com.fasterxml.jackson.annotation.JsonInclude;\r
+import com.fasterxml.jackson.annotation.JsonProperty;\r
+import com.fasterxml.jackson.annotation.JsonPropertyDescription;\r
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;\r
+import com.fasterxml.jackson.annotation.JsonValue;\r
+import org.apache.commons.lang.builder.EqualsBuilder;\r
+import org.apache.commons.lang.builder.HashCodeBuilder;\r
+import org.apache.commons.lang.builder.ToStringBuilder;\r
+\r
+\r
+/**\r
+ * sip signaling fields\r
+ * \r
+ */\r
+@JsonInclude(JsonInclude.Include.NON_NULL)\r
+@JsonPropertyOrder({\r
+ "additionalInformation",\r
+ "compressedSip",\r
+ "correlator",\r
+ "localIpAddress",\r
+ "localPort",\r
+ "remoteIpAddress",\r
+ "remotePort",\r
+ "sipSignalingFieldsVersion",\r
+ "summarySip",\r
+ "vendorNfNameFields"\r
+})\r
+public class SipSignalingFields {\r
+\r
+ /**\r
+ * an associative array which is an array of key:value pairs\r
+ * \r
+ */\r
+ @JsonProperty("additionalInformation")\r
+ @JsonPropertyDescription("an associative array which is an array of key:value pairs")\r
+ private AlarmAdditionalInformation additionalInformation;\r
+ /**\r
+ * the full SIP request/response including headers and bodies\r
+ * \r
+ */\r
+ @JsonProperty("compressedSip")\r
+ @JsonPropertyDescription("the full SIP request/response including headers and bodies")\r
+ private String compressedSip;\r
+ /**\r
+ * this is the same for all events on this call\r
+ * (Required)\r
+ * \r
+ */\r
+ @JsonProperty("correlator")\r
+ @JsonPropertyDescription("this is the same for all events on this call")\r
+ private String correlator;\r
+ /**\r
+ * IP address on xNF\r
+ * (Required)\r
+ * \r
+ */\r
+ @JsonProperty("localIpAddress")\r
+ @JsonPropertyDescription("IP address on xNF")\r
+ private String localIpAddress;\r
+ /**\r
+ * port on xNF\r
+ * (Required)\r
+ * \r
+ */\r
+ @JsonProperty("localPort")\r
+ @JsonPropertyDescription("port on xNF")\r
+ private String localPort;\r
+ /**\r
+ * IP address of peer endpoint\r
+ * (Required)\r
+ * \r
+ */\r
+ @JsonProperty("remoteIpAddress")\r
+ @JsonPropertyDescription("IP address of peer endpoint")\r
+ private String remoteIpAddress;\r
+ /**\r
+ * port of peer endpoint\r
+ * (Required)\r
+ * \r
+ */\r
+ @JsonProperty("remotePort")\r
+ @JsonPropertyDescription("port of peer endpoint")\r
+ private String remotePort;\r
+ /**\r
+ * version of the sipSignalingFields block\r
+ * (Required)\r
+ * \r
+ */\r
+ @JsonProperty("sipSignalingFieldsVersion")\r
+ @JsonPropertyDescription("version of the sipSignalingFields block")\r
+ private SipSignalingFields.SipSignalingFieldsVersion sipSignalingFieldsVersion;\r
+ /**\r
+ * the SIP Method or Response ('INVITE', '200 OK', 'BYE', etc)\r
+ * \r
+ */\r
+ @JsonProperty("summarySip")\r
+ @JsonPropertyDescription("the SIP Method or Response ('INVITE', '200 OK', 'BYE', etc)")\r
+ private String summarySip;\r
+ /**\r
+ * provides vendor, nf and nfModule identifying information\r
+ * (Required)\r
+ * \r
+ */\r
+ @JsonProperty("vendorNfNameFields")\r
+ @JsonPropertyDescription("provides vendor, nf and nfModule identifying information")\r
+ private VendorNfNameFields vendorNfNameFields;\r
+\r
+ /**\r
+ * an associative array which is an array of key:value pairs\r
+ * \r
+ */\r
+ @JsonProperty("additionalInformation")\r
+ public AlarmAdditionalInformation getAdditionalInformation() {\r
+ return additionalInformation;\r
+ }\r
+\r
+ /**\r
+ * an associative array which is an array of key:value pairs\r
+ * \r
+ */\r
+ @JsonProperty("additionalInformation")\r
+ public void setAdditionalInformation(AlarmAdditionalInformation additionalInformation) {\r
+ this.additionalInformation = additionalInformation;\r
+ }\r
+\r
+ /**\r
+ * the full SIP request/response including headers and bodies\r
+ * \r
+ */\r
+ @JsonProperty("compressedSip")\r
+ public String getCompressedSip() {\r
+ return compressedSip;\r
+ }\r
+\r
+ /**\r
+ * the full SIP request/response including headers and bodies\r
+ * \r
+ */\r
+ @JsonProperty("compressedSip")\r
+ public void setCompressedSip(String compressedSip) {\r
+ this.compressedSip = compressedSip;\r
+ }\r
+\r
+ /**\r
+ * this is the same for all events on this call\r
+ * (Required)\r
+ * \r
+ */\r
+ @JsonProperty("correlator")\r
+ public String getCorrelator() {\r
+ return correlator;\r
+ }\r
+\r
+ /**\r
+ * this is the same for all events on this call\r
+ * (Required)\r
+ * \r
+ */\r
+ @JsonProperty("correlator")\r
+ public void setCorrelator(String correlator) {\r
+ this.correlator = correlator;\r
+ }\r
+\r
+ /**\r
+ * IP address on xNF\r
+ * (Required)\r
+ * \r
+ */\r
+ @JsonProperty("localIpAddress")\r
+ public String getLocalIpAddress() {\r
+ return localIpAddress;\r
+ }\r
+\r
+ /**\r
+ * IP address on xNF\r
+ * (Required)\r
+ * \r
+ */\r
+ @JsonProperty("localIpAddress")\r
+ public void setLocalIpAddress(String localIpAddress) {\r
+ this.localIpAddress = localIpAddress;\r
+ }\r
+\r
+ /**\r
+ * port on xNF\r
+ * (Required)\r
+ * \r
+ */\r
+ @JsonProperty("localPort")\r
+ public String getLocalPort() {\r
+ return localPort;\r
+ }\r
+\r
+ /**\r
+ * port on xNF\r
+ * (Required)\r
+ * \r
+ */\r
+ @JsonProperty("localPort")\r
+ public void setLocalPort(String localPort) {\r
+ this.localPort = localPort;\r
+ }\r
+\r
+ /**\r
+ * IP address of peer endpoint\r
+ * (Required)\r
+ * \r
+ */\r
+ @JsonProperty("remoteIpAddress")\r
+ public String getRemoteIpAddress() {\r
+ return remoteIpAddress;\r
+ }\r
+\r
+ /**\r
+ * IP address of peer endpoint\r
+ * (Required)\r
+ * \r
+ */\r
+ @JsonProperty("remoteIpAddress")\r
+ public void setRemoteIpAddress(String remoteIpAddress) {\r
+ this.remoteIpAddress = remoteIpAddress;\r
+ }\r
+\r
+ /**\r
+ * port of peer endpoint\r
+ * (Required)\r
+ * \r
+ */\r
+ @JsonProperty("remotePort")\r
+ public String getRemotePort() {\r
+ return remotePort;\r
+ }\r
+\r
+ /**\r
+ * port of peer endpoint\r
+ * (Required)\r
+ * \r
+ */\r
+ @JsonProperty("remotePort")\r
+ public void setRemotePort(String remotePort) {\r
+ this.remotePort = remotePort;\r
+ }\r
+\r
+ /**\r
+ * version of the sipSignalingFields block\r
+ * (Required)\r
+ * \r
+ */\r
+ @JsonProperty("sipSignalingFieldsVersion")\r
+ public SipSignalingFields.SipSignalingFieldsVersion getSipSignalingFieldsVersion() {\r
+ return sipSignalingFieldsVersion;\r
+ }\r
+\r
+ /**\r
+ * version of the sipSignalingFields block\r
+ * (Required)\r
+ * \r
+ */\r
+ @JsonProperty("sipSignalingFieldsVersion")\r
+ public void setSipSignalingFieldsVersion(SipSignalingFields.SipSignalingFieldsVersion sipSignalingFieldsVersion) {\r
+ this.sipSignalingFieldsVersion = sipSignalingFieldsVersion;\r
+ }\r
+\r
+ /**\r
+ * the SIP Method or Response ('INVITE', '200 OK', 'BYE', etc)\r
+ * \r
+ */\r
+ @JsonProperty("summarySip")\r
+ public String getSummarySip() {\r
+ return summarySip;\r
+ }\r
+\r
+ /**\r
+ * the SIP Method or Response ('INVITE', '200 OK', 'BYE', etc)\r
+ * \r
+ */\r
+ @JsonProperty("summarySip")\r
+ public void setSummarySip(String summarySip) {\r
+ this.summarySip = summarySip;\r
+ }\r
+\r
+ /**\r
+ * provides vendor, nf and nfModule identifying information\r
+ * (Required)\r
+ * \r
+ */\r
+ @JsonProperty("vendorNfNameFields")\r
+ public VendorNfNameFields getVendorNfNameFields() {\r
+ return vendorNfNameFields;\r
+ }\r
+\r
+ /**\r
+ * provides vendor, nf and nfModule identifying information\r
+ * (Required)\r
+ * \r
+ */\r
+ @JsonProperty("vendorNfNameFields")\r
+ public void setVendorNfNameFields(VendorNfNameFields vendorNfNameFields) {\r
+ this.vendorNfNameFields = vendorNfNameFields;\r
+ }\r
+\r
+ @Override\r
+ public String toString() {\r
+ return ToStringBuilder.reflectionToString(this);\r
+ }\r
+\r
+ @Override\r
+ public int hashCode() {\r
+ return new HashCodeBuilder().append(additionalInformation).append(compressedSip).append(correlator).append(localIpAddress).append(localPort).append(remoteIpAddress).append(remotePort).append(sipSignalingFieldsVersion).append(summarySip).append(vendorNfNameFields).toHashCode();\r
+ }\r
+\r
+ @Override\r
+ public boolean equals(Object other) {\r
+ if (other == this) {\r
+ return true;\r
+ }\r
+ if ((other instanceof SipSignalingFields) == false) {\r
+ return false;\r
+ }\r
+ SipSignalingFields rhs = ((SipSignalingFields) other);\r
+ return new EqualsBuilder().append(additionalInformation, rhs.additionalInformation).append(compressedSip, rhs.compressedSip).append(correlator, rhs.correlator).append(localIpAddress, rhs.localIpAddress).append(localPort, rhs.localPort).append(remoteIpAddress, rhs.remoteIpAddress).append(remotePort, rhs.remotePort).append(sipSignalingFieldsVersion, rhs.sipSignalingFieldsVersion).append(summarySip, rhs.summarySip).append(vendorNfNameFields, rhs.vendorNfNameFields).isEquals();\r
+ }\r
+\r
+ public enum SipSignalingFieldsVersion {\r
+\r
+ _3_0("3.0");\r
+ private final String value;\r
+ private final static Map<String, SipSignalingFields.SipSignalingFieldsVersion> CONSTANTS = new HashMap<String, SipSignalingFields.SipSignalingFieldsVersion>();\r
+\r
+ static {\r
+ for (SipSignalingFields.SipSignalingFieldsVersion c: values()) {\r
+ CONSTANTS.put(c.value, c);\r
+ }\r
+ }\r
+\r
+ private SipSignalingFieldsVersion(String value) {\r
+ this.value = value;\r
+ }\r
+\r
+ @Override\r
+ public String toString() {\r
+ return this.value;\r
+ }\r
+\r
+ @JsonValue\r
+ public String value() {\r
+ return this.value;\r
+ }\r
+\r
+ @JsonCreator\r
+ public static SipSignalingFields.SipSignalingFieldsVersion fromValue(String value) {\r
+ SipSignalingFields.SipSignalingFieldsVersion constant = CONSTANTS.get(value);\r
+ if (constant == null) {\r
+ throw new IllegalArgumentException(value);\r
+ } else {\r
+ return constant;\r
+ }\r
+ }\r
+\r
+ }\r
+\r
+}\r