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