Package org.cdk8s.plus24.k8s
Class KubeReplicaSet.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.KubeReplicaSet.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubeReplicaSet>
- Enclosing class:
- KubeReplicaSet
@Stability(Stable) public static final class KubeReplicaSet.Builder extends Object implements software.amazon.jsii.Builder<KubeReplicaSet>
A fluent builder forKubeReplicaSet
.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description KubeReplicaSet
build()
static KubeReplicaSet.Builder
create(software.constructs.Construct scope, String id)
KubeReplicaSet.Builder
metadata(ObjectMeta metadata)
If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages.KubeReplicaSet.Builder
spec(ReplicaSetSpec spec)
Spec defines the specification of the desired behavior of the ReplicaSet.
-
-
-
Method Detail
-
create
@Stability(Stable) public static KubeReplicaSet.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
KubeReplicaSet.Builder
.
-
metadata
@Stability(Stable) public KubeReplicaSet.Builder metadata(ObjectMeta metadata)
If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages.Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
- Parameters:
metadata
- If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. This parameter is required.- Returns:
this
-
spec
@Stability(Stable) public KubeReplicaSet.Builder spec(ReplicaSetSpec spec)
Spec defines the specification of the desired behavior of the ReplicaSet.More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
- Parameters:
spec
- Spec defines the specification of the desired behavior of the ReplicaSet. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public KubeReplicaSet build()
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<KubeReplicaSet>
- Returns:
- a newly built instance of
KubeReplicaSet
.
-
-