Class V1beta2DeviceAttribute

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-06-26T22:35:15.319369Z[Etc/UTC]", comments="Generator version: 7.18.0") public class V1beta2DeviceAttribute extends Object
DeviceAttribute must have exactly one field set.
  • Field Details

  • Constructor Details

    • V1beta2DeviceAttribute

      public V1beta2DeviceAttribute()
  • Method Details

    • bool

      public V1beta2DeviceAttribute bool(@Nullable Boolean bool)
    • getBool

      @Nullable public Boolean getBool()
      BoolValue is a true/false value.
      Returns:
      bool
    • setBool

      public void setBool(@Nullable Boolean bool)
    • bools

      public V1beta2DeviceAttribute bools(@Nullable List<Boolean> bools)
    • addBoolsItem

      public V1beta2DeviceAttribute addBoolsItem(Boolean boolsItem)
    • getBools

      @Nullable public List<Boolean> getBools()
      BoolValues is a non-empty list of true/false values.
      Returns:
      bools
    • setBools

      public void setBools(@Nullable List<Boolean> bools)
    • _int

      public V1beta2DeviceAttribute _int(@Nullable Long _int)
    • getInt

      @Nullable public Long getInt()
      IntValue is a number.
      Returns:
      _int
    • setInt

      public void setInt(@Nullable Long _int)
    • ints

      public V1beta2DeviceAttribute ints(@Nullable List<Long> ints)
    • addIntsItem

      public V1beta2DeviceAttribute addIntsItem(Long intsItem)
    • getInts

      @Nullable public List<Long> getInts()
      IntValues is a non-empty list of numbers. This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
      Returns:
      ints
    • setInts

      public void setInts(@Nullable List<Long> ints)
    • string

      public V1beta2DeviceAttribute string(@Nullable String string)
    • getString

      @Nullable public String getString()
      StringValue is a string. Must not be longer than 64 characters.
      Returns:
      string
    • setString

      public void setString(@Nullable String string)
    • strings

      public V1beta2DeviceAttribute strings(@Nullable List<String> strings)
    • addStringsItem

      public V1beta2DeviceAttribute addStringsItem(String stringsItem)
    • getStrings

      @Nullable public List<String> getStrings()
      StringValues is a non-empty list of strings. Each string must not be longer than 64 characters. This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
      Returns:
      strings
    • setStrings

      public void setStrings(@Nullable List<String> strings)
    • version

      public V1beta2DeviceAttribute version(@Nullable String version)
    • getVersion

      @Nullable public String getVersion()
      VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters.
      Returns:
      version
    • setVersion

      public void setVersion(@Nullable String version)
    • versions

      public V1beta2DeviceAttribute versions(@Nullable List<String> versions)
    • addVersionsItem

      public V1beta2DeviceAttribute addVersionsItem(String versionsItem)
    • getVersions

      @Nullable public List<String> getVersions()
      VersionValues is a non-empty list of semantic versions according to semver.org spec 2.0.0. Each version string must not be longer than 64 characters. This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
      Returns:
      versions
    • setVersions

      public void setVersions(@Nullable List<String> versions)
    • 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 V1beta2DeviceAttribute
    • fromJson

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

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