Package org.cdk8s.plus20
Class ConfigMapProps.Builder
- java.lang.Object
-
- org.cdk8s.plus20.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.BuilderbinaryData(Map<String,String> binaryData)Sets the value ofConfigMapProps.getBinaryData()ConfigMapPropsbuild()Builds the configured instance.ConfigMapProps.Builderdata(Map<String,String> data)Sets the value ofConfigMapProps.getData()ConfigMapProps.Buildermetadata(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. Using this field will require 1.10+ apiserver and kubelet.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
-
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:
buildin interfacesoftware.amazon.jsii.Builder<ConfigMapProps>- Returns:
- a new instance of
ConfigMapProps - Throws:
NullPointerException- if any required attribute was not provided
-
-