Class V1beta1DeviceAttribute

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-02-12T21:15:49.397498Z[Etc/UTC]", comments="Generator version: 7.6.0") public class V1beta1DeviceAttribute extends Object
DeviceAttribute must have exactly one field set.
  • Field Details

  • Constructor Details

    • V1beta1DeviceAttribute

      public V1beta1DeviceAttribute()
  • Method Details

    • bool

      public V1beta1DeviceAttribute bool(Boolean bool)
    • getBool

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

      public void setBool(Boolean bool)
    • _int

      public V1beta1DeviceAttribute _int(Long _int)
    • getInt

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

      public void setInt(Long _int)
    • string

      public V1beta1DeviceAttribute string(String string)
    • getString

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

      public void setString(String string)
    • version

      public V1beta1DeviceAttribute version(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(String version)
    • 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 V1beta1DeviceAttribute
    • fromJson

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

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