Class KubeConfigMap.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.KubeConfigMap.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubeConfigMap>
- Enclosing class:
- KubeConfigMap
@Stability(Stable) public static final class KubeConfigMap.Builder extends Object implements software.amazon.jsii.Builder<KubeConfigMap>
A fluent builder forKubeConfigMap
.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description KubeConfigMap.Builder
binaryData(Map<String,String> binaryData)
BinaryData contains the binary data.KubeConfigMap
build()
static KubeConfigMap.Builder
create(software.constructs.Construct scope, String id)
KubeConfigMap.Builder
data(Map<String,String> data)
Data contains the configuration data.KubeConfigMap.Builder
immutable(Boolean immutable)
Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated (only object metadata can be modified).KubeConfigMap.Builder
metadata(ObjectMeta metadata)
Standard object's metadata.
-
-
-
Method Detail
-
create
@Stability(Stable) public static KubeConfigMap.Builder create(software.constructs.Construct scope, String id)
- Parameters:
scope
- the scope in which to define this object. This parameter is required.id
- a scope-local name for the object. This parameter is required.- Returns:
- a new instance of
KubeConfigMap.Builder
.
-
binaryData
@Stability(Stable) public KubeConfigMap.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. Using this field will require 1.10+ apiserver and kubelet.
- Parameters:
binaryData
- BinaryData contains the binary data. This parameter is required.- Returns:
this
-
data
@Stability(Stable) public KubeConfigMap.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.
- Parameters:
data
- Data contains the configuration data. This parameter is required.- Returns:
this
-
immutable
@Stability(Stable) public KubeConfigMap.Builder immutable(Boolean immutable)
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. Defaulted to nil.
- Parameters:
immutable
- 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
-
metadata
@Stability(Stable) public KubeConfigMap.Builder metadata(ObjectMeta metadata)
Standard object's metadata.More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
- Parameters:
metadata
- Standard object's metadata. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public KubeConfigMap build()
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<KubeConfigMap>
-
-