Package org.cdk8s.plus24.k8s
Class KubeStatefulSetProps.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.KubeStatefulSetProps.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubeStatefulSetProps>
- Enclosing interface:
- KubeStatefulSetProps
@Stability(Stable) public static final class KubeStatefulSetProps.Builder extends Object implements software.amazon.jsii.Builder<KubeStatefulSetProps>
A builder forKubeStatefulSetProps
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KubeStatefulSetProps
build()
Builds the configured instance.KubeStatefulSetProps.Builder
metadata(ObjectMeta metadata)
Sets the value ofKubeStatefulSetProps.getMetadata()
KubeStatefulSetProps.Builder
spec(StatefulSetSpec spec)
Sets the value ofKubeStatefulSetProps.getSpec()
-
-
-
Method Detail
-
metadata
@Stability(Stable) public KubeStatefulSetProps.Builder metadata(ObjectMeta metadata)
Sets the value ofKubeStatefulSetProps.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 KubeStatefulSetProps.Builder spec(StatefulSetSpec spec)
Sets the value ofKubeStatefulSetProps.getSpec()
- Parameters:
spec
- Spec defines the desired identities of pods in this set.- Returns:
this
-
build
@Stability(Stable) public KubeStatefulSetProps build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<KubeStatefulSetProps>
- Returns:
- a new instance of
KubeStatefulSetProps
- Throws:
NullPointerException
- if any required attribute was not provided
-
-