2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright 2018 TechMahindra
6 *=================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
20 package org.onap.dcaegen2.ves.domain;
22 import java.util.HashMap;
23 import java.util.List;
25 import com.fasterxml.jackson.annotation.JsonAnyGetter;
26 import com.fasterxml.jackson.annotation.JsonAnySetter;
27 import com.fasterxml.jackson.annotation.JsonIgnore;
28 import com.fasterxml.jackson.annotation.JsonInclude;
29 import com.fasterxml.jackson.annotation.JsonProperty;
30 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
31 import org.apache.commons.lang.builder.EqualsBuilder;
32 import org.apache.commons.lang.builder.HashCodeBuilder;
33 import org.apache.commons.lang.builder.ToStringBuilder;
35 @JsonInclude(JsonInclude.Include.NON_NULL)
38 "objectInstanceEpochMicrosec",
41 public class ObjectInstance {
43 @JsonProperty("objectInstance")
44 private ObjectInstance_ objectInstance;
45 @JsonProperty("objectInstanceEpochMicrosec")
46 private Double objectInstanceEpochMicrosec;
47 @JsonProperty("objectKeys")
48 private List<ObjectKey> objectKeys = null;
50 private Map<String, Object> additionalProperties = new HashMap<String, Object>();
52 @JsonProperty("objectInstance")
53 public ObjectInstance_ getObjectInstance() {
54 return objectInstance;
57 @JsonProperty("objectInstance")
58 public void setObjectInstance(ObjectInstance_ objectInstance) {
59 this.objectInstance = objectInstance;
62 @JsonProperty("objectInstanceEpochMicrosec")
63 public Double getObjectInstanceEpochMicrosec() {
64 return objectInstanceEpochMicrosec;
67 @JsonProperty("objectInstanceEpochMicrosec")
68 public void setObjectInstanceEpochMicrosec(Double objectInstanceEpochMicrosec) {
69 this.objectInstanceEpochMicrosec = objectInstanceEpochMicrosec;
72 @JsonProperty("objectKeys")
73 public List<ObjectKey> getObjectKeys() {
77 @JsonProperty("objectKeys")
78 public void setObjectKeys(List<ObjectKey> objectKeys) {
79 this.objectKeys = objectKeys;
83 public Map<String, Object> getAdditionalProperties() {
84 return this.additionalProperties;
88 public void setAdditionalProperty(String name, Object value) {
89 this.additionalProperties.put(name, value);
93 public String toString() {
94 return new ToStringBuilder(this).append("objectInstance", objectInstance).append("objectInstanceEpochMicrosec", objectInstanceEpochMicrosec).append("objectKeys", objectKeys).append("additionalProperties", additionalProperties).toString();
98 public int hashCode() {
99 return new HashCodeBuilder().append(objectInstanceEpochMicrosec).append(additionalProperties).append(objectInstance).append(objectKeys).toHashCode();
103 public boolean equals(Object other) {
107 if ((other instanceof ObjectInstance) == false) {
110 ObjectInstance rhs = ((ObjectInstance) other);
111 return new EqualsBuilder().append(objectInstanceEpochMicrosec, rhs.objectInstanceEpochMicrosec).append(additionalProperties, rhs.additionalProperties).append(objectInstance, rhs.objectInstance).append(objectKeys, rhs.objectKeys).isEquals();