Upgraded to Support VES 7.0
[dcaegen2/services/mapper.git] / UniversalVesAdapter / src / main / java / org / onap / dcaegen2 / ves / domain / ves7_0 / IpmiBaseboardVoltageRegulatorArray.java
1 /*\r
2 * ============LICENSE_START=======================================================\r
3 * ONAP : DCAE\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
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 package org.onap.dcaegen2.ves.domain.ves7_0;\r
21 \r
22 import com.fasterxml.jackson.annotation.JsonInclude;\r
23 import com.fasterxml.jackson.annotation.JsonProperty;\r
24 import com.fasterxml.jackson.annotation.JsonPropertyDescription;\r
25 import com.fasterxml.jackson.annotation.JsonPropertyOrder;\r
26 import org.apache.commons.lang.builder.EqualsBuilder;\r
27 import org.apache.commons.lang.builder.HashCodeBuilder;\r
28 import org.apache.commons.lang.builder.ToStringBuilder;\r
29 \r
30 \r
31 /**\r
32  * intelligent platform management interface (ipmi) baseboard voltage regulator metrics\r
33  * \r
34  */\r
35 @JsonInclude(JsonInclude.Include.NON_NULL)\r
36 @JsonPropertyOrder({\r
37     "baseboardVoltageRegulatorIdentifier",\r
38     "voltageRegulatorTemperature"\r
39 })\r
40 public class IpmiBaseboardVoltageRegulatorArray {\r
41 \r
42     /**\r
43      * identifier for the baseboard voltage regulator\r
44      * (Required)\r
45      * \r
46      */\r
47     @JsonProperty("baseboardVoltageRegulatorIdentifier")\r
48     @JsonPropertyDescription("identifier for the baseboard voltage regulator")\r
49     private String baseboardVoltageRegulatorIdentifier;\r
50     /**\r
51      * voltage regulator temperature in celsius\r
52      * \r
53      */\r
54     @JsonProperty("voltageRegulatorTemperature")\r
55     @JsonPropertyDescription("voltage regulator temperature in celsius")\r
56     private Double voltageRegulatorTemperature;\r
57 \r
58     /**\r
59      * identifier for the baseboard voltage regulator\r
60      * (Required)\r
61      * \r
62      */\r
63     @JsonProperty("baseboardVoltageRegulatorIdentifier")\r
64     public String getBaseboardVoltageRegulatorIdentifier() {\r
65         return baseboardVoltageRegulatorIdentifier;\r
66     }\r
67 \r
68     /**\r
69      * identifier for the baseboard voltage regulator\r
70      * (Required)\r
71      * \r
72      */\r
73     @JsonProperty("baseboardVoltageRegulatorIdentifier")\r
74     public void setBaseboardVoltageRegulatorIdentifier(String baseboardVoltageRegulatorIdentifier) {\r
75         this.baseboardVoltageRegulatorIdentifier = baseboardVoltageRegulatorIdentifier;\r
76     }\r
77 \r
78     /**\r
79      * voltage regulator temperature in celsius\r
80      * \r
81      */\r
82     @JsonProperty("voltageRegulatorTemperature")\r
83     public Double getVoltageRegulatorTemperature() {\r
84         return voltageRegulatorTemperature;\r
85     }\r
86 \r
87     /**\r
88      * voltage regulator temperature in celsius\r
89      * \r
90      */\r
91     @JsonProperty("voltageRegulatorTemperature")\r
92     public void setVoltageRegulatorTemperature(Double voltageRegulatorTemperature) {\r
93         this.voltageRegulatorTemperature = voltageRegulatorTemperature;\r
94     }\r
95 \r
96     @Override\r
97     public String toString() {\r
98         return ToStringBuilder.reflectionToString(this);\r
99     }\r
100 \r
101     @Override\r
102     public int hashCode() {\r
103         return new HashCodeBuilder().append(baseboardVoltageRegulatorIdentifier).append(voltageRegulatorTemperature).toHashCode();\r
104     }\r
105 \r
106     @Override\r
107     public boolean equals(Object other) {\r
108         if (other == this) {\r
109             return true;\r
110         }\r
111         if ((other instanceof IpmiBaseboardVoltageRegulatorArray) == false) {\r
112             return false;\r
113         }\r
114         IpmiBaseboardVoltageRegulatorArray rhs = ((IpmiBaseboardVoltageRegulatorArray) other);\r
115         return new EqualsBuilder().append(baseboardVoltageRegulatorIdentifier, rhs.baseboardVoltageRegulatorIdentifier).append(voltageRegulatorTemperature, rhs.voltageRegulatorTemperature).isEquals();\r
116     }\r
117 \r
118 }\r