Class ConfigMap.Builder

  • All Implemented Interfaces:
    software.amazon.jsii.Builder<ConfigMap>
    Enclosing class:
    ConfigMap

    @Stability(Stable)
    public static final class ConfigMap.Builder
    extends Object
    implements software.amazon.jsii.Builder<ConfigMap>
    A fluent builder for ConfigMap.
    • Method Detail

      • create

        @Stability(Stable)
        public static ConfigMap.Builder create​(software.constructs.Construct scope,
                                               String id)
        Parameters:
        scope - This parameter is required.
        id - This parameter is required.
        Returns:
        a new instance of ConfigMap.Builder.
      • metadata

        @Stability(Stable)
        public ConfigMap.Builder metadata​(org.cdk8s.ApiObjectMetadata metadata)
        Metadata that all persisted resources must have, which includes all objects users must create.

        Parameters:
        metadata - Metadata that all persisted resources must have, which includes all objects users must create. This parameter is required.
        Returns:
        this
      • binaryData

        @Stability(Stable)
        public ConfigMap.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.

        You can also add binary data using configMap.addBinaryData().

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

        @Stability(Stable)
        public ConfigMap.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.

        You can also add data using configMap.addData().

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

        @Stability(Stable)
        public ConfigMap.Builder immutable​(Boolean 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.

        Default: false

        Parameters:
        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
      • build

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