2 * ============LICENSE_START=======================================================
\r
4 * ================================================================================
\r
5 * Copyright 2019 TechMahindra
\r
6 * ================================================================================
\r
7 * Licensed under the Apache License, Version 2.0 (the "License");
\r
8 * you may not use this file except in compliance with the License.
\r
9 * You may obtain a copy of the License at
\r
11 * http://www.apache.org/licenses/LICENSE-2.0
\r
13 * Unless required by applicable law or agreed to in writing, software
\r
14 * distributed under the License is distributed on an "AS IS" BASIS,
\r
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
16 * See the License for the specific language governing permissions and
\r
17 * limitations under the License.
\r
18 * ============LICENSE_END=========================================================
\r
21 package org.onap.dcaegen2.ves.domain.ves54;
\r
23 import java.util.ArrayList;
\r
24 import java.util.HashMap;
\r
25 import java.util.List;
\r
26 import java.util.Map;
\r
28 import org.apache.commons.lang.builder.HashCodeBuilder;
\r
29 import org.apache.commons.lang.builder.ToStringBuilder;
\r
31 import com.fasterxml.jackson.annotation.JsonAnyGetter;
\r
32 import com.fasterxml.jackson.annotation.JsonAnySetter;
\r
33 import com.fasterxml.jackson.annotation.JsonIgnore;
\r
34 import com.fasterxml.jackson.annotation.JsonInclude;
\r
35 import com.fasterxml.jackson.annotation.JsonProperty;
\r
36 import com.fasterxml.jackson.annotation.JsonPropertyDescription;
\r
37 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
\r
41 * an array of name value pairs along with a name for the array
\r
44 @JsonInclude(JsonInclude.Include.NON_NULL)
\r
45 @JsonPropertyOrder({"name", "arrayOfFields"})
\r
46 public class AdditionalMeasurement {
\r
53 @JsonProperty("name")
\r
54 private String name;
\r
56 * array of name value pairs (Required)
\r
59 @JsonProperty("arrayOfFields")
\r
60 @JsonPropertyDescription("array of name value pairs")
\r
61 private List<AlarmAdditionalInformation> arrayOfFields =
\r
62 new ArrayList<AlarmAdditionalInformation>();
\r
64 private Map<String, Object> additionalProperties = new HashMap<String, Object>();
\r
71 @JsonProperty("name")
\r
72 public String getName() {
\r
81 @JsonProperty("name")
\r
82 public void setName(String name) {
\r
87 * array of name value pairs (Required)
\r
90 @JsonProperty("arrayOfFields")
\r
91 public List<AlarmAdditionalInformation> getArrayOfFields() {
\r
92 return arrayOfFields;
\r
96 * array of name value pairs (Required)
\r
99 @JsonProperty("arrayOfFields")
\r
100 public void setArrayOfFields(List<AlarmAdditionalInformation> arrayOfFields) {
\r
101 this.arrayOfFields = arrayOfFields;
\r
105 public String toString() {
\r
106 return ToStringBuilder.reflectionToString(this);
\r
110 public Map<String, Object> getAdditionalProperties() {
\r
111 return this.additionalProperties;
\r
115 public void setAdditionalProperty(String name, Object value) {
\r
116 this.additionalProperties.put(name, value);
\r
120 public int hashCode() {
\r
121 return new HashCodeBuilder().append(name).append(arrayOfFields).append(additionalProperties)
\r