Package org.cdk8s.plus23.k8s
Class ConfigMapNodeConfigSource.Builder
- java.lang.Object
-
- org.cdk8s.plus23.k8s.ConfigMapNodeConfigSource.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ConfigMapNodeConfigSource>
- Enclosing interface:
- ConfigMapNodeConfigSource
@Stability(Stable) public static final class ConfigMapNodeConfigSource.Builder extends Object implements software.amazon.jsii.Builder<ConfigMapNodeConfigSource>
A builder forConfigMapNodeConfigSource
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigMapNodeConfigSource
build()
Builds the configured instance.ConfigMapNodeConfigSource.Builder
kubeletConfigKey(String kubeletConfigKey)
Sets the value ofConfigMapNodeConfigSource.getKubeletConfigKey()
ConfigMapNodeConfigSource.Builder
name(String name)
Sets the value ofConfigMapNodeConfigSource.getName()
ConfigMapNodeConfigSource.Builder
namespace(String namespace)
Sets the value ofConfigMapNodeConfigSource.getNamespace()
ConfigMapNodeConfigSource.Builder
resourceVersion(String resourceVersion)
Sets the value ofConfigMapNodeConfigSource.getResourceVersion()
ConfigMapNodeConfigSource.Builder
uid(String uid)
Sets the value ofConfigMapNodeConfigSource.getUid()
-
-
-
Method Detail
-
kubeletConfigKey
@Stability(Stable) public ConfigMapNodeConfigSource.Builder kubeletConfigKey(String kubeletConfigKey)
Sets the value ofConfigMapNodeConfigSource.getKubeletConfigKey()
- Parameters:
kubeletConfigKey
- KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases. This parameter is required.- Returns:
this
-
name
@Stability(Stable) public ConfigMapNodeConfigSource.Builder name(String name)
Sets the value ofConfigMapNodeConfigSource.getName()
- Parameters:
name
- Name is the metadata.name of the referenced ConfigMap. This field is required in all cases. This parameter is required.- Returns:
this
-
namespace
@Stability(Stable) public ConfigMapNodeConfigSource.Builder namespace(String namespace)
Sets the value ofConfigMapNodeConfigSource.getNamespace()
- Parameters:
namespace
- Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases. This parameter is required.- Returns:
this
-
resourceVersion
@Stability(Stable) public ConfigMapNodeConfigSource.Builder resourceVersion(String resourceVersion)
Sets the value ofConfigMapNodeConfigSource.getResourceVersion()
- Parameters:
resourceVersion
- ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.- Returns:
this
-
uid
@Stability(Stable) public ConfigMapNodeConfigSource.Builder uid(String uid)
Sets the value ofConfigMapNodeConfigSource.getUid()
- Parameters:
uid
- UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.- Returns:
this
-
build
@Stability(Stable) public ConfigMapNodeConfigSource build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ConfigMapNodeConfigSource>
- Returns:
- a new instance of
ConfigMapNodeConfigSource
- Throws:
NullPointerException
- if any required attribute was not provided
-
-