Class Secret.Builder

  • Enclosing class:
    Secret

    public static class Secret.Builder
    extends java.lang.Object
    • Method Detail

      • apiVersion

        public Secret.Builder apiVersion​(java.lang.String apiVersion)
        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:
        this.
      • putInData

        public Secret.Builder putInData​(java.lang.String putInDataKey,
                                        java.lang.String putInDataValue)
      • data

        public Secret.Builder data​(java.util.Map<? extends java.lang.String,​? extends java.lang.String> data)
      • immutable

        public Secret.Builder immutable​(java.lang.Boolean immutable)
        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:
        this.
      • kind

        public Secret.Builder kind​(java.lang.String kind)
        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:
        this.
      • putInStringData

        public Secret.Builder putInStringData​(java.lang.String putInStringDataKey,
                                              java.lang.String putInStringDataValue)
      • stringData

        public Secret.Builder stringData​(java.util.Map<? extends java.lang.String,​? extends java.lang.String> stringData)
      • type

        public Secret.Builder type​(java.lang.String type)
        Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types
        Returns:
        this.
      • build

        public Secret build()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object