Class V1beta1Device

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-02-12T21:15:49.397498Z[Etc/UTC]", comments="Generator version: 7.6.0") public class V1beta1Device extends Object
Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.
  • Field Details

  • Constructor Details

    • V1beta1Device

      public V1beta1Device()
  • Method Details

    • basic

      public V1beta1Device basic(V1beta1BasicDevice basic)
    • getBasic

      @Nullable public V1beta1BasicDevice getBasic()
      Get basic
      Returns:
      basic
    • setBasic

      public void setBasic(V1beta1BasicDevice basic)
    • name

      public V1beta1Device name(String name)
    • getName

      @Nonnull public String getName()
      Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.
      Returns:
      name
    • setName

      public void setName(String name)
    • 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 V1beta1Device
    • fromJson

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

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