2 * ============LICENSE_START=======================================================
\r
4 * ================================================================================
\r
5 * Copyright 2018 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
20 package org.onap.dcaegen2.ves.domain.ves7_0;
\r
22 import java.util.HashMap;
\r
23 import java.util.Map;
\r
24 import com.fasterxml.jackson.annotation.JsonAnyGetter;
\r
25 import com.fasterxml.jackson.annotation.JsonAnySetter;
\r
26 import com.fasterxml.jackson.annotation.JsonIgnore;
\r
27 import com.fasterxml.jackson.annotation.JsonInclude;
\r
28 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
\r
29 import org.apache.commons.lang.builder.EqualsBuilder;
\r
30 import org.apache.commons.lang.builder.HashCodeBuilder;
\r
31 import org.apache.commons.lang.builder.ToStringBuilder;
\r
35 * enrichment fields for internal VES Event Listener service use only, not supplied by event sources
\r
38 @JsonInclude(JsonInclude.Include.NON_NULL)
\r
39 @JsonPropertyOrder({
\r
42 public class InternalHeaderFields {
\r
45 private Map<String, Object> additionalProperties = new HashMap<String, Object>();
\r
48 public String toString() {
\r
49 return ToStringBuilder.reflectionToString(this);
\r
53 public Map<String, Object> getAdditionalProperties() {
\r
54 return this.additionalProperties;
\r
58 public void setAdditionalProperty(String name, Object value) {
\r
59 this.additionalProperties.put(name, value);
\r
63 public int hashCode() {
\r
64 return new HashCodeBuilder().append(additionalProperties).toHashCode();
\r
68 public boolean equals(Object other) {
\r
69 if (other == this) {
\r
72 if ((other instanceof InternalHeaderFields) == false) {
\r
75 InternalHeaderFields rhs = ((InternalHeaderFields) other);
\r
76 return new EqualsBuilder().append(additionalProperties, rhs.additionalProperties).isEquals();
\r