12
12
import com .fasterxml .jackson .annotation .JsonInclude ;
13
13
import com .fasterxml .jackson .annotation .JsonProperty ;
14
14
import com .fasterxml .jackson .annotation .JsonPropertyOrder ;
15
+ import java .util .ArrayList ;
15
16
import java .util .HashMap ;
17
+ import java .util .List ;
16
18
import java .util .Map ;
17
19
import java .util .Objects ;
18
20
21
23
InterfaceAttributes .JSON_PROPERTY_ALIAS ,
22
24
InterfaceAttributes .JSON_PROPERTY_DESCRIPTION ,
23
25
InterfaceAttributes .JSON_PROPERTY_INDEX ,
26
+ InterfaceAttributes .JSON_PROPERTY_IP_ADDRESSES ,
24
27
InterfaceAttributes .JSON_PROPERTY_MAC_ADDRESS ,
25
28
InterfaceAttributes .JSON_PROPERTY_NAME ,
26
29
InterfaceAttributes .JSON_PROPERTY_STATUS
@@ -38,6 +41,9 @@ public class InterfaceAttributes {
38
41
public static final String JSON_PROPERTY_INDEX = "index" ;
39
42
private Long index ;
40
43
44
+ public static final String JSON_PROPERTY_IP_ADDRESSES = "ip_addresses" ;
45
+ private List <String > ipAddresses = null ;
46
+
41
47
public static final String JSON_PROPERTY_MAC_ADDRESS = "mac_address" ;
42
48
private String macAddress ;
43
49
@@ -110,6 +116,35 @@ public void setIndex(Long index) {
110
116
this .index = index ;
111
117
}
112
118
119
+ public InterfaceAttributes ipAddresses (List <String > ipAddresses ) {
120
+ this .ipAddresses = ipAddresses ;
121
+ return this ;
122
+ }
123
+
124
+ public InterfaceAttributes addIpAddressesItem (String ipAddressesItem ) {
125
+ if (this .ipAddresses == null ) {
126
+ this .ipAddresses = new ArrayList <>();
127
+ }
128
+ this .ipAddresses .add (ipAddressesItem );
129
+ return this ;
130
+ }
131
+
132
+ /**
133
+ * The interface IP addresses
134
+ *
135
+ * @return ipAddresses
136
+ */
137
+ @ jakarta .annotation .Nullable
138
+ @ JsonProperty (JSON_PROPERTY_IP_ADDRESSES )
139
+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
140
+ public List <String > getIpAddresses () {
141
+ return ipAddresses ;
142
+ }
143
+
144
+ public void setIpAddresses (List <String > ipAddresses ) {
145
+ this .ipAddresses = ipAddresses ;
146
+ }
147
+
113
148
public InterfaceAttributes macAddress (String macAddress ) {
114
149
this .macAddress = macAddress ;
115
150
return this ;
@@ -236,6 +271,7 @@ public boolean equals(Object o) {
236
271
return Objects .equals (this .alias , interfaceAttributes .alias )
237
272
&& Objects .equals (this .description , interfaceAttributes .description )
238
273
&& Objects .equals (this .index , interfaceAttributes .index )
274
+ && Objects .equals (this .ipAddresses , interfaceAttributes .ipAddresses )
239
275
&& Objects .equals (this .macAddress , interfaceAttributes .macAddress )
240
276
&& Objects .equals (this .name , interfaceAttributes .name )
241
277
&& Objects .equals (this .status , interfaceAttributes .status )
@@ -244,7 +280,8 @@ public boolean equals(Object o) {
244
280
245
281
@ Override
246
282
public int hashCode () {
247
- return Objects .hash (alias , description , index , macAddress , name , status , additionalProperties );
283
+ return Objects .hash (
284
+ alias , description , index , ipAddresses , macAddress , name , status , additionalProperties );
248
285
}
249
286
250
287
@ Override
@@ -254,6 +291,7 @@ public String toString() {
254
291
sb .append (" alias: " ).append (toIndentedString (alias )).append ("\n " );
255
292
sb .append (" description: " ).append (toIndentedString (description )).append ("\n " );
256
293
sb .append (" index: " ).append (toIndentedString (index )).append ("\n " );
294
+ sb .append (" ipAddresses: " ).append (toIndentedString (ipAddresses )).append ("\n " );
257
295
sb .append (" macAddress: " ).append (toIndentedString (macAddress )).append ("\n " );
258
296
sb .append (" name: " ).append (toIndentedString (name )).append ("\n " );
259
297
sb .append (" status: " ).append (toIndentedString (status )).append ("\n " );
0 commit comments