Package org.cdk8s.plus24.k8s
Class KubeConfigMapProps.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.KubeConfigMapProps.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubeConfigMapProps>
- Enclosing interface:
- KubeConfigMapProps
@Stability(Stable) public static final class KubeConfigMapProps.Builder extends Object implements software.amazon.jsii.Builder<KubeConfigMapProps>
A builder forKubeConfigMapProps
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KubeConfigMapProps.Builder
binaryData(Map<String,String> binaryData)
Sets the value ofKubeConfigMapProps.getBinaryData()
KubeConfigMapProps
build()
Builds the configured instance.KubeConfigMapProps.Builder
data(Map<String,String> data)
Sets the value ofKubeConfigMapProps.getData()
KubeConfigMapProps.Builder
immutable(Boolean immutable)
Sets the value ofKubeConfigMapProps.getImmutable()
KubeConfigMapProps.Builder
metadata(ObjectMeta metadata)
Sets the value ofKubeConfigMapProps.getMetadata()
-
-
-
Method Detail
-
binaryData
@Stability(Stable) public KubeConfigMapProps.Builder binaryData(Map<String,String> binaryData)
Sets the value ofKubeConfigMapProps.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.- Returns:
this
-
data
@Stability(Stable) public KubeConfigMapProps.Builder data(Map<String,String> data)
Sets the value ofKubeConfigMapProps.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.- Returns:
this
-
immutable
@Stability(Stable) public KubeConfigMapProps.Builder immutable(Boolean immutable)
Sets the value ofKubeConfigMapProps.getImmutable()
- Parameters:
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.- Returns:
this
-
metadata
@Stability(Stable) public KubeConfigMapProps.Builder metadata(ObjectMeta metadata)
Sets the value ofKubeConfigMapProps.getMetadata()
- Parameters:
metadata
- Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata- Returns:
this
-
build
@Stability(Stable) public KubeConfigMapProps build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<KubeConfigMapProps>
- Returns:
- a new instance of
KubeConfigMapProps
- Throws:
NullPointerException
- if any required attribute was not provided
-
-