Merge "Increase test coverage for services/mapper"
[dcaegen2/services/mapper.git] / UniversalVesAdapter / src / main / java / org / onap / dcaegen2 / ves / domain / ves70 / IpmiHsbpArray.java
1 /*\r
2 * ============LICENSE_START=======================================================\r
3 * ONAP : DCAE\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
10 *\r
11 *     http://www.apache.org/licenses/LICENSE-2.0\r
12 *\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
19 */\r
20 \r
21 package org.onap.dcaegen2.ves.domain.ves70;\r
22 \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
30 \r
31 \r
32 /**\r
33  * intelligent platform management interface (ipmi) hot swap backplane power metrics\r
34  * \r
35  */\r
36 @JsonInclude(JsonInclude.Include.NON_NULL)\r
37 @JsonPropertyOrder({\r
38     "hsbpIdentifier",\r
39     "hsbpTemperature"\r
40 })\r
41 public class IpmiHsbpArray {\r
42 \r
43     /**\r
44      * identifier for the hot swap backplane power unit\r
45      * (Required)\r
46      * \r
47      */\r
48     @JsonProperty("hsbpIdentifier")\r
49     @JsonPropertyDescription("identifier for the hot swap backplane power unit")\r
50     private String hsbpIdentifier;\r
51     /**\r
52      * hot swap backplane power temperature in celsius\r
53      * \r
54      */\r
55     @JsonProperty("hsbpTemperature")\r
56     @JsonPropertyDescription("hot swap backplane power temperature in celsius")\r
57     private Double hsbpTemperature;\r
58 \r
59     /**\r
60      * identifier for the hot swap backplane power unit\r
61      * (Required)\r
62      * \r
63      */\r
64     @JsonProperty("hsbpIdentifier")\r
65     public String getHsbpIdentifier() {\r
66         return hsbpIdentifier;\r
67     }\r
68 \r
69     /**\r
70      * identifier for the hot swap backplane power unit\r
71      * (Required)\r
72      * \r
73      */\r
74     @JsonProperty("hsbpIdentifier")\r
75     public void setHsbpIdentifier(String hsbpIdentifier) {\r
76         this.hsbpIdentifier = hsbpIdentifier;\r
77     }\r
78 \r
79     /**\r
80      * hot swap backplane power temperature in celsius\r
81      * \r
82      */\r
83     @JsonProperty("hsbpTemperature")\r
84     public Double getHsbpTemperature() {\r
85         return hsbpTemperature;\r
86     }\r
87 \r
88     /**\r
89      * hot swap backplane power temperature in celsius\r
90      * \r
91      */\r
92     @JsonProperty("hsbpTemperature")\r
93     public void setHsbpTemperature(Double hsbpTemperature) {\r
94         this.hsbpTemperature = hsbpTemperature;\r
95     }\r
96 \r
97     @Override\r
98     public String toString() {\r
99         return ToStringBuilder.reflectionToString(this);\r
100     }\r
101 \r
102     @Override\r
103     public int hashCode() {\r
104         return new HashCodeBuilder().append(hsbpIdentifier).append(hsbpTemperature).toHashCode();\r
105     }\r
106 \r
107     @Override\r
108     public boolean equals(Object other) {\r
109         if (other == this) {\r
110             return true;\r
111         }\r
112         if ((other instanceof IpmiHsbpArray) == false) {\r
113             return false;\r
114         }\r
115         IpmiHsbpArray rhs = ((IpmiHsbpArray) other);\r
116         return new EqualsBuilder().append(hsbpIdentifier, rhs.hsbpIdentifier).append(hsbpTemperature, rhs.hsbpTemperature).isEquals();\r
117     }\r
118 \r
119 }\r