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.ves70;
\r
23 import com.fasterxml.jackson.annotation.JsonInclude;
\r
24 import com.fasterxml.jackson.annotation.JsonProperty;
\r
25 import com.fasterxml.jackson.annotation.JsonPropertyDescription;
\r
26 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
\r
27 import org.apache.commons.lang.builder.EqualsBuilder;
\r
28 import org.apache.commons.lang.builder.HashCodeBuilder;
\r
29 import org.apache.commons.lang.builder.ToStringBuilder;
\r
33 * intelligent platform management interface (ipmi) hot swap backplane power metrics
\r
36 @JsonInclude(JsonInclude.Include.NON_NULL)
\r
37 @JsonPropertyOrder({
\r
41 public class IpmiHsbpArray {
\r
44 * identifier for the hot swap backplane power unit
\r
48 @JsonProperty("hsbpIdentifier")
\r
49 @JsonPropertyDescription("identifier for the hot swap backplane power unit")
\r
50 private String hsbpIdentifier;
\r
52 * hot swap backplane power temperature in celsius
\r
55 @JsonProperty("hsbpTemperature")
\r
56 @JsonPropertyDescription("hot swap backplane power temperature in celsius")
\r
57 private Double hsbpTemperature;
\r
60 * identifier for the hot swap backplane power unit
\r
64 @JsonProperty("hsbpIdentifier")
\r
65 public String getHsbpIdentifier() {
\r
66 return hsbpIdentifier;
\r
70 * identifier for the hot swap backplane power unit
\r
74 @JsonProperty("hsbpIdentifier")
\r
75 public void setHsbpIdentifier(String hsbpIdentifier) {
\r
76 this.hsbpIdentifier = hsbpIdentifier;
\r
80 * hot swap backplane power temperature in celsius
\r
83 @JsonProperty("hsbpTemperature")
\r
84 public Double getHsbpTemperature() {
\r
85 return hsbpTemperature;
\r
89 * hot swap backplane power temperature in celsius
\r
92 @JsonProperty("hsbpTemperature")
\r
93 public void setHsbpTemperature(Double hsbpTemperature) {
\r
94 this.hsbpTemperature = hsbpTemperature;
\r
98 public String toString() {
\r
99 return ToStringBuilder.reflectionToString(this);
\r
103 public int hashCode() {
\r
104 return new HashCodeBuilder().append(hsbpIdentifier).append(hsbpTemperature).toHashCode();
\r
108 public boolean equals(Object other) {
\r
109 if (other == this) {
\r
112 if ((other instanceof IpmiHsbpArray) == false) {
\r
115 IpmiHsbpArray rhs = ((IpmiHsbpArray) other);
\r
116 return new EqualsBuilder().append(hsbpIdentifier, rhs.hsbpIdentifier).append(hsbpTemperature, rhs.hsbpTemperature).isEquals();
\r