Package org.cdk8s.plus24
Class ConfigMapProps.Builder
- java.lang.Object
-
- org.cdk8s.plus24.ConfigMapProps.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ConfigMapProps>
- Enclosing interface:
- ConfigMapProps
@Stability(Stable) public static final class ConfigMapProps.Builder extends Object implements software.amazon.jsii.Builder<ConfigMapProps>
A builder forConfigMapProps
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigMapProps.Builder
binaryData(Map<String,String> binaryData)
Sets the value ofConfigMapProps.getBinaryData()
ConfigMapProps
build()
Builds the configured instance.ConfigMapProps.Builder
data(Map<String,String> data)
Sets the value ofConfigMapProps.getData()
ConfigMapProps.Builder
immutable(Boolean immutable)
Sets the value ofConfigMapProps.getImmutable()
ConfigMapProps.Builder
metadata(org.cdk8s.ApiObjectMetadata metadata)
Sets the value ofResourceProps.getMetadata()
-
-
-
Method Detail
-
binaryData
@Stability(Stable) public ConfigMapProps.Builder binaryData(Map<String,String> binaryData)
Sets the value ofConfigMapProps.getBinaryData()
- 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 ofConfigMapProps.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)
Sets the value ofConfigMapProps.getImmutable()
- 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 ofResourceProps.getMetadata()
- Parameters:
metadata
- Metadata that all persisted resources must have, which includes all objects users must create.- Returns:
this
-
build
@Stability(Stable) public ConfigMapProps build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ConfigMapProps>
- Returns:
- a new instance of
ConfigMapProps
- Throws:
NullPointerException
- if any required attribute was not provided
-
-