aboutsummaryrefslogtreecommitdiffstats
path: root/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalObject.java
diff options
context:
space:
mode:
Diffstat (limited to 'UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalObject.java')
-rw-r--r--UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalObject.java227
1 files changed, 227 insertions, 0 deletions
diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalObject.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalObject.java
new file mode 100644
index 0000000..9b656e2
--- /dev/null
+++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalObject.java
@@ -0,0 +1,227 @@
+/*
+* ============LICENSE_START=======================================================
+* ONAP : DCAE
+* ================================================================================
+* Copyright 2018 TechMahindra
+*=================================================================================
+* 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.ves.domain.ves7_0;
+
+import java.util.ArrayList;
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonPropertyDescription;
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+import org.apache.commons.lang.builder.EqualsBuilder;
+import org.apache.commons.lang.builder.HashCodeBuilder;
+import org.apache.commons.lang.builder.ToStringBuilder;
+
+
+/**
+ * json object schema, name and other meta-information along with one or more object instances
+ *
+ */
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonPropertyOrder({
+ "objectInstances",
+ "objectName",
+ "objectSchema",
+ "objectSchemaUrl",
+ "nfSubscribedObjectName",
+ "nfSubscriptionId"
+})
+public class AdditionalObject {
+
+ /**
+ * one or more instances of the jsonObject
+ * (Required)
+ *
+ */
+ @JsonProperty("objectInstances")
+ @JsonPropertyDescription("one or more instances of the jsonObject")
+ private List<ObjectInstance> objectInstances = new ArrayList<ObjectInstance>();
+ /**
+ * name of the JSON Object
+ * (Required)
+ *
+ */
+ @JsonProperty("objectName")
+ @JsonPropertyDescription("name of the JSON Object")
+ private String objectName;
+ /**
+ * json schema for the object
+ *
+ */
+ @JsonProperty("objectSchema")
+ @JsonPropertyDescription("json schema for the object")
+ private String objectSchema;
+ /**
+ * Url to the json schema for the object
+ *
+ */
+ @JsonProperty("objectSchemaUrl")
+ @JsonPropertyDescription("Url to the json schema for the object")
+ private String objectSchemaUrl;
+ /**
+ * name of the object associated with the nfSubscriptonId
+ *
+ */
+ @JsonProperty("nfSubscribedObjectName")
+ @JsonPropertyDescription("name of the object associated with the nfSubscriptonId")
+ private String nfSubscribedObjectName;
+ /**
+ * identifies an openConfig telemetry subscription on a network function, which configures the network function to send complex object data associated with the jsonObject
+ *
+ */
+ @JsonProperty("nfSubscriptionId")
+ @JsonPropertyDescription("identifies an openConfig telemetry subscription on a network function, which configures the network function to send complex object data associated with the jsonObject")
+ private String nfSubscriptionId;
+
+ /**
+ * one or more instances of the jsonObject
+ * (Required)
+ *
+ */
+ @JsonProperty("objectInstances")
+ public List<ObjectInstance> getObjectInstances() {
+ return objectInstances;
+ }
+
+ /**
+ * one or more instances of the jsonObject
+ * (Required)
+ *
+ */
+ @JsonProperty("objectInstances")
+ public void setObjectInstances(List<ObjectInstance> objectInstances) {
+ this.objectInstances = objectInstances;
+ }
+
+ /**
+ * name of the JSON Object
+ * (Required)
+ *
+ */
+ @JsonProperty("objectName")
+ public String getObjectName() {
+ return objectName;
+ }
+
+ /**
+ * name of the JSON Object
+ * (Required)
+ *
+ */
+ @JsonProperty("objectName")
+ public void setObjectName(String objectName) {
+ this.objectName = objectName;
+ }
+
+ /**
+ * json schema for the object
+ *
+ */
+ @JsonProperty("objectSchema")
+ public String getObjectSchema() {
+ return objectSchema;
+ }
+
+ /**
+ * json schema for the object
+ *
+ */
+ @JsonProperty("objectSchema")
+ public void setObjectSchema(String objectSchema) {
+ this.objectSchema = objectSchema;
+ }
+
+ /**
+ * Url to the json schema for the object
+ *
+ */
+ @JsonProperty("objectSchemaUrl")
+ public String getObjectSchemaUrl() {
+ return objectSchemaUrl;
+ }
+
+ /**
+ * Url to the json schema for the object
+ *
+ */
+ @JsonProperty("objectSchemaUrl")
+ public void setObjectSchemaUrl(String objectSchemaUrl) {
+ this.objectSchemaUrl = objectSchemaUrl;
+ }
+
+ /**
+ * name of the object associated with the nfSubscriptonId
+ *
+ */
+ @JsonProperty("nfSubscribedObjectName")
+ public String getNfSubscribedObjectName() {
+ return nfSubscribedObjectName;
+ }
+
+ /**
+ * name of the object associated with the nfSubscriptonId
+ *
+ */
+ @JsonProperty("nfSubscribedObjectName")
+ public void setNfSubscribedObjectName(String nfSubscribedObjectName) {
+ this.nfSubscribedObjectName = nfSubscribedObjectName;
+ }
+
+ /**
+ * identifies an openConfig telemetry subscription on a network function, which configures the network function to send complex object data associated with the jsonObject
+ *
+ */
+ @JsonProperty("nfSubscriptionId")
+ public String getNfSubscriptionId() {
+ return nfSubscriptionId;
+ }
+
+ /**
+ * identifies an openConfig telemetry subscription on a network function, which configures the network function to send complex object data associated with the jsonObject
+ *
+ */
+ @JsonProperty("nfSubscriptionId")
+ public void setNfSubscriptionId(String nfSubscriptionId) {
+ this.nfSubscriptionId = nfSubscriptionId;
+ }
+
+ @Override
+ public String toString() {
+ return ToStringBuilder.reflectionToString(this);
+ }
+
+ @Override
+ public int hashCode() {
+ return new HashCodeBuilder().append(objectInstances).append(objectName).append(objectSchema).append(objectSchemaUrl).append(nfSubscribedObjectName).append(nfSubscriptionId).toHashCode();
+ }
+
+ @Override
+ public boolean equals(Object other) {
+ if (other == this) {
+ return true;
+ }
+ if ((other instanceof AdditionalObject) == false) {
+ return false;
+ }
+ AdditionalObject rhs = ((AdditionalObject) other);
+ return new EqualsBuilder().append(objectInstances, rhs.objectInstances).append(objectName, rhs.objectName).append(objectSchema, rhs.objectSchema).append(objectSchemaUrl, rhs.objectSchemaUrl).append(nfSubscribedObjectName, rhs.nfSubscribedObjectName).append(nfSubscriptionId, rhs.nfSubscriptionId).isEquals();
+ }
+
+}