Package org.cdk8s.plus23.k8s
Class KubeReplicationController.Builder
- java.lang.Object
-
- org.cdk8s.plus23.k8s.KubeReplicationController.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubeReplicationController>
- Enclosing class:
- KubeReplicationController
@Stability(Stable) public static final class KubeReplicationController.Builder extends Object implements software.amazon.jsii.Builder<KubeReplicationController>
A fluent builder forKubeReplicationController
.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description KubeReplicationController
build()
static KubeReplicationController.Builder
create(software.constructs.Construct scope, String id)
KubeReplicationController.Builder
metadata(ObjectMeta metadata)
If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages.KubeReplicationController.Builder
spec(ReplicationControllerSpec spec)
Spec defines the specification of the desired behavior of the replication controller.
-
-
-
Method Detail
-
create
@Stability(Stable) public static KubeReplicationController.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
KubeReplicationController.Builder
.
-
metadata
@Stability(Stable) public KubeReplicationController.Builder metadata(ObjectMeta metadata)
If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller 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 ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. This parameter is required.- Returns:
this
-
spec
@Stability(Stable) public KubeReplicationController.Builder spec(ReplicationControllerSpec spec)
Spec defines the specification of the desired behavior of the replication controller.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 replication controller. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public KubeReplicationController build()
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<KubeReplicationController>
-
-