1212import com .fasterxml .jackson .annotation .JsonInclude ;
1313import com .fasterxml .jackson .annotation .JsonProperty ;
1414import com .fasterxml .jackson .annotation .JsonPropertyOrder ;
15+ import java .util .ArrayList ;
1516import java .util .HashMap ;
17+ import java .util .List ;
1618import java .util .Map ;
1719import java .util .Objects ;
1820
2123 InterfaceAttributes .JSON_PROPERTY_ALIAS ,
2224 InterfaceAttributes .JSON_PROPERTY_DESCRIPTION ,
2325 InterfaceAttributes .JSON_PROPERTY_INDEX ,
26+ InterfaceAttributes .JSON_PROPERTY_IP_ADDRESSES ,
2427 InterfaceAttributes .JSON_PROPERTY_MAC_ADDRESS ,
2528 InterfaceAttributes .JSON_PROPERTY_NAME ,
2629 InterfaceAttributes .JSON_PROPERTY_STATUS
@@ -38,6 +41,9 @@ public class InterfaceAttributes {
3841 public static final String JSON_PROPERTY_INDEX = "index" ;
3942 private Long index ;
4043
44+ public static final String JSON_PROPERTY_IP_ADDRESSES = "ip_addresses" ;
45+ private List <String > ipAddresses = null ;
46+
4147 public static final String JSON_PROPERTY_MAC_ADDRESS = "mac_address" ;
4248 private String macAddress ;
4349
@@ -110,6 +116,35 @@ public void setIndex(Long index) {
110116 this .index = index ;
111117 }
112118
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+
113148 public InterfaceAttributes macAddress (String macAddress ) {
114149 this .macAddress = macAddress ;
115150 return this ;
@@ -236,6 +271,7 @@ public boolean equals(Object o) {
236271 return Objects .equals (this .alias , interfaceAttributes .alias )
237272 && Objects .equals (this .description , interfaceAttributes .description )
238273 && Objects .equals (this .index , interfaceAttributes .index )
274+ && Objects .equals (this .ipAddresses , interfaceAttributes .ipAddresses )
239275 && Objects .equals (this .macAddress , interfaceAttributes .macAddress )
240276 && Objects .equals (this .name , interfaceAttributes .name )
241277 && Objects .equals (this .status , interfaceAttributes .status )
@@ -244,7 +280,8 @@ public boolean equals(Object o) {
244280
245281 @ Override
246282 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 );
248285 }
249286
250287 @ Override
@@ -254,6 +291,7 @@ public String toString() {
254291 sb .append (" alias: " ).append (toIndentedString (alias )).append ("\n " );
255292 sb .append (" description: " ).append (toIndentedString (description )).append ("\n " );
256293 sb .append (" index: " ).append (toIndentedString (index )).append ("\n " );
294+ sb .append (" ipAddresses: " ).append (toIndentedString (ipAddresses )).append ("\n " );
257295 sb .append (" macAddress: " ).append (toIndentedString (macAddress )).append ("\n " );
258296 sb .append (" name: " ).append (toIndentedString (name )).append ("\n " );
259297 sb .append (" status: " ).append (toIndentedString (status )).append ("\n " );
0 commit comments