Class V1SecretReference

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-04-23T13:45:09.091597Z[Etc/UTC]") public class V1SecretReference extends Object
SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace
  • Field Details

  • Constructor Details

    • V1SecretReference

      public V1SecretReference()
  • Method Details

    • name

      public V1SecretReference name(String name)
    • getName

      @Nullable public String getName()
      name is unique within a namespace to reference a secret resource.
      Returns:
      name
    • setName

      public void setName(String name)
    • namespace

      public V1SecretReference namespace(String namespace)
    • getNamespace

      @Nullable public String getNamespace()
      namespace defines the space within which the secret name must be unique.
      Returns:
      namespace
    • setNamespace

      public void setNamespace(String namespace)
    • 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 V1SecretReference
    • fromJson

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

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