Class KubeConfigMap.Builder

    • Method Detail

      • create

        @Stability(Stable)
        public static KubeConfigMap.Builder create​(software.constructs.Construct scope,
                                                   String id)
        Parameters:
        scope - the scope in which to define this object. This parameter is required.
        id - a scope-local name for the object. This parameter is required.
        Returns:
        a new instance of KubeConfigMap.Builder.
      • binaryData

        @Stability(Stable)
        public KubeConfigMap.Builder binaryData​(Map<String,​String> binaryData)
        BinaryData contains the binary data.

        Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet.

        Parameters:
        binaryData - BinaryData contains the binary data. This parameter is required.
        Returns:
        this
      • data

        @Stability(Stable)
        public KubeConfigMap.Builder data​(Map<String,​String> data)
        Data contains the configuration data.

        Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process.

        Parameters:
        data - Data contains the configuration data. This parameter is required.
        Returns:
        this
      • immutable

        @Stability(Stable)
        public KubeConfigMap.Builder immutable​(Boolean immutable)
        Immutable, if set to true, ensures that data stored in the ConfigMap 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.

        Parameters:
        immutable - Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated (only object metadata can be modified). This parameter is required.
        Returns:
        this
      • metadata

        @Stability(Stable)
        public KubeConfigMap.Builder metadata​(ObjectMeta metadata)
        Standard object's metadata.

        More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata

        Parameters:
        metadata - Standard object's metadata. This parameter is required.
        Returns:
        this
      • build

        @Stability(Stable)
        public KubeConfigMap build()
        Specified by:
        build in interface software.amazon.jsii.Builder<KubeConfigMap>