--- /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
+ * hardware device registration fields\r
+ * \r
+ */\r
+@JsonInclude(JsonInclude.Include.NON_NULL)\r
+@JsonPropertyOrder({\r
+ "additionalFields",\r
+ "lastServiceDate",\r
+ "macAddress",\r
+ "manufactureDate",\r
+ "modelNumber",\r
+ "oamV4IpAddress",\r
+ "oamV6IpAddress",\r
+ "pnfRegistrationFieldsVersion",\r
+ "serialNumber",\r
+ "softwareVersion",\r
+ "unitFamily",\r
+ "unitType",\r
+ "vendorName"\r
+})\r
+public class PnfRegistrationFields {\r
+\r
+ /**\r
+ * an associative array which is an array of key:value pairs\r
+ * \r
+ */\r
+ @JsonProperty("additionalFields")\r
+ @JsonPropertyDescription("an associative array which is an array of key:value pairs")\r
+ private AlarmAdditionalInformation additionalFields;\r
+ /**\r
+ * TS 32.692 dateOfLastService = date of last service; e.g. 15022017\r
+ * \r
+ */\r
+ @JsonProperty("lastServiceDate")\r
+ @JsonPropertyDescription("TS 32.692 dateOfLastService = date of last service; e.g. 15022017")\r
+ private String lastServiceDate;\r
+ /**\r
+ * MAC address of OAM interface of the unit\r
+ * \r
+ */\r
+ @JsonProperty("macAddress")\r
+ @JsonPropertyDescription("MAC address of OAM interface of the unit")\r
+ private String macAddress;\r
+ /**\r
+ * TS 32.692 dateOfManufacture = manufacture date of the unit; 24032016\r
+ * \r
+ */\r
+ @JsonProperty("manufactureDate")\r
+ @JsonPropertyDescription("TS 32.692 dateOfManufacture = manufacture date of the unit; 24032016")\r
+ private String manufactureDate;\r
+ /**\r
+ * TS 32.692 versionNumber = version of the unit from vendor; e.g. AJ02. Maps to AAI equip-model\r
+ * \r
+ */\r
+ @JsonProperty("modelNumber")\r
+ @JsonPropertyDescription("TS 32.692 versionNumber = version of the unit from vendor; e.g. AJ02. Maps to AAI equip-model")\r
+ private String modelNumber;\r
+ /**\r
+ * IPv4 m-plane IP address to be used by the manager to contact the PNF\r
+ * \r
+ */\r
+ @JsonProperty("oamV4IpAddress")\r
+ @JsonPropertyDescription("IPv4 m-plane IP address to be used by the manager to contact the PNF")\r
+ private String oamV4IpAddress;\r
+ /**\r
+ * IPv6 m-plane IP address to be used by the manager to contact the PNF\r
+ * \r
+ */\r
+ @JsonProperty("oamV6IpAddress")\r
+ @JsonPropertyDescription("IPv6 m-plane IP address to be used by the manager to contact the PNF")\r
+ private String oamV6IpAddress;\r
+ /**\r
+ * version of the pnfRegistrationFields block\r
+ * (Required)\r
+ * \r
+ */\r
+ @JsonProperty("pnfRegistrationFieldsVersion")\r
+ @JsonPropertyDescription("version of the pnfRegistrationFields block")\r
+ private PnfRegistrationFields.PnfRegistrationFieldsVersion pnfRegistrationFieldsVersion;\r
+ /**\r
+ * TS 32.692 serialNumber = serial number of the unit; e.g. 6061ZW3\r
+ * \r
+ */\r
+ @JsonProperty("serialNumber")\r
+ @JsonPropertyDescription("TS 32.692 serialNumber = serial number of the unit; e.g. 6061ZW3")\r
+ private String serialNumber;\r
+ /**\r
+ * TS 32.692 swName = active SW running on the unit; e.g. 5gDUv18.05.201\r
+ * \r
+ */\r
+ @JsonProperty("softwareVersion")\r
+ @JsonPropertyDescription("TS 32.692 swName = active SW running on the unit; e.g. 5gDUv18.05.201")\r
+ private String softwareVersion;\r
+ /**\r
+ * TS 32.692 vendorUnitFamilyType = general type of HW unit; e.g. BBU\r
+ * \r
+ */\r
+ @JsonProperty("unitFamily")\r
+ @JsonPropertyDescription("TS 32.692 vendorUnitFamilyType = general type of HW unit; e.g. BBU")\r
+ private String unitFamily;\r
+ /**\r
+ * TS 32.692 vendorUnitTypeNumber = vendor name for the unit; e.g. Airscale\r
+ * \r
+ */\r
+ @JsonProperty("unitType")\r
+ @JsonPropertyDescription("TS 32.692 vendorUnitTypeNumber = vendor name for the unit; e.g. Airscale")\r
+ private String unitType;\r
+ /**\r
+ * TS 32.692 vendorName = name of manufacturer; e.g. Nokia. Maps to AAI equip-vendor\r
+ * \r
+ */\r
+ @JsonProperty("vendorName")\r
+ @JsonPropertyDescription("TS 32.692 vendorName = name of manufacturer; e.g. Nokia. Maps to AAI equip-vendor")\r
+ private String vendorName;\r
+\r
+ /**\r
+ * an associative array which is an array of key:value pairs\r
+ * \r
+ */\r
+ @JsonProperty("additionalFields")\r
+ public AlarmAdditionalInformation getAdditionalFields() {\r
+ return additionalFields;\r
+ }\r
+\r
+ /**\r
+ * an associative array which is an array of key:value pairs\r
+ * \r
+ */\r
+ @JsonProperty("additionalFields")\r
+ public void setAdditionalFields(AlarmAdditionalInformation additionalFields) {\r
+ this.additionalFields = additionalFields;\r
+ }\r
+\r
+ /**\r
+ * TS 32.692 dateOfLastService = date of last service; e.g. 15022017\r
+ * \r
+ */\r
+ @JsonProperty("lastServiceDate")\r
+ public String getLastServiceDate() {\r
+ return lastServiceDate;\r
+ }\r
+\r
+ /**\r
+ * TS 32.692 dateOfLastService = date of last service; e.g. 15022017\r
+ * \r
+ */\r
+ @JsonProperty("lastServiceDate")\r
+ public void setLastServiceDate(String lastServiceDate) {\r
+ this.lastServiceDate = lastServiceDate;\r
+ }\r
+\r
+ /**\r
+ * MAC address of OAM interface of the unit\r
+ * \r
+ */\r
+ @JsonProperty("macAddress")\r
+ public String getMacAddress() {\r
+ return macAddress;\r
+ }\r
+\r
+ /**\r
+ * MAC address of OAM interface of the unit\r
+ * \r
+ */\r
+ @JsonProperty("macAddress")\r
+ public void setMacAddress(String macAddress) {\r
+ this.macAddress = macAddress;\r
+ }\r
+\r
+ /**\r
+ * TS 32.692 dateOfManufacture = manufacture date of the unit; 24032016\r
+ * \r
+ */\r
+ @JsonProperty("manufactureDate")\r
+ public String getManufactureDate() {\r
+ return manufactureDate;\r
+ }\r
+\r
+ /**\r
+ * TS 32.692 dateOfManufacture = manufacture date of the unit; 24032016\r
+ * \r
+ */\r
+ @JsonProperty("manufactureDate")\r
+ public void setManufactureDate(String manufactureDate) {\r
+ this.manufactureDate = manufactureDate;\r
+ }\r
+\r
+ /**\r
+ * TS 32.692 versionNumber = version of the unit from vendor; e.g. AJ02. Maps to AAI equip-model\r
+ * \r
+ */\r
+ @JsonProperty("modelNumber")\r
+ public String getModelNumber() {\r
+ return modelNumber;\r
+ }\r
+\r
+ /**\r
+ * TS 32.692 versionNumber = version of the unit from vendor; e.g. AJ02. Maps to AAI equip-model\r
+ * \r
+ */\r
+ @JsonProperty("modelNumber")\r
+ public void setModelNumber(String modelNumber) {\r
+ this.modelNumber = modelNumber;\r
+ }\r
+\r
+ /**\r
+ * IPv4 m-plane IP address to be used by the manager to contact the PNF\r
+ * \r
+ */\r
+ @JsonProperty("oamV4IpAddress")\r
+ public String getOamV4IpAddress() {\r
+ return oamV4IpAddress;\r
+ }\r
+\r
+ /**\r
+ * IPv4 m-plane IP address to be used by the manager to contact the PNF\r
+ * \r
+ */\r
+ @JsonProperty("oamV4IpAddress")\r
+ public void setOamV4IpAddress(String oamV4IpAddress) {\r
+ this.oamV4IpAddress = oamV4IpAddress;\r
+ }\r
+\r
+ /**\r
+ * IPv6 m-plane IP address to be used by the manager to contact the PNF\r
+ * \r
+ */\r
+ @JsonProperty("oamV6IpAddress")\r
+ public String getOamV6IpAddress() {\r
+ return oamV6IpAddress;\r
+ }\r
+\r
+ /**\r
+ * IPv6 m-plane IP address to be used by the manager to contact the PNF\r
+ * \r
+ */\r
+ @JsonProperty("oamV6IpAddress")\r
+ public void setOamV6IpAddress(String oamV6IpAddress) {\r
+ this.oamV6IpAddress = oamV6IpAddress;\r
+ }\r
+\r
+ /**\r
+ * version of the pnfRegistrationFields block\r
+ * (Required)\r
+ * \r
+ */\r
+ @JsonProperty("pnfRegistrationFieldsVersion")\r
+ public PnfRegistrationFields.PnfRegistrationFieldsVersion getPnfRegistrationFieldsVersion() {\r
+ return pnfRegistrationFieldsVersion;\r
+ }\r
+\r
+ /**\r
+ * version of the pnfRegistrationFields block\r
+ * (Required)\r
+ * \r
+ */\r
+ @JsonProperty("pnfRegistrationFieldsVersion")\r
+ public void setPnfRegistrationFieldsVersion(PnfRegistrationFields.PnfRegistrationFieldsVersion pnfRegistrationFieldsVersion) {\r
+ this.pnfRegistrationFieldsVersion = pnfRegistrationFieldsVersion;\r
+ }\r
+\r
+ /**\r
+ * TS 32.692 serialNumber = serial number of the unit; e.g. 6061ZW3\r
+ * \r
+ */\r
+ @JsonProperty("serialNumber")\r
+ public String getSerialNumber() {\r
+ return serialNumber;\r
+ }\r
+\r
+ /**\r
+ * TS 32.692 serialNumber = serial number of the unit; e.g. 6061ZW3\r
+ * \r
+ */\r
+ @JsonProperty("serialNumber")\r
+ public void setSerialNumber(String serialNumber) {\r
+ this.serialNumber = serialNumber;\r
+ }\r
+\r
+ /**\r
+ * TS 32.692 swName = active SW running on the unit; e.g. 5gDUv18.05.201\r
+ * \r
+ */\r
+ @JsonProperty("softwareVersion")\r
+ public String getSoftwareVersion() {\r
+ return softwareVersion;\r
+ }\r
+\r
+ /**\r
+ * TS 32.692 swName = active SW running on the unit; e.g. 5gDUv18.05.201\r
+ * \r
+ */\r
+ @JsonProperty("softwareVersion")\r
+ public void setSoftwareVersion(String softwareVersion) {\r
+ this.softwareVersion = softwareVersion;\r
+ }\r
+\r
+ /**\r
+ * TS 32.692 vendorUnitFamilyType = general type of HW unit; e.g. BBU\r
+ * \r
+ */\r
+ @JsonProperty("unitFamily")\r
+ public String getUnitFamily() {\r
+ return unitFamily;\r
+ }\r
+\r
+ /**\r
+ * TS 32.692 vendorUnitFamilyType = general type of HW unit; e.g. BBU\r
+ * \r
+ */\r
+ @JsonProperty("unitFamily")\r
+ public void setUnitFamily(String unitFamily) {\r
+ this.unitFamily = unitFamily;\r
+ }\r
+\r
+ /**\r
+ * TS 32.692 vendorUnitTypeNumber = vendor name for the unit; e.g. Airscale\r
+ * \r
+ */\r
+ @JsonProperty("unitType")\r
+ public String getUnitType() {\r
+ return unitType;\r
+ }\r
+\r
+ /**\r
+ * TS 32.692 vendorUnitTypeNumber = vendor name for the unit; e.g. Airscale\r
+ * \r
+ */\r
+ @JsonProperty("unitType")\r
+ public void setUnitType(String unitType) {\r
+ this.unitType = unitType;\r
+ }\r
+\r
+ /**\r
+ * TS 32.692 vendorName = name of manufacturer; e.g. Nokia. Maps to AAI equip-vendor\r
+ * \r
+ */\r
+ @JsonProperty("vendorName")\r
+ public String getVendorName() {\r
+ return vendorName;\r
+ }\r
+\r
+ /**\r
+ * TS 32.692 vendorName = name of manufacturer; e.g. Nokia. Maps to AAI equip-vendor\r
+ * \r
+ */\r
+ @JsonProperty("vendorName")\r
+ public void setVendorName(String vendorName) {\r
+ this.vendorName = vendorName;\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(additionalFields).append(lastServiceDate).append(macAddress).append(manufactureDate).append(modelNumber).append(oamV4IpAddress).append(oamV6IpAddress).append(pnfRegistrationFieldsVersion).append(serialNumber).append(softwareVersion).append(unitFamily).append(unitType).append(vendorName).toHashCode();\r
+ }\r
+\r
+ @Override\r
+ public boolean equals(Object other) {\r
+ if (other == this) {\r
+ return true;\r
+ }\r
+ if ((other instanceof PnfRegistrationFields) == false) {\r
+ return false;\r
+ }\r
+ PnfRegistrationFields rhs = ((PnfRegistrationFields) other);\r
+ return new EqualsBuilder().append(additionalFields, rhs.additionalFields).append(lastServiceDate, rhs.lastServiceDate).append(macAddress, rhs.macAddress).append(manufactureDate, rhs.manufactureDate).append(modelNumber, rhs.modelNumber).append(oamV4IpAddress, rhs.oamV4IpAddress).append(oamV6IpAddress, rhs.oamV6IpAddress).append(pnfRegistrationFieldsVersion, rhs.pnfRegistrationFieldsVersion).append(serialNumber, rhs.serialNumber).append(softwareVersion, rhs.softwareVersion).append(unitFamily, rhs.unitFamily).append(unitType, rhs.unitType).append(vendorName, rhs.vendorName).isEquals();\r
+ }\r
+\r
+ public enum PnfRegistrationFieldsVersion {\r
+\r
+ _2_0("2.0");\r
+ private final String value;\r
+ private final static Map<String, PnfRegistrationFields.PnfRegistrationFieldsVersion> CONSTANTS = new HashMap<String, PnfRegistrationFields.PnfRegistrationFieldsVersion>();\r
+\r
+ static {\r
+ for (PnfRegistrationFields.PnfRegistrationFieldsVersion c: values()) {\r
+ CONSTANTS.put(c.value, c);\r
+ }\r
+ }\r
+\r
+ private PnfRegistrationFieldsVersion(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 PnfRegistrationFields.PnfRegistrationFieldsVersion fromValue(String value) {\r
+ PnfRegistrationFields.PnfRegistrationFieldsVersion 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