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