Class V1beta1NetworkDeviceData
java.lang.Object
io.kubernetes.client.openapi.models.V1beta1NetworkDeviceData
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-12T21:15:49.397498Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1beta1NetworkDeviceData
extends Object
NetworkDeviceData provides network-related details for the allocated device. This information may be filled by drivers or other components to configure or identify the device within a network context.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddIpsItem
(String ipsItem) boolean
static V1beta1NetworkDeviceData
Create an instance of V1beta1NetworkDeviceData given an JSON stringHardwareAddress represents the hardware address (e.g.InterfaceName specifies the name of the network interface associated with the allocated device.getIps()
IPs lists the network addresses assigned to the device's network interface.hardwareAddress
(String hardwareAddress) int
hashCode()
interfaceName
(String interfaceName) void
setHardwareAddress
(String hardwareAddress) void
setInterfaceName
(String interfaceName) void
toJson()
Convert an instance of V1beta1NetworkDeviceData to an JSON stringtoString()
static void
validateJsonElement
(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_HARDWARE_ADDRESS
- See Also:
-
SERIALIZED_NAME_INTERFACE_NAME
- See Also:
-
SERIALIZED_NAME_IPS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1beta1NetworkDeviceData
public V1beta1NetworkDeviceData()
-
-
Method Details
-
hardwareAddress
-
getHardwareAddress
HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface. Must not be longer than 128 characters.- Returns:
- hardwareAddress
-
setHardwareAddress
-
interfaceName
-
getInterfaceName
InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod. Must not be longer than 256 characters.- Returns:
- interfaceName
-
setInterfaceName
-
ips
-
addIpsItem
-
getIps
IPs lists the network addresses assigned to the device's network interface. This can include both IPv4 and IPv6 addresses. The IPs are in the CIDR notation, which includes both the address and the associated subnet mask. e.g.: \"192.0.2.5/24\" for IPv4 and \"2001:db8::5/64\" for IPv6.- Returns:
- ips
-
setIps
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement
- JSON Element- Throws:
IOException
- if the JSON Element is invalid with respect to V1beta1NetworkDeviceData
-
fromJson
Create an instance of V1beta1NetworkDeviceData given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1beta1NetworkDeviceData
- Throws:
IOException
- if the JSON string is invalid with respect to V1beta1NetworkDeviceData
-
toJson
Convert an instance of V1beta1NetworkDeviceData to an JSON string- Returns:
- JSON string
-