Package org.cdk8s.plus24
Class ConfigMap.Builder
- java.lang.Object
-
- org.cdk8s.plus24.ConfigMap.Builder
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigMap.Builder
binaryData(Map<String,String> binaryData)
BinaryData contains the binary data.ConfigMap
build()
static ConfigMap.Builder
create(software.constructs.Construct scope, String id)
ConfigMap.Builder
data(Map<String,String> data)
Data contains the configuration data.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).ConfigMap.Builder
metadata(org.cdk8s.ApiObjectMetadata metadata)
Metadata that all persisted resources must have, which includes all objects users must create.
-
-
-
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
-
-