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

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1Secret extends Object
Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes.
  • Field Details

  • Constructor Details

    • V1Secret

      public V1Secret()
  • Method Details

    • getApiVersion

      public String getApiVersion()
      APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
      Returns:
      the apiVersion property value
    • setApiVersion

      public void setApiVersion(String apiVersion)
      Set the apiVersion property value
      Parameters:
      apiVersion - property value to set
    • apiVersion

      public V1Secret apiVersion(String apiVersion)
      Set apiVersion in a chainable fashion.
      Returns:
      The same instance of V1Secret for chaining.
    • getData

      public Map<String,@jakarta.validation.constraints.Pattern(regexp="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"),@jakarta.validation.constraints.NotNull byte[]> getData()
      Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4
      Returns:
      the data property value
    • setData

      public void setData(Map<String,@jakarta.validation.constraints.Pattern(regexp="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"),@jakarta.validation.constraints.NotNull byte[]> data)
      Set the data property value
      Parameters:
      data - property value to set
    • data

      public V1Secret data(Map<String,@jakarta.validation.constraints.Pattern(regexp="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"),@jakarta.validation.constraints.NotNull byte[]> data)
      Set data in a chainable fashion.
      Returns:
      The same instance of V1Secret for chaining.
    • putdataItem

      public V1Secret putdataItem(String key, byte[] dataItem)
      Set the value for the key for the data map property in a chainable fashion.
      Returns:
      The same instance of V1Secret for chaining.
    • getImmutable

      public Boolean getImmutable()
      Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil.
      Returns:
      the immutable property value
    • setImmutable

      public void setImmutable(Boolean immutable)
      Set the immutable property value
      Parameters:
      immutable - property value to set
    • immutable

      public V1Secret immutable(Boolean immutable)
      Set immutable in a chainable fashion.
      Returns:
      The same instance of V1Secret for chaining.
    • getKind

      public String getKind()
      Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
      Returns:
      the kind property value
    • setKind

      public void setKind(String kind)
      Set the kind property value
      Parameters:
      kind - property value to set
    • kind

      public V1Secret kind(String kind)
      Set kind in a chainable fashion.
      Returns:
      The same instance of V1Secret for chaining.
    • getMetadata

      public V1ObjectMeta getMetadata()
      Returns:
      the metadata property value
    • setMetadata

      public void setMetadata(V1ObjectMeta metadata)
      Set the metadata property value
      Parameters:
      metadata - property value to set
    • metadata

      public V1Secret metadata(V1ObjectMeta metadata)
      Set metadata in a chainable fashion.
      Returns:
      The same instance of V1Secret for chaining.
    • getStringData

      public Map<String,@NotNull String> getStringData()
      stringData allows specifying non-binary secret data in string form. It is provided as a write-only input field for convenience. All keys and values are merged into the data field on write, overwriting any existing values. The stringData field is never output when reading from the API.
      Returns:
      the stringData property value
    • setStringData

      public void setStringData(Map<String,@NotNull String> stringData)
      Set the stringData property value
      Parameters:
      stringData - property value to set
    • stringData

      public V1Secret stringData(Map<String,@NotNull String> stringData)
      Set stringData in a chainable fashion.
      Returns:
      The same instance of V1Secret for chaining.
    • putstringDataItem

      public V1Secret putstringDataItem(String key, String stringDataItem)
      Set the value for the key for the stringData map property in a chainable fashion.
      Returns:
      The same instance of V1Secret for chaining.
    • getType

      public String getType()
      Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types
      Returns:
      the type property value
    • setType

      public void setType(String type)
      Set the type property value
      Parameters:
      type - property value to set
    • type

      public V1Secret type(String type)
      Set type in a chainable fashion.
      Returns:
      The same instance of V1Secret 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