Continue VES 5.4 support as well in VES Mapper
[dcaegen2/services/mapper.git] / UniversalVesAdapter / src / main / java / org / onap / dcaegen2 / ves / domain / ves54 / AdditionalParameter.java
diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/AdditionalParameter.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/AdditionalParameter.java
new file mode 100644 (file)
index 0000000..35be46e
--- /dev/null
@@ -0,0 +1,220 @@
+/*-\r
+ * ============LICENSE_START=======================================================\r
+ * ONAP : DCAE\r
+ * ================================================================================\r
+ * Copyright 2019 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
+\r
+package org.onap.dcaegen2.ves.domain.ves54;\r
+\r
+import java.util.HashMap;\r
+import java.util.Map;\r
+\r
+import org.apache.commons.lang.builder.HashCodeBuilder;\r
+import org.apache.commons.lang.builder.ToStringBuilder;\r
+\r
+import com.fasterxml.jackson.annotation.JsonAnyGetter;\r
+import com.fasterxml.jackson.annotation.JsonAnySetter;\r
+import com.fasterxml.jackson.annotation.JsonCreator;\r
+import com.fasterxml.jackson.annotation.JsonIgnore;\r
+import com.fasterxml.jackson.annotation.JsonInclude;\r
+import com.fasterxml.jackson.annotation.JsonProperty;\r
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;\r
+import com.fasterxml.jackson.annotation.JsonValue;\r
+\r
+\r
+/**\r
+ * performance counter\r
+ * \r
+ */\r
+@JsonInclude(JsonInclude.Include.NON_NULL)\r
+@JsonPropertyOrder({"criticality", "name", "thresholdCrossed", "value"})\r
+public class AdditionalParameter {\r
+    \r
+    /**\r
+     * \r
+     * (Required)\r
+     * \r
+     */\r
+    @JsonProperty("criticality")\r
+    private AdditionalParameter.Criticality criticality;\r
+    /**\r
+     * \r
+     * (Required)\r
+     * \r
+     */\r
+    @JsonProperty("name")\r
+    private String name;\r
+    /**\r
+     * \r
+     * (Required)\r
+     * \r
+     */\r
+    @JsonProperty("thresholdCrossed")\r
+    private String thresholdCrossed;\r
+    /**\r
+     * \r
+     * (Required)\r
+     * \r
+     */\r
+    @JsonProperty("value")\r
+    private String value;\r
+    @JsonIgnore\r
+    private Map<String, Object> additionalProperties = new HashMap<String, Object>();\r
+    \r
+    /**\r
+     * \r
+     * (Required)\r
+     * \r
+     */\r
+    @JsonProperty("criticality")\r
+    public AdditionalParameter.Criticality getCriticality() {\r
+        return criticality;\r
+    }\r
+    \r
+    /**\r
+     * \r
+     * (Required)\r
+     * \r
+     */\r
+    @JsonProperty("criticality")\r
+    public void setCriticality(AdditionalParameter.Criticality criticality) {\r
+        this.criticality = criticality;\r
+    }\r
+    \r
+    /**\r
+     * \r
+     * (Required)\r
+     * \r
+     */\r
+    @JsonProperty("name")\r
+    public String getName() {\r
+        return name;\r
+    }\r
+    \r
+    /**\r
+     * \r
+     * (Required)\r
+     * \r
+     */\r
+    @JsonProperty("name")\r
+    public void setName(String name) {\r
+        this.name = name;\r
+    }\r
+    \r
+    /**\r
+     * \r
+     * (Required)\r
+     * \r
+     */\r
+    @JsonProperty("thresholdCrossed")\r
+    public String getThresholdCrossed() {\r
+        return thresholdCrossed;\r
+    }\r
+    \r
+    /**\r
+     * \r
+     * (Required)\r
+     * \r
+     */\r
+    @JsonProperty("thresholdCrossed")\r
+    public void setThresholdCrossed(String thresholdCrossed) {\r
+        this.thresholdCrossed = thresholdCrossed;\r
+    }\r
+    \r
+    /**\r
+     * \r
+     * (Required)\r
+     * \r
+     */\r
+    @JsonProperty("value")\r
+    public String getValue() {\r
+        return value;\r
+    }\r
+    \r
+    /**\r
+     * \r
+     * (Required)\r
+     * \r
+     */\r
+    @JsonProperty("value")\r
+    public void setValue(String value) {\r
+        this.value = value;\r
+    }\r
+    \r
+    @Override\r
+    public String toString() {\r
+        return ToStringBuilder.reflectionToString(this);\r
+    }\r
+    \r
+    @JsonAnyGetter\r
+    public Map<String, Object> getAdditionalProperties() {\r
+        return this.additionalProperties;\r
+    }\r
+    \r
+    @JsonAnySetter\r
+    public void setAdditionalProperty(String name, Object value) {\r
+        this.additionalProperties.put(name, value);\r
+    }\r
+    \r
+    @Override\r
+    public int hashCode() {\r
+        return new HashCodeBuilder().append(criticality).append(name).append(thresholdCrossed)\r
+                .append(value).append(additionalProperties).toHashCode();\r
+    }\r
+    \r
+    \r
+    \r
+    public enum Criticality {\r
+        \r
+        CRIT("CRIT"), MAJ("MAJ");\r
+        private final String value;\r
+        private final static Map<String, AdditionalParameter.Criticality> CONSTANTS =\r
+                new HashMap<String, AdditionalParameter.Criticality>();\r
+        \r
+        static {\r
+            for (AdditionalParameter.Criticality c : values()) {\r
+                CONSTANTS.put(c.value, c);\r
+            }\r
+        }\r
+        \r
+        private Criticality(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 AdditionalParameter.Criticality fromValue(String value) {\r
+            AdditionalParameter.Criticality 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