Package org.cdk8s.plus24.k8s
Class KubeStatefulSet.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.KubeStatefulSet.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubeStatefulSet>
- Enclosing class:
- KubeStatefulSet
@Stability(Stable) public static final class KubeStatefulSet.Builder extends Object implements software.amazon.jsii.Builder<KubeStatefulSet>
A fluent builder forKubeStatefulSet
.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description KubeStatefulSet
build()
static KubeStatefulSet.Builder
create(software.constructs.Construct scope, String id)
KubeStatefulSet.Builder
metadata(ObjectMeta metadata)
Standard object's metadata.KubeStatefulSet.Builder
spec(StatefulSetSpec spec)
Spec defines the desired identities of pods in this set.
-
-
-
Method Detail
-
create
@Stability(Stable) public static KubeStatefulSet.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
KubeStatefulSet.Builder
.
-
metadata
@Stability(Stable) public KubeStatefulSet.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
-
spec
@Stability(Stable) public KubeStatefulSet.Builder spec(StatefulSetSpec spec)
Spec defines the desired identities of pods in this set.- Parameters:
spec
- Spec defines the desired identities of pods in this set. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public KubeStatefulSet build()
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<KubeStatefulSet>
-
-