Class ConfigMapProps.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • binaryData

        @Stability(Stable)
        public ConfigMapProps.Builder binaryData​(Map<String,​String> binaryData)
        Parameters:
        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().

        Returns:
        this
      • data

        @Stability(Stable)
        public ConfigMapProps.Builder data​(Map<String,​String> data)
        Sets the value of ConfigMapProps.getData()
        Parameters:
        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().

        Returns:
        this
      • immutable

        @Stability(Stable)
        public ConfigMapProps.Builder immutable​(Boolean immutable)
        Parameters:
        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.
        Returns:
        this
      • metadata

        @Stability(Stable)
        public ConfigMapProps.Builder metadata​(org.cdk8s.ApiObjectMetadata metadata)
        Sets the value of ResourceProps.getMetadata()
        Parameters:
        metadata - Metadata that all persisted resources must have, which includes all objects users must create.
        Returns:
        this