Class V1BoundObjectReference

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-04-23T13:45:09.091597Z[Etc/UTC]") public class V1BoundObjectReference extends Object
BoundObjectReference is a reference to an object that a token is bound to.
  • Field Details

  • Constructor Details

    • V1BoundObjectReference

      public V1BoundObjectReference()
  • Method Details

    • apiVersion

      public V1BoundObjectReference apiVersion(String apiVersion)
    • getApiVersion

      @Nullable public String getApiVersion()
      API version of the referent.
      Returns:
      apiVersion
    • setApiVersion

      public void setApiVersion(String apiVersion)
    • kind

      public V1BoundObjectReference kind(String kind)
    • getKind

      @Nullable public String getKind()
      Kind of the referent. Valid kinds are 'Pod' and 'Secret'.
      Returns:
      kind
    • setKind

      public void setKind(String kind)
    • name

      public V1BoundObjectReference name(String name)
    • getName

      @Nullable public String getName()
      Name of the referent.
      Returns:
      name
    • setName

      public void setName(String name)
    • uid

      public V1BoundObjectReference uid(String uid)
    • getUid

      @Nullable public String getUid()
      UID of the referent.
      Returns:
      uid
    • setUid

      public void setUid(String uid)
    • 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
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      Validates the JSON Object and throws an exception if issues found
      Parameters:
      jsonObj - JSON Object
      Throws:
      IOException - if the JSON Object is invalid with respect to V1BoundObjectReference
    • fromJson

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

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