Package org.cdk8s.plus25.k8s
Class KubeNodeProps.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.KubeNodeProps.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubeNodeProps>
- Enclosing interface:
- KubeNodeProps
@Stability(Stable) public static final class KubeNodeProps.Builder extends Object implements software.amazon.jsii.Builder<KubeNodeProps>
A builder forKubeNodeProps
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KubeNodePropsbuild()Builds the configured instance.KubeNodeProps.Buildermetadata(ObjectMeta metadata)Sets the value ofKubeNodeProps.getMetadata()KubeNodeProps.Builderspec(NodeSpec spec)Sets the value ofKubeNodeProps.getSpec()
-
-
-
Method Detail
-
metadata
@Stability(Stable) public KubeNodeProps.Builder metadata(ObjectMeta metadata)
Sets the value ofKubeNodeProps.getMetadata()- Parameters:
metadata- Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata- Returns:
this
-
spec
@Stability(Stable) public KubeNodeProps.Builder spec(NodeSpec spec)
Sets the value ofKubeNodeProps.getSpec()- Parameters:
spec- Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status- Returns:
this
-
build
@Stability(Stable) public KubeNodeProps build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<KubeNodeProps>- Returns:
- a new instance of
KubeNodeProps - Throws:
NullPointerException- if any required attribute was not provided
-
-