Package org.cdk8s.plus24.k8s
Class ScaleSpec.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.ScaleSpec.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScaleSpec
build()
Builds the configured instance.ScaleSpec.Builder
replicas(Number replicas)
Sets the value ofScaleSpec.getReplicas()
-
-
-
Method Detail
-
replicas
@Stability(Stable) public ScaleSpec.Builder replicas(Number replicas)
Sets the value ofScaleSpec.getReplicas()
- Parameters:
replicas
- desired number of instances for the scaled object.- Returns:
this
-
build
@Stability(Stable) public ScaleSpec build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ScaleSpec>
- Returns:
- a new instance of
ScaleSpec
- Throws:
NullPointerException
- if any required attribute was not provided
-
-