aboutsummaryrefslogtreecommitdiffstats
path: root/prh-commons/src
diff options
context:
space:
mode:
Diffstat (limited to 'prh-commons/src')
-rw-r--r--prh-commons/src/main/java/org/onap/dcaegen2/services/prh/model/AaiPnfResultModel.java621
-rw-r--r--prh-commons/src/main/java/org/onap/dcaegen2/services/prh/model/AaiServiceInstanceResultModel.java640
-rw-r--r--prh-commons/src/main/java/org/onap/dcaegen2/services/prh/model/Relationship.java102
-rw-r--r--prh-commons/src/main/java/org/onap/dcaegen2/services/prh/model/RelationshipData.java115
-rw-r--r--prh-commons/src/main/java/org/onap/dcaegen2/services/prh/model/RelationshipDict.java171
5 files changed, 1649 insertions, 0 deletions
diff --git a/prh-commons/src/main/java/org/onap/dcaegen2/services/prh/model/AaiPnfResultModel.java b/prh-commons/src/main/java/org/onap/dcaegen2/services/prh/model/AaiPnfResultModel.java
new file mode 100644
index 00000000..96d28af7
--- /dev/null
+++ b/prh-commons/src/main/java/org/onap/dcaegen2/services/prh/model/AaiPnfResultModel.java
@@ -0,0 +1,621 @@
+/*
+ * ============LICENSE_START=======================================================
+ * PNF-REGISTRATION-HANDLER
+ * ================================================================================
+ * Copyright (C) 2018 NOKIA Intellectual Property. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.services.prh.model;
+
+import com.google.gson.annotations.SerializedName;
+
+import java.util.Objects;
+
+/**
+ * PNF represents a physical network function. typically equipment used in the D1 world. in 1607, this will be populated by SDN-C to represent a premises router that a uCPE connects to. But this can be used to represent any physical device that is not an AIC node or uCPE. ###### Related Nodes - TO complex( pnf LocatedIn complex, MANY2ONE) - TO instance-group( pnf MemberOf instance-group, MANY2MANY) - TO zone( pnf LocatedIn zone, MANY2ONE) - FROM configuration( configuration AppliesTo pnf, ONE2MANY) - FROM esr-thirdparty-sdnc( esr-thirdparty-sdnc AppliesTo pnf, ONE2MANY) - FROM generic-vnf( generic-vnf HostedOn pnf, MANY2MANY) - FROM lag-interface (CHILD of pnf, lag-interface BindsTo pnf, MANY2ONE)(1) - FROM logical-link( logical-link BridgedTo pnf, MANY2MANY) - FROM p-interface (CHILD of pnf, p-interface BindsTo pnf, MANY2ONE)(1) - FROM service-instance( service-instance ComposedOf pnf, ONE2MANY) -(1) IF this PNF node is deleted, this FROM node is DELETED also
+ */
+
+public class AaiPnfResultModel {
+ @SerializedName("pnf-name")
+ private String pnfName = null;
+
+ @SerializedName("pnf-name2")
+ private String pnfName2 = null;
+
+ @SerializedName("selflink")
+ private String selflink = null;
+
+ @SerializedName("pnf-name2-source")
+ private String pnfName2Source = null;
+
+ @SerializedName("pnf-id")
+ private String pnfId = null;
+
+ @SerializedName("equip-type")
+ private String equipType = null;
+
+ @SerializedName("equip-vendor")
+ private String equipVendor = null;
+
+ @SerializedName("equip-model")
+ private String equipModel = null;
+
+ @SerializedName("management-option")
+ private String managementOption = null;
+
+ @SerializedName("ipaddress-v4-oam")
+ private String ipaddressV4Oam = null;
+
+ @SerializedName("sw-version")
+ private String swVersion = null;
+
+ @SerializedName("in-maint")
+ private Boolean inMaint = null;
+
+ @SerializedName("frame-id")
+ private String frameId = null;
+
+ @SerializedName("serial-number")
+ private String serialNumber = null;
+
+ @SerializedName("ipaddress-v4-loopback-0")
+ private String ipaddressV4Loopback0 = null;
+
+ @SerializedName("ipaddress-v6-loopback-0")
+ private String ipaddressV6Loopback0 = null;
+
+ @SerializedName("ipaddress-v4-aim")
+ private String ipaddressV4Aim = null;
+
+ @SerializedName("ipaddress-v6-aim")
+ private String ipaddressV6Aim = null;
+
+ @SerializedName("ipaddress-v6-oam")
+ private String ipaddressV6Oam = null;
+
+ @SerializedName("inv-status")
+ private String invStatus = null;
+
+ @SerializedName("resource-version")
+ private String resourceVersion = null;
+
+ @SerializedName("prov-status")
+ private String provStatus = null;
+
+ @SerializedName("nf-role")
+ private String nfRole = null;
+
+ @SerializedName("relationship-list")
+ private Relationship relationshipList = null;
+
+ public AaiPnfResultModel pnfName(String pnfName) {
+ this.pnfName = pnfName;
+ return this;
+ }
+
+ /**
+ * unique name of Physical Network Function.
+ *
+ * @return pnfName
+ **/
+ public String getPnfName() {
+ return pnfName;
+ }
+
+ public void setPnfName(String pnfName) {
+ this.pnfName = pnfName;
+ }
+
+ public AaiPnfResultModel pnfName2(String pnfName2) {
+ this.pnfName2 = pnfName2;
+ return this;
+ }
+
+ /**
+ * name of Physical Network Function.
+ *
+ * @return pnfName2
+ **/
+ public String getPnfName2() {
+ return pnfName2;
+ }
+
+ public void setPnfName2(String pnfName2) {
+ this.pnfName2 = pnfName2;
+ }
+
+ public AaiPnfResultModel selflink(String selflink) {
+ this.selflink = selflink;
+ return this;
+ }
+
+ /**
+ * URL to endpoint where AAI can get more details.
+ *
+ * @return selflink
+ **/
+ public String getSelflink() {
+ return selflink;
+ }
+
+ public void setSelflink(String selflink) {
+ this.selflink = selflink;
+ }
+
+ public AaiPnfResultModel pnfName2Source(String pnfName2Source) {
+ this.pnfName2Source = pnfName2Source;
+ return this;
+ }
+
+ /**
+ * source of name2
+ *
+ * @return pnfName2Source
+ **/
+ public String getPnfName2Source() {
+ return pnfName2Source;
+ }
+
+ public void setPnfName2Source(String pnfName2Source) {
+ this.pnfName2Source = pnfName2Source;
+ }
+
+ public AaiPnfResultModel pnfId(String pnfId) {
+ this.pnfId = pnfId;
+ return this;
+ }
+
+ /**
+ * id of pnf
+ *
+ * @return pnfId
+ **/
+ public String getPnfId() {
+ return pnfId;
+ }
+
+ public void setPnfId(String pnfId) {
+ this.pnfId = pnfId;
+ }
+
+ public AaiPnfResultModel equipType(String equipType) {
+ this.equipType = equipType;
+ return this;
+ }
+
+ /**
+ * Equipment type. Source of truth should define valid values.
+ *
+ * @return equipType
+ **/
+ public String getEquipType() {
+ return equipType;
+ }
+
+ public void setEquipType(String equipType) {
+ this.equipType = equipType;
+ }
+
+ public AaiPnfResultModel equipVendor(String equipVendor) {
+ this.equipVendor = equipVendor;
+ return this;
+ }
+
+ /**
+ * Equipment vendor. Source of truth should define valid values.
+ *
+ * @return equipVendor
+ **/
+ public String getEquipVendor() {
+ return equipVendor;
+ }
+
+ public void setEquipVendor(String equipVendor) {
+ this.equipVendor = equipVendor;
+ }
+
+ public AaiPnfResultModel equipModel(String equipModel) {
+ this.equipModel = equipModel;
+ return this;
+ }
+
+ /**
+ * Equipment model. Source of truth should define valid values.
+ *
+ * @return equipModel
+ **/
+ public String getEquipModel() {
+ return equipModel;
+ }
+
+ public void setEquipModel(String equipModel) {
+ this.equipModel = equipModel;
+ }
+
+ public AaiPnfResultModel managementOption(String managementOption) {
+ this.managementOption = managementOption;
+ return this;
+ }
+
+ /**
+ * identifier of managed by ATT or customer
+ *
+ * @return managementOption
+ **/
+ public String getManagementOption() {
+ return managementOption;
+ }
+
+ public void setManagementOption(String managementOption) {
+ this.managementOption = managementOption;
+ }
+
+ public AaiPnfResultModel ipaddressV4Oam(String ipaddressV4Oam) {
+ this.ipaddressV4Oam = ipaddressV4Oam;
+ return this;
+ }
+
+ /**
+ * ipv4-oam-address with new naming convention for IP addresses
+ *
+ * @return ipaddressV4Oam
+ **/
+ public String getIpaddressV4Oam() {
+ return ipaddressV4Oam;
+ }
+
+ public void setIpaddressV4Oam(String ipaddressV4Oam) {
+ this.ipaddressV4Oam = ipaddressV4Oam;
+ }
+
+ public AaiPnfResultModel swVersion(String swVersion) {
+ this.swVersion = swVersion;
+ return this;
+ }
+
+ /**
+ * sw-version is the version of SW for the hosted application on the PNF.
+ *
+ * @return swVersion
+ **/
+ public String getSwVersion() {
+ return swVersion;
+ }
+
+ public void setSwVersion(String swVersion) {
+ this.swVersion = swVersion;
+ }
+
+ public AaiPnfResultModel inMaint(Boolean inMaint) {
+ this.inMaint = inMaint;
+ return this;
+ }
+
+ /**
+ * Used to indicate whether or not this object is in maintenance mode (maintenance mode = true). This field (in conjunction with prov-status) is used to suppress alarms and vSCL on VNFs/VMs.
+ *
+ * @return inMaint
+ **/
+ public Boolean isInMaint() {
+ return inMaint;
+ }
+
+ public void setInMaint(Boolean inMaint) {
+ this.inMaint = inMaint;
+ }
+
+ public AaiPnfResultModel frameId(String frameId) {
+ this.frameId = frameId;
+ return this;
+ }
+
+ /**
+ * ID of the physical frame (relay rack) where pnf is installed.
+ *
+ * @return frameId
+ **/
+ public String getFrameId() {
+ return frameId;
+ }
+
+ public void setFrameId(String frameId) {
+ this.frameId = frameId;
+ }
+
+ public AaiPnfResultModel serialNumber(String serialNumber) {
+ this.serialNumber = serialNumber;
+ return this;
+ }
+
+ /**
+ * Serial number of the device
+ *
+ * @return serialNumber
+ **/
+ public String getSerialNumber() {
+ return serialNumber;
+ }
+
+ public void setSerialNumber(String serialNumber) {
+ this.serialNumber = serialNumber;
+ }
+
+ public AaiPnfResultModel ipaddressV4Loopback0(String ipaddressV4Loopback0) {
+ this.ipaddressV4Loopback0 = ipaddressV4Loopback0;
+ return this;
+ }
+
+ /**
+ * IPV4 Loopback 0 address
+ *
+ * @return ipaddressV4Loopback0
+ **/
+ public String getIpaddressV4Loopback0() {
+ return ipaddressV4Loopback0;
+ }
+
+ public void setIpaddressV4Loopback0(String ipaddressV4Loopback0) {
+ this.ipaddressV4Loopback0 = ipaddressV4Loopback0;
+ }
+
+ public AaiPnfResultModel ipaddressV6Loopback0(String ipaddressV6Loopback0) {
+ this.ipaddressV6Loopback0 = ipaddressV6Loopback0;
+ return this;
+ }
+
+ /**
+ * IPV6 Loopback 0 address
+ *
+ * @return ipaddressV6Loopback0
+ **/
+ public String getIpaddressV6Loopback0() {
+ return ipaddressV6Loopback0;
+ }
+
+ public void setIpaddressV6Loopback0(String ipaddressV6Loopback0) {
+ this.ipaddressV6Loopback0 = ipaddressV6Loopback0;
+ }
+
+ public AaiPnfResultModel ipaddressV4Aim(String ipaddressV4Aim) {
+ this.ipaddressV4Aim = ipaddressV4Aim;
+ return this;
+ }
+
+ /**
+ * IPV4 AIM address
+ *
+ * @return ipaddressV4Aim
+ **/
+ public String getIpaddressV4Aim() {
+ return ipaddressV4Aim;
+ }
+
+ public void setIpaddressV4Aim(String ipaddressV4Aim) {
+ this.ipaddressV4Aim = ipaddressV4Aim;
+ }
+
+ public AaiPnfResultModel ipaddressV6Aim(String ipaddressV6Aim) {
+ this.ipaddressV6Aim = ipaddressV6Aim;
+ return this;
+ }
+
+ /**
+ * IPV6 AIM address
+ *
+ * @return ipaddressV6Aim
+ **/
+ public String getIpaddressV6Aim() {
+ return ipaddressV6Aim;
+ }
+
+ public void setIpaddressV6Aim(String ipaddressV6Aim) {
+ this.ipaddressV6Aim = ipaddressV6Aim;
+ }
+
+ public AaiPnfResultModel ipaddressV6Oam(String ipaddressV6Oam) {
+ this.ipaddressV6Oam = ipaddressV6Oam;
+ return this;
+ }
+
+ /**
+ * IPV6 OAM address
+ *
+ * @return ipaddressV6Oam
+ **/
+ public String getIpaddressV6Oam() {
+ return ipaddressV6Oam;
+ }
+
+ public void setIpaddressV6Oam(String ipaddressV6Oam) {
+ this.ipaddressV6Oam = ipaddressV6Oam;
+ }
+
+ public AaiPnfResultModel invStatus(String invStatus) {
+ this.invStatus = invStatus;
+ return this;
+ }
+
+ /**
+ * CANOPI's inventory status. Only set with values exactly as defined by CANOPI.
+ *
+ * @return invStatus
+ **/
+ public String getInvStatus() {
+ return invStatus;
+ }
+
+ public void setInvStatus(String invStatus) {
+ this.invStatus = invStatus;
+ }
+
+ public AaiPnfResultModel resourceVersion(String resourceVersion) {
+ this.resourceVersion = resourceVersion;
+ return this;
+ }
+
+ /**
+ * Used for optimistic concurrency. Must be empty on create, valid on update and delete.
+ *
+ * @return resourceVersion
+ **/
+ public String getResourceVersion() {
+ return resourceVersion;
+ }
+
+ public void setResourceVersion(String resourceVersion) {
+ this.resourceVersion = resourceVersion;
+ }
+
+ public AaiPnfResultModel provStatus(String provStatus) {
+ this.provStatus = provStatus;
+ return this;
+ }
+
+ /**
+ * Prov Status of this device (not under canopi control) Valid values [PREPROV/NVTPROV/PROV]
+ *
+ * @return provStatus
+ **/
+ public String getProvStatus() {
+ return provStatus;
+ }
+
+ public void setProvStatus(String provStatus) {
+ this.provStatus = provStatus;
+ }
+
+ public AaiPnfResultModel nfRole(String nfRole) {
+ this.nfRole = nfRole;
+ return this;
+ }
+
+ /**
+ * Nf Role is the role performed by this instance in the network.
+ *
+ * @return nfRole
+ **/
+ public String getNfRole() {
+ return nfRole;
+ }
+
+ public void setNfRole(String nfRole) {
+ this.nfRole = nfRole;
+ }
+
+ public AaiPnfResultModel relationshipList(Relationship relationshipList) {
+ this.relationshipList = relationshipList;
+ return this;
+ }
+
+ /**
+ * Get relationshipList
+ *
+ * @return relationshipList
+ **/
+ public Relationship getRelationshipList() {
+ return relationshipList;
+ }
+
+ public void setRelationshipList(Relationship relationshipList) {
+ this.relationshipList = relationshipList;
+ }
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ AaiPnfResultModel pnf = (AaiPnfResultModel) o;
+ return Objects.equals(this.pnfName, pnf.pnfName) &&
+ Objects.equals(this.pnfName2, pnf.pnfName2) &&
+ Objects.equals(this.selflink, pnf.selflink) &&
+ Objects.equals(this.pnfName2Source, pnf.pnfName2Source) &&
+ Objects.equals(this.pnfId, pnf.pnfId) &&
+ Objects.equals(this.equipType, pnf.equipType) &&
+ Objects.equals(this.equipVendor, pnf.equipVendor) &&
+ Objects.equals(this.equipModel, pnf.equipModel) &&
+ Objects.equals(this.managementOption, pnf.managementOption) &&
+ Objects.equals(this.ipaddressV4Oam, pnf.ipaddressV4Oam) &&
+ Objects.equals(this.swVersion, pnf.swVersion) &&
+ Objects.equals(this.inMaint, pnf.inMaint) &&
+ Objects.equals(this.frameId, pnf.frameId) &&
+ Objects.equals(this.serialNumber, pnf.serialNumber) &&
+ Objects.equals(this.ipaddressV4Loopback0, pnf.ipaddressV4Loopback0) &&
+ Objects.equals(this.ipaddressV6Loopback0, pnf.ipaddressV6Loopback0) &&
+ Objects.equals(this.ipaddressV4Aim, pnf.ipaddressV4Aim) &&
+ Objects.equals(this.ipaddressV6Aim, pnf.ipaddressV6Aim) &&
+ Objects.equals(this.ipaddressV6Oam, pnf.ipaddressV6Oam) &&
+ Objects.equals(this.invStatus, pnf.invStatus) &&
+ Objects.equals(this.resourceVersion, pnf.resourceVersion) &&
+ Objects.equals(this.provStatus, pnf.provStatus) &&
+ Objects.equals(this.nfRole, pnf.nfRole) &&
+ Objects.equals(this.relationshipList, pnf.relationshipList);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(pnfName, pnfName2, selflink, pnfName2Source, pnfId, equipType, equipVendor, equipModel, managementOption, ipaddressV4Oam, swVersion, inMaint, frameId, serialNumber, ipaddressV4Loopback0, ipaddressV6Loopback0, ipaddressV4Aim, ipaddressV6Aim, ipaddressV6Oam, invStatus, resourceVersion, provStatus, nfRole, relationshipList);
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class AaiPnfResultModel {\n");
+
+ sb.append(" pnfName: ").append(toIndentedString(pnfName)).append("\n");
+ sb.append(" pnfName2: ").append(toIndentedString(pnfName2)).append("\n");
+ sb.append(" selflink: ").append(toIndentedString(selflink)).append("\n");
+ sb.append(" pnfName2Source: ").append(toIndentedString(pnfName2Source)).append("\n");
+ sb.append(" pnfId: ").append(toIndentedString(pnfId)).append("\n");
+ sb.append(" equipType: ").append(toIndentedString(equipType)).append("\n");
+ sb.append(" equipVendor: ").append(toIndentedString(equipVendor)).append("\n");
+ sb.append(" equipModel: ").append(toIndentedString(equipModel)).append("\n");
+ sb.append(" managementOption: ").append(toIndentedString(managementOption)).append("\n");
+ sb.append(" ipaddressV4Oam: ").append(toIndentedString(ipaddressV4Oam)).append("\n");
+ sb.append(" swVersion: ").append(toIndentedString(swVersion)).append("\n");
+ sb.append(" inMaint: ").append(toIndentedString(inMaint)).append("\n");
+ sb.append(" frameId: ").append(toIndentedString(frameId)).append("\n");
+ sb.append(" serialNumber: ").append(toIndentedString(serialNumber)).append("\n");
+ sb.append(" ipaddressV4Loopback0: ").append(toIndentedString(ipaddressV4Loopback0)).append("\n");
+ sb.append(" ipaddressV6Loopback0: ").append(toIndentedString(ipaddressV6Loopback0)).append("\n");
+ sb.append(" ipaddressV4Aim: ").append(toIndentedString(ipaddressV4Aim)).append("\n");
+ sb.append(" ipaddressV6Aim: ").append(toIndentedString(ipaddressV6Aim)).append("\n");
+ sb.append(" ipaddressV6Oam: ").append(toIndentedString(ipaddressV6Oam)).append("\n");
+ sb.append(" invStatus: ").append(toIndentedString(invStatus)).append("\n");
+ sb.append(" resourceVersion: ").append(toIndentedString(resourceVersion)).append("\n");
+ sb.append(" provStatus: ").append(toIndentedString(provStatus)).append("\n");
+ sb.append(" nfRole: ").append(toIndentedString(nfRole)).append("\n");
+ sb.append(" relationshipList: ").append(toIndentedString(relationshipList)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
+
diff --git a/prh-commons/src/main/java/org/onap/dcaegen2/services/prh/model/AaiServiceInstanceResultModel.java b/prh-commons/src/main/java/org/onap/dcaegen2/services/prh/model/AaiServiceInstanceResultModel.java
new file mode 100644
index 00000000..bb839c3c
--- /dev/null
+++ b/prh-commons/src/main/java/org/onap/dcaegen2/services/prh/model/AaiServiceInstanceResultModel.java
@@ -0,0 +1,640 @@
+/*
+ * ============LICENSE_START=======================================================
+ * PNF-REGISTRATION-HANDLER
+ * ================================================================================
+ * Copyright (C) 2018 NOKIA Intellectual Property. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.services.prh.model;
+
+import com.google.gson.annotations.SerializedName;
+
+import java.util.Objects;
+
+public class AaiServiceInstanceResultModel {
+ @SerializedName("service-instance-id")
+ private String serviceInstanceId = null;
+
+ @SerializedName("service-instance-name")
+ private String serviceInstanceName = null;
+
+ @SerializedName("service-type")
+ private String serviceType = null;
+
+ @SerializedName("service-role")
+ private String serviceRole = null;
+
+ @SerializedName("environment-context")
+ private String environmentContext = null;
+
+ @SerializedName("workload-context")
+ private String workloadContext = null;
+
+ @SerializedName("created-at")
+ private String createdAt = null;
+
+ @SerializedName("updated-at")
+ private String updatedAt = null;
+
+ @SerializedName("description")
+ private String description = null;
+
+ @SerializedName("model-invariant-id")
+ private String modelInvariantId = null;
+
+ @SerializedName("model-version-id")
+ private String modelVersionId = null;
+
+ @SerializedName("persona-model-version")
+ private String personaModelVersion = null;
+
+ @SerializedName("widget-model-id")
+ private String widgetModelId = null;
+
+ @SerializedName("widget-model-version")
+ private String widgetModelVersion = null;
+
+ @SerializedName("bandwidth-total")
+ private String bandwidthTotal = null;
+
+ @SerializedName("bandwidth-up-wan1")
+ private String bandwidthUpWan1 = null;
+
+ @SerializedName("bandwidth-down-wan1")
+ private String bandwidthDownWan1 = null;
+
+ @SerializedName("bandwidth-up-wan2")
+ private String bandwidthUpWan2 = null;
+
+ @SerializedName("bandwidth-down-wan2")
+ private String bandwidthDownWan2 = null;
+
+ @SerializedName("vhn-portal-url")
+ private String vhnPortalUrl = null;
+
+ @SerializedName("service-instance-location-id")
+ private String serviceInstanceLocationId = null;
+
+ @SerializedName("resource-version")
+ private String resourceVersion = null;
+
+ @SerializedName("selflink")
+ private String selflink = null;
+
+ @SerializedName("orchestration-status")
+ private String orchestrationStatus = null;
+
+ @SerializedName("relationship-list")
+ private Relationship relationshipList = null;
+
+ public AaiServiceInstanceResultModel serviceInstanceId(String serviceInstanceId) {
+ this.serviceInstanceId = serviceInstanceId;
+ return this;
+ }
+
+ /**
+ * Uniquely identifies this instance of a service
+ *
+ * @return serviceInstanceId
+ **/
+ public String getServiceInstanceId() {
+ return serviceInstanceId;
+ }
+
+ public void setServiceInstanceId(String serviceInstanceId) {
+ this.serviceInstanceId = serviceInstanceId;
+ }
+
+ public AaiServiceInstanceResultModel serviceInstanceName(String serviceInstanceName) {
+ this.serviceInstanceName = serviceInstanceName;
+ return this;
+ }
+
+ /**
+ * This field will store a name assigned to the service-instance.
+ *
+ * @return serviceInstanceName
+ **/
+ public String getServiceInstanceName() {
+ return serviceInstanceName;
+ }
+
+ public void setServiceInstanceName(String serviceInstanceName) {
+ this.serviceInstanceName = serviceInstanceName;
+ }
+
+ public AaiServiceInstanceResultModel serviceType(String serviceType) {
+ this.serviceType = serviceType;
+ return this;
+ }
+
+ /**
+ * String capturing type of service.
+ *
+ * @return serviceType
+ **/
+ public String getServiceType() {
+ return serviceType;
+ }
+
+ public void setServiceType(String serviceType) {
+ this.serviceType = serviceType;
+ }
+
+ public AaiServiceInstanceResultModel serviceRole(String serviceRole) {
+ this.serviceRole = serviceRole;
+ return this;
+ }
+
+ /**
+ * String capturing the service role.
+ *
+ * @return serviceRole
+ **/
+ public String getServiceRole() {
+ return serviceRole;
+ }
+
+ public void setServiceRole(String serviceRole) {
+ this.serviceRole = serviceRole;
+ }
+
+ public AaiServiceInstanceResultModel environmentContext(String environmentContext) {
+ this.environmentContext = environmentContext;
+ return this;
+ }
+
+ /**
+ * This field will store the environment context assigned to the service-instance.
+ *
+ * @return environmentContext
+ **/
+ public String getEnvironmentContext() {
+ return environmentContext;
+ }
+
+ public void setEnvironmentContext(String environmentContext) {
+ this.environmentContext = environmentContext;
+ }
+
+ public AaiServiceInstanceResultModel workloadContext(String workloadContext) {
+ this.workloadContext = workloadContext;
+ return this;
+ }
+
+ /**
+ * This field will store the workload context assigned to the service-instance.
+ *
+ * @return workloadContext
+ **/
+ public String getWorkloadContext() {
+ return workloadContext;
+ }
+
+ public void setWorkloadContext(String workloadContext) {
+ this.workloadContext = workloadContext;
+ }
+
+ public AaiServiceInstanceResultModel createdAt(String createdAt) {
+ this.createdAt = createdAt;
+ return this;
+ }
+
+ /**
+ * create time of Network Service.
+ *
+ * @return createdAt
+ **/
+ public String getCreatedAt() {
+ return createdAt;
+ }
+
+ public void setCreatedAt(String createdAt) {
+ this.createdAt = createdAt;
+ }
+
+ public AaiServiceInstanceResultModel updatedAt(String updatedAt) {
+ this.updatedAt = updatedAt;
+ return this;
+ }
+
+ /**
+ * last update of Network Service.
+ *
+ * @return updatedAt
+ **/
+ public String getUpdatedAt() {
+ return updatedAt;
+ }
+
+ public void setUpdatedAt(String updatedAt) {
+ this.updatedAt = updatedAt;
+ }
+
+ public AaiServiceInstanceResultModel description(String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * short description for service-instance.
+ *
+ * @return description
+ **/
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public AaiServiceInstanceResultModel modelInvariantId(String modelInvariantId) {
+ this.modelInvariantId = modelInvariantId;
+ return this;
+ }
+
+ /**
+ * the ASDC model id for this resource or service model.
+ *
+ * @return modelInvariantId
+ **/
+ public String getModelInvariantId() {
+ return modelInvariantId;
+ }
+
+ public void setModelInvariantId(String modelInvariantId) {
+ this.modelInvariantId = modelInvariantId;
+ }
+
+ public AaiServiceInstanceResultModel modelVersionId(String modelVersionId) {
+ this.modelVersionId = modelVersionId;
+ return this;
+ }
+
+ /**
+ * the ASDC model version for this resource or service model.
+ *
+ * @return modelVersionId
+ **/
+ public String getModelVersionId() {
+ return modelVersionId;
+ }
+
+ public void setModelVersionId(String modelVersionId) {
+ this.modelVersionId = modelVersionId;
+ }
+
+ public AaiServiceInstanceResultModel personaModelVersion(String personaModelVersion) {
+ this.personaModelVersion = personaModelVersion;
+ return this;
+ }
+
+ /**
+ * the ASDC model version for this resource or service model.
+ *
+ * @return personaModelVersion
+ **/
+ public String getPersonaModelVersion() {
+ return personaModelVersion;
+ }
+
+ public void setPersonaModelVersion(String personaModelVersion) {
+ this.personaModelVersion = personaModelVersion;
+ }
+
+ public AaiServiceInstanceResultModel widgetModelId(String widgetModelId) {
+ this.widgetModelId = widgetModelId;
+ return this;
+ }
+
+ /**
+ * the ASDC data dictionary widget model. This maps directly to the A&AI widget.
+ *
+ * @return widgetModelId
+ **/
+ public String getWidgetModelId() {
+ return widgetModelId;
+ }
+
+ public void setWidgetModelId(String widgetModelId) {
+ this.widgetModelId = widgetModelId;
+ }
+
+ public AaiServiceInstanceResultModel widgetModelVersion(String widgetModelVersion) {
+ this.widgetModelVersion = widgetModelVersion;
+ return this;
+ }
+
+ /**
+ * the ASDC data dictionary version of the widget model.This maps directly to the A&AI version of the widget.
+ *
+ * @return widgetModelVersion
+ **/
+ public String getWidgetModelVersion() {
+ return widgetModelVersion;
+ }
+
+ public void setWidgetModelVersion(String widgetModelVersion) {
+ this.widgetModelVersion = widgetModelVersion;
+ }
+
+ public AaiServiceInstanceResultModel bandwidthTotal(String bandwidthTotal) {
+ this.bandwidthTotal = bandwidthTotal;
+ return this;
+ }
+
+ /**
+ * Indicates the total bandwidth to be used for this service.
+ *
+ * @return bandwidthTotal
+ **/
+ public String getBandwidthTotal() {
+ return bandwidthTotal;
+ }
+
+ public void setBandwidthTotal(String bandwidthTotal) {
+ this.bandwidthTotal = bandwidthTotal;
+ }
+
+ public AaiServiceInstanceResultModel bandwidthUpWan1(String bandwidthUpWan1) {
+ this.bandwidthUpWan1 = bandwidthUpWan1;
+ return this;
+ }
+
+ /**
+ * indicates the upstream bandwidth this service will use on the WAN1 port of the physical device.
+ *
+ * @return bandwidthUpWan1
+ **/
+ public String getBandwidthUpWan1() {
+ return bandwidthUpWan1;
+ }
+
+ public void setBandwidthUpWan1(String bandwidthUpWan1) {
+ this.bandwidthUpWan1 = bandwidthUpWan1;
+ }
+
+ public AaiServiceInstanceResultModel bandwidthDownWan1(String bandwidthDownWan1) {
+ this.bandwidthDownWan1 = bandwidthDownWan1;
+ return this;
+ }
+
+ /**
+ * indicates the downstream bandwidth this service will use on the WAN1 port of the physical device.
+ *
+ * @return bandwidthDownWan1
+ **/
+ public String getBandwidthDownWan1() {
+ return bandwidthDownWan1;
+ }
+
+ public void setBandwidthDownWan1(String bandwidthDownWan1) {
+ this.bandwidthDownWan1 = bandwidthDownWan1;
+ }
+
+ public AaiServiceInstanceResultModel bandwidthUpWan2(String bandwidthUpWan2) {
+ this.bandwidthUpWan2 = bandwidthUpWan2;
+ return this;
+ }
+
+ /**
+ * indicates the upstream bandwidth this service will use on the WAN2 port of the physical device.
+ *
+ * @return bandwidthUpWan2
+ **/
+ public String getBandwidthUpWan2() {
+ return bandwidthUpWan2;
+ }
+
+ public void setBandwidthUpWan2(String bandwidthUpWan2) {
+ this.bandwidthUpWan2 = bandwidthUpWan2;
+ }
+
+ public AaiServiceInstanceResultModel bandwidthDownWan2(String bandwidthDownWan2) {
+ this.bandwidthDownWan2 = bandwidthDownWan2;
+ return this;
+ }
+
+ /**
+ * indicates the downstream bandwidth this service will use on the WAN2 port of the physical device.
+ *
+ * @return bandwidthDownWan2
+ **/
+ public String getBandwidthDownWan2() {
+ return bandwidthDownWan2;
+ }
+
+ public void setBandwidthDownWan2(String bandwidthDownWan2) {
+ this.bandwidthDownWan2 = bandwidthDownWan2;
+ }
+
+ public AaiServiceInstanceResultModel vhnPortalUrl(String vhnPortalUrl) {
+ this.vhnPortalUrl = vhnPortalUrl;
+ return this;
+ }
+
+ /**
+ * URL customers will use to access the vHN Portal.
+ *
+ * @return vhnPortalUrl
+ **/
+ public String getVhnPortalUrl() {
+ return vhnPortalUrl;
+ }
+
+ public void setVhnPortalUrl(String vhnPortalUrl) {
+ this.vhnPortalUrl = vhnPortalUrl;
+ }
+
+ public AaiServiceInstanceResultModel serviceInstanceLocationId(String serviceInstanceLocationId) {
+ this.serviceInstanceLocationId = serviceInstanceLocationId;
+ return this;
+ }
+
+ /**
+ * An identifier that customers assign to the location where this service is being used.
+ *
+ * @return serviceInstanceLocationId
+ **/
+ public String getServiceInstanceLocationId() {
+ return serviceInstanceLocationId;
+ }
+
+ public void setServiceInstanceLocationId(String serviceInstanceLocationId) {
+ this.serviceInstanceLocationId = serviceInstanceLocationId;
+ }
+
+ public AaiServiceInstanceResultModel resourceVersion(String resourceVersion) {
+ this.resourceVersion = resourceVersion;
+ return this;
+ }
+
+ /**
+ * Used for optimistic concurrency. Must be empty on create, valid on update and delete.
+ *
+ * @return resourceVersion
+ **/
+ public String getResourceVersion() {
+ return resourceVersion;
+ }
+
+ public void setResourceVersion(String resourceVersion) {
+ this.resourceVersion = resourceVersion;
+ }
+
+ public AaiServiceInstanceResultModel selflink(String selflink) {
+ this.selflink = selflink;
+ return this;
+ }
+
+ /**
+ * Path to the controller object.
+ *
+ * @return selflink
+ **/
+ public String getSelflink() {
+ return selflink;
+ }
+
+ public void setSelflink(String selflink) {
+ this.selflink = selflink;
+ }
+
+ public AaiServiceInstanceResultModel orchestrationStatus(String orchestrationStatus) {
+ this.orchestrationStatus = orchestrationStatus;
+ return this;
+ }
+
+ /**
+ * Orchestration status of this service.
+ *
+ * @return orchestrationStatus
+ **/
+ public String getOrchestrationStatus() {
+ return orchestrationStatus;
+ }
+
+ public void setOrchestrationStatus(String orchestrationStatus) {
+ this.orchestrationStatus = orchestrationStatus;
+ }
+
+ public AaiServiceInstanceResultModel relationshipList(Relationship relationshipList) {
+ this.relationshipList = relationshipList;
+ return this;
+ }
+
+ /**
+ * Get relationshipList
+ *
+ * @return relationshipList
+ **/
+ public Relationship getRelationshipList() {
+ return relationshipList;
+ }
+
+ public void setRelationshipList(Relationship relationshipList) {
+ this.relationshipList = relationshipList;
+ }
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ AaiServiceInstanceResultModel serviceInstance = (AaiServiceInstanceResultModel) o;
+ return Objects.equals(this.serviceInstanceId, serviceInstance.serviceInstanceId) &&
+ Objects.equals(this.serviceInstanceName, serviceInstance.serviceInstanceName) &&
+ Objects.equals(this.serviceType, serviceInstance.serviceType) &&
+ Objects.equals(this.serviceRole, serviceInstance.serviceRole) &&
+ Objects.equals(this.environmentContext, serviceInstance.environmentContext) &&
+ Objects.equals(this.workloadContext, serviceInstance.workloadContext) &&
+ Objects.equals(this.createdAt, serviceInstance.createdAt) &&
+ Objects.equals(this.updatedAt, serviceInstance.updatedAt) &&
+ Objects.equals(this.description, serviceInstance.description) &&
+ Objects.equals(this.modelInvariantId, serviceInstance.modelInvariantId) &&
+ Objects.equals(this.modelVersionId, serviceInstance.modelVersionId) &&
+ Objects.equals(this.personaModelVersion, serviceInstance.personaModelVersion) &&
+ Objects.equals(this.widgetModelId, serviceInstance.widgetModelId) &&
+ Objects.equals(this.widgetModelVersion, serviceInstance.widgetModelVersion) &&
+ Objects.equals(this.bandwidthTotal, serviceInstance.bandwidthTotal) &&
+ Objects.equals(this.bandwidthUpWan1, serviceInstance.bandwidthUpWan1) &&
+ Objects.equals(this.bandwidthDownWan1, serviceInstance.bandwidthDownWan1) &&
+ Objects.equals(this.bandwidthUpWan2, serviceInstance.bandwidthUpWan2) &&
+ Objects.equals(this.bandwidthDownWan2, serviceInstance.bandwidthDownWan2) &&
+ Objects.equals(this.vhnPortalUrl, serviceInstance.vhnPortalUrl) &&
+ Objects.equals(this.serviceInstanceLocationId, serviceInstance.serviceInstanceLocationId) &&
+ Objects.equals(this.resourceVersion, serviceInstance.resourceVersion) &&
+ Objects.equals(this.selflink, serviceInstance.selflink) &&
+ Objects.equals(this.orchestrationStatus, serviceInstance.orchestrationStatus) &&
+ Objects.equals(this.relationshipList, serviceInstance.relationshipList);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(serviceInstanceId, serviceInstanceName, serviceType, serviceRole, environmentContext, workloadContext, createdAt, updatedAt, description, modelInvariantId, modelVersionId, personaModelVersion, widgetModelId, widgetModelVersion, bandwidthTotal, bandwidthUpWan1, bandwidthDownWan1, bandwidthUpWan2, bandwidthDownWan2, vhnPortalUrl, serviceInstanceLocationId, resourceVersion, selflink, orchestrationStatus, relationshipList);
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class AaiServiceInstanceResultModel {\n");
+
+ sb.append(" serviceInstanceId: ").append(toIndentedString(serviceInstanceId)).append("\n");
+ sb.append(" serviceInstanceName: ").append(toIndentedString(serviceInstanceName)).append("\n");
+ sb.append(" serviceType: ").append(toIndentedString(serviceType)).append("\n");
+ sb.append(" serviceRole: ").append(toIndentedString(serviceRole)).append("\n");
+ sb.append(" environmentContext: ").append(toIndentedString(environmentContext)).append("\n");
+ sb.append(" workloadContext: ").append(toIndentedString(workloadContext)).append("\n");
+ sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
+ sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
+ sb.append(" description: ").append(toIndentedString(description)).append("\n");
+ sb.append(" modelInvariantId: ").append(toIndentedString(modelInvariantId)).append("\n");
+ sb.append(" modelVersionId: ").append(toIndentedString(modelVersionId)).append("\n");
+ sb.append(" personaModelVersion: ").append(toIndentedString(personaModelVersion)).append("\n");
+ sb.append(" widgetModelId: ").append(toIndentedString(widgetModelId)).append("\n");
+ sb.append(" widgetModelVersion: ").append(toIndentedString(widgetModelVersion)).append("\n");
+ sb.append(" bandwidthTotal: ").append(toIndentedString(bandwidthTotal)).append("\n");
+ sb.append(" bandwidthUpWan1: ").append(toIndentedString(bandwidthUpWan1)).append("\n");
+ sb.append(" bandwidthDownWan1: ").append(toIndentedString(bandwidthDownWan1)).append("\n");
+ sb.append(" bandwidthUpWan2: ").append(toIndentedString(bandwidthUpWan2)).append("\n");
+ sb.append(" bandwidthDownWan2: ").append(toIndentedString(bandwidthDownWan2)).append("\n");
+ sb.append(" vhnPortalUrl: ").append(toIndentedString(vhnPortalUrl)).append("\n");
+ sb.append(" serviceInstanceLocationId: ").append(toIndentedString(serviceInstanceLocationId)).append("\n");
+ sb.append(" resourceVersion: ").append(toIndentedString(resourceVersion)).append("\n");
+ sb.append(" selflink: ").append(toIndentedString(selflink)).append("\n");
+ sb.append(" orchestrationStatus: ").append(toIndentedString(orchestrationStatus)).append("\n");
+ sb.append(" relationshipList: ").append(toIndentedString(relationshipList)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+} \ No newline at end of file
diff --git a/prh-commons/src/main/java/org/onap/dcaegen2/services/prh/model/Relationship.java b/prh-commons/src/main/java/org/onap/dcaegen2/services/prh/model/Relationship.java
new file mode 100644
index 00000000..814cc641
--- /dev/null
+++ b/prh-commons/src/main/java/org/onap/dcaegen2/services/prh/model/Relationship.java
@@ -0,0 +1,102 @@
+/*
+ * ============LICENSE_START=======================================================
+ * PNF-REGISTRATION-HANDLER
+ * ================================================================================
+ * Copyright (C) 2018 NOKIA Intellectual Property. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.services.prh.model;
+
+import com.google.gson.annotations.SerializedName;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Objects;
+
+/**
+ * dictionary of relationship
+ */
+public class Relationship {
+ @SerializedName("relationship")
+ private List<RelationshipDict> relationship = null;
+
+ public Relationship relationship(List<RelationshipDict> relationship) {
+ this.relationship = relationship;
+ return this;
+ }
+
+ public Relationship addRelationshipItem(RelationshipDict relationshipItem) {
+ if (this.relationship == null) {
+ this.relationship = new ArrayList<RelationshipDict>();
+ }
+ this.relationship.add(relationshipItem);
+ return this;
+ }
+
+ /**
+ * Get relationship
+ *
+ * @return relationship
+ **/
+ public List<RelationshipDict> getRelationship() {
+ return relationship;
+ }
+
+ public void setRelationship(List<RelationshipDict> relationship) {
+ this.relationship = relationship;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ Relationship relationship = (Relationship) o;
+ return Objects.equals(this.relationship, relationship.relationship);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(relationship);
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class Relationship {\n");
+
+ sb.append(" relationship: ").append(toIndentedString(relationship)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+} \ No newline at end of file
diff --git a/prh-commons/src/main/java/org/onap/dcaegen2/services/prh/model/RelationshipData.java b/prh-commons/src/main/java/org/onap/dcaegen2/services/prh/model/RelationshipData.java
new file mode 100644
index 00000000..e5108ad6
--- /dev/null
+++ b/prh-commons/src/main/java/org/onap/dcaegen2/services/prh/model/RelationshipData.java
@@ -0,0 +1,115 @@
+/*
+ * ============LICENSE_START=======================================================
+ * PNF-REGISTRATION-HANDLER
+ * ================================================================================
+ * Copyright (C) 2018 NOKIA Intellectual Property. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.services.prh.model;
+
+import com.google.gson.annotations.SerializedName;
+
+import java.util.Objects;
+
+/**
+ * RelationshipData
+ */
+public class RelationshipData {
+ @SerializedName("relationship-key")
+ private String relationshipKey = null;
+
+ @SerializedName("relationship-value")
+ private String relationshipValue = null;
+
+ public RelationshipData relationshipKey(String relationshipKey) {
+ this.relationshipKey = relationshipKey;
+ return this;
+ }
+
+ /**
+ * A keyword provided by A&amp;AI to indicate an attribute.
+ *
+ * @return relationshipKey
+ **/
+ public String getRelationshipKey() {
+ return relationshipKey;
+ }
+
+ public void setRelationshipKey(String relationshipKey) {
+ this.relationshipKey = relationshipKey;
+ }
+
+ public RelationshipData relationshipValue(String relationshipValue) {
+ this.relationshipValue = relationshipValue;
+ return this;
+ }
+
+ /**
+ * Value of the attribute.
+ *
+ * @return relationshipValue
+ **/
+ public String getRelationshipValue() {
+ return relationshipValue;
+ }
+
+ public void setRelationshipValue(String relationshipValue) {
+ this.relationshipValue = relationshipValue;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ RelationshipData relationshipData = (RelationshipData) o;
+ return Objects.equals(this.relationshipKey, relationshipData.relationshipKey) &&
+ Objects.equals(this.relationshipValue, relationshipData.relationshipValue);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(relationshipKey, relationshipValue);
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class RelationshipData {\n");
+
+ sb.append(" relationshipKey: ").append(toIndentedString(relationshipKey)).append("\n");
+ sb.append(" relationshipValue: ").append(toIndentedString(relationshipValue)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+} \ No newline at end of file
diff --git a/prh-commons/src/main/java/org/onap/dcaegen2/services/prh/model/RelationshipDict.java b/prh-commons/src/main/java/org/onap/dcaegen2/services/prh/model/RelationshipDict.java
new file mode 100644
index 00000000..5db99dc7
--- /dev/null
+++ b/prh-commons/src/main/java/org/onap/dcaegen2/services/prh/model/RelationshipDict.java
@@ -0,0 +1,171 @@
+/*
+ * ============LICENSE_START=======================================================
+ * PNF-REGISTRATION-HANDLER
+ * ================================================================================
+ * Copyright (C) 2018 NOKIA Intellectual Property. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.services.prh.model;
+
+import com.google.gson.annotations.SerializedName;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Objects;
+
+/**
+ * RelationshipDict
+ */
+public class RelationshipDict {
+ @SerializedName("related-to")
+ private String relatedTo = null;
+
+ @SerializedName("relationship-label")
+ private String relationshipLabel = null;
+
+ @SerializedName("related-link")
+ private String relatedLink = null;
+
+ @SerializedName("relationship-data")
+ private List<RelationshipData> relationshipData = null;
+
+ public RelationshipDict relatedTo(String relatedTo) {
+ this.relatedTo = relatedTo;
+ return this;
+ }
+
+ /**
+ * A keyword provided by A&amp;AI to indicate type of node.
+ *
+ * @return relatedTo
+ **/
+ public String getRelatedTo() {
+ return relatedTo;
+ }
+
+ public void setRelatedTo(String relatedTo) {
+ this.relatedTo = relatedTo;
+ }
+
+ public RelationshipDict relationshipLabel(String relationshipLabel) {
+ this.relationshipLabel = relationshipLabel;
+ return this;
+ }
+
+ /**
+ * The edge label for this relationship.
+ *
+ * @return relationshipLabel
+ **/
+ public String getRelationshipLabel() {
+ return relationshipLabel;
+ }
+
+ public void setRelationshipLabel(String relationshipLabel) {
+ this.relationshipLabel = relationshipLabel;
+ }
+
+ public RelationshipDict relatedLink(String relatedLink) {
+ this.relatedLink = relatedLink;
+ return this;
+ }
+
+ /**
+ * URL to the object in A&amp;AI.
+ *
+ * @return relatedLink
+ **/
+ public String getRelatedLink() {
+ return relatedLink;
+ }
+
+ public void setRelatedLink(String relatedLink) {
+ this.relatedLink = relatedLink;
+ }
+
+ public RelationshipDict relationshipData(List<RelationshipData> relationshipData) {
+ this.relationshipData = relationshipData;
+ return this;
+ }
+
+ public RelationshipDict addRelationshipDataItem(RelationshipData relationshipDataItem) {
+ if (this.relationshipData == null) {
+ this.relationshipData = new ArrayList<RelationshipData>();
+ }
+ this.relationshipData.add(relationshipDataItem);
+ return this;
+ }
+
+ /**
+ * Get relationshipData
+ *
+ * @return relationshipData
+ **/
+ public List<RelationshipData> getRelationshipData() {
+ return relationshipData;
+ }
+
+ public void setRelationshipData(List<RelationshipData> relationshipData) {
+ this.relationshipData = relationshipData;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ RelationshipDict relationshipDict = (RelationshipDict) o;
+ return Objects.equals(this.relatedTo, relationshipDict.relatedTo) &&
+ Objects.equals(this.relationshipLabel, relationshipDict.relationshipLabel) &&
+ Objects.equals(this.relatedLink, relationshipDict.relatedLink) &&
+ Objects.equals(this.relationshipData, relationshipDict.relationshipData);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(relatedTo, relationshipLabel, relatedLink, relationshipData);
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class RelationshipDict {\n");
+
+ sb.append(" relatedTo: ").append(toIndentedString(relatedTo)).append("\n");
+ sb.append(" relationshipLabel: ").append(toIndentedString(relationshipLabel)).append("\n");
+ sb.append(" relatedLink: ").append(toIndentedString(relatedLink)).append("\n");
+ sb.append(" relationshipData: ").append(toIndentedString(relationshipData)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+} \ No newline at end of file