Class V1beta2NetworkDeviceData

java.lang.Object
io.kubernetes.client.openapi.models.V1beta2NetworkDeviceData

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-05-20T20:47:13.890592Z[Etc/UTC]", comments="Generator version: 7.13.0") public class V1beta2NetworkDeviceData 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.
  • Field Details

  • Constructor Details

    • V1beta2NetworkDeviceData

      public V1beta2NetworkDeviceData()
  • Method Details

    • hardwareAddress

      public V1beta2NetworkDeviceData hardwareAddress(@Nullable String hardwareAddress)
    • getHardwareAddress

      @Nullable public String 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

      public void setHardwareAddress(@Nullable String hardwareAddress)
    • interfaceName

      public V1beta2NetworkDeviceData interfaceName(@Nullable String interfaceName)
    • getInterfaceName

      @Nullable public String 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

      public void setInterfaceName(@Nullable String interfaceName)
    • ips

      public V1beta2NetworkDeviceData ips(@Nullable List<String> ips)
    • addIpsItem

      public V1beta2NetworkDeviceData addIpsItem(String ipsItem)
    • getIps

      @Nullable public List<String> 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

      public void setIps(@Nullable List<String> ips)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      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 V1beta2NetworkDeviceData
    • fromJson

      public static V1beta2NetworkDeviceData fromJson(String jsonString) throws IOException
      Create an instance of V1beta2NetworkDeviceData given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of V1beta2NetworkDeviceData
      Throws:
      IOException - if the JSON string is invalid with respect to V1beta2NetworkDeviceData
    • toJson

      public String toJson()
      Convert an instance of V1beta2NetworkDeviceData to an JSON string
      Returns:
      JSON string