Class V1SecretKeySelector

java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1SecretKeySelector

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1SecretKeySelector extends Object
SecretKeySelector selects a key of a Secret.
  • Field Details

  • Constructor Details

    • V1SecretKeySelector

      public V1SecretKeySelector(String key)
  • Method Details

    • getKey

      public String getKey()
      The key of the secret to select from. Must be a valid secret key.
      Returns:
      the key property value
    • setKey

      public void setKey(String key)
      Set the key property value
    • key

      public V1SecretKeySelector key(String key)
      Set key in a chainable fashion.
      Returns:
      The same instance of V1SecretKeySelector for chaining.
    • getName

      public String getName()
      Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
      Returns:
      the name property value
    • setName

      public void setName(String name)
      Set the name property value
    • name

      public V1SecretKeySelector name(String name)
      Set name in a chainable fashion.
      Returns:
      The same instance of V1SecretKeySelector for chaining.
    • getOptional

      public Boolean getOptional()
      Specify whether the Secret or its key must be defined
      Returns:
      the optional property value
    • setOptional

      public void setOptional(Boolean optional)
      Set the optional property value
    • optional

      public V1SecretKeySelector optional(Boolean optional)
      Set optional in a chainable fashion.
      Returns:
      The same instance of V1SecretKeySelector for chaining.
    • 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