Class V1alpha3BasicDevice

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-02-04T19:05:53.712211Z[Etc/UTC]", comments="Generator version: 7.6.0") public class V1alpha3BasicDevice extends Object
BasicDevice defines one device instance.
  • Field Details

  • Constructor Details

    • V1alpha3BasicDevice

      public V1alpha3BasicDevice()
  • Method Details

    • attributes

      public V1alpha3BasicDevice attributes(Map<String,V1alpha3DeviceAttribute> attributes)
    • putAttributesItem

      public V1alpha3BasicDevice putAttributesItem(String key, V1alpha3DeviceAttribute attributesItem)
    • getAttributes

      @Nullable public Map<String,V1alpha3DeviceAttribute> getAttributes()
      Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set. The maximum number of attributes and capacities combined is 32.
      Returns:
      attributes
    • setAttributes

      public void setAttributes(Map<String,V1alpha3DeviceAttribute> attributes)
    • capacity

      public V1alpha3BasicDevice capacity(Map<String,Quantity> capacity)
    • putCapacityItem

      public V1alpha3BasicDevice putCapacityItem(String key, Quantity capacityItem)
    • getCapacity

      @Nullable public Map<String,Quantity> getCapacity()
      Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set. The maximum number of attributes and capacities combined is 32.
      Returns:
      capacity
    • setCapacity

      public void setCapacity(Map<String,Quantity> capacity)
    • 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 V1alpha3BasicDevice
    • fromJson

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

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