8c80e35b0938d02d1f553a2fe9deb2de3dced1de
[dcaegen2/services/mapper.git] /
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) global aggregate temperature margin\r
33  * \r
34  */\r
35 @JsonInclude(JsonInclude.Include.NON_NULL)\r
36 @JsonPropertyOrder({\r
37     "ipmiGlobalAggregateTemperatureMarginIdentifier",\r
38     "globalAggregateTemperatureMargin"\r
39 })\r
40 public class IpmiGlobalAggregateTemperatureMarginArray {\r
41 \r
42     /**\r
43      * identifier for the ipmi global aggregate temperature margin metrics\r
44      * (Required)\r
45      * \r
46      */\r
47     @JsonProperty("ipmiGlobalAggregateTemperatureMarginIdentifier")\r
48     @JsonPropertyDescription("identifier for the ipmi global aggregate temperature margin metrics")\r
49     private String ipmiGlobalAggregateTemperatureMarginIdentifier;\r
50     /**\r
51      * the difference between the current global aggregate temperature, in celsius, and the global aggregate throttling thermal trip point\r
52      * (Required)\r
53      * \r
54      */\r
55     @JsonProperty("globalAggregateTemperatureMargin")\r
56     @JsonPropertyDescription("the difference between the current global aggregate temperature, in celsius, and the global aggregate throttling thermal trip point")\r
57     private Double globalAggregateTemperatureMargin;\r
58 \r
59     /**\r
60      * identifier for the ipmi global aggregate temperature margin metrics\r
61      * (Required)\r
62      * \r
63      */\r
64     @JsonProperty("ipmiGlobalAggregateTemperatureMarginIdentifier")\r
65     public String getIpmiGlobalAggregateTemperatureMarginIdentifier() {\r
66         return ipmiGlobalAggregateTemperatureMarginIdentifier;\r
67     }\r
68 \r
69     /**\r
70      * identifier for the ipmi global aggregate temperature margin metrics\r
71      * (Required)\r
72      * \r
73      */\r
74     @JsonProperty("ipmiGlobalAggregateTemperatureMarginIdentifier")\r
75     public void setIpmiGlobalAggregateTemperatureMarginIdentifier(String ipmiGlobalAggregateTemperatureMarginIdentifier) {\r
76         this.ipmiGlobalAggregateTemperatureMarginIdentifier = ipmiGlobalAggregateTemperatureMarginIdentifier;\r
77     }\r
78 \r
79     /**\r
80      * the difference between the current global aggregate temperature, in celsius, and the global aggregate throttling thermal trip point\r
81      * (Required)\r
82      * \r
83      */\r
84     @JsonProperty("globalAggregateTemperatureMargin")\r
85     public Double getGlobalAggregateTemperatureMargin() {\r
86         return globalAggregateTemperatureMargin;\r
87     }\r
88 \r
89     /**\r
90      * the difference between the current global aggregate temperature, in celsius, and the global aggregate throttling thermal trip point\r
91      * (Required)\r
92      * \r
93      */\r
94     @JsonProperty("globalAggregateTemperatureMargin")\r
95     public void setGlobalAggregateTemperatureMargin(Double globalAggregateTemperatureMargin) {\r
96         this.globalAggregateTemperatureMargin = globalAggregateTemperatureMargin;\r
97     }\r
98 \r
99     @Override\r
100     public String toString() {\r
101         return ToStringBuilder.reflectionToString(this);\r
102     }\r
103 \r
104     @Override\r
105     public int hashCode() {\r
106         return new HashCodeBuilder().append(ipmiGlobalAggregateTemperatureMarginIdentifier).append(globalAggregateTemperatureMargin).toHashCode();\r
107     }\r
108 \r
109     @Override\r
110     public boolean equals(Object other) {\r
111         if (other == this) {\r
112             return true;\r
113         }\r
114         if ((other instanceof IpmiGlobalAggregateTemperatureMarginArray) == false) {\r
115             return false;\r
116         }\r
117         IpmiGlobalAggregateTemperatureMarginArray rhs = ((IpmiGlobalAggregateTemperatureMarginArray) other);\r
118         return new EqualsBuilder().append(ipmiGlobalAggregateTemperatureMarginIdentifier, rhs.ipmiGlobalAggregateTemperatureMarginIdentifier).append(globalAggregateTemperatureMargin, rhs.globalAggregateTemperatureMargin).isEquals();\r
119     }\r
120 \r
121 }\r