Package org.cdk8s.plus25.k8s
Class KubeScaleProps.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.KubeScaleProps.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubeScaleProps>
- Enclosing interface:
- KubeScaleProps
@Stability(Stable) public static final class KubeScaleProps.Builder extends Object implements software.amazon.jsii.Builder<KubeScaleProps>
A builder forKubeScaleProps
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KubeScalePropsbuild()Builds the configured instance.KubeScaleProps.Buildermetadata(ObjectMeta metadata)Sets the value ofKubeScaleProps.getMetadata()KubeScaleProps.Builderspec(ScaleSpec spec)Sets the value ofKubeScaleProps.getSpec()
-
-
-
Method Detail
-
metadata
@Stability(Stable) public KubeScaleProps.Builder metadata(ObjectMeta metadata)
Sets the value ofKubeScaleProps.getMetadata()- Parameters:
metadata- Standard object metadata;. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.- Returns:
this
-
spec
@Stability(Stable) public KubeScaleProps.Builder spec(ScaleSpec spec)
Sets the value ofKubeScaleProps.getSpec()- Parameters:
spec- defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.- Returns:
this
-
build
@Stability(Stable) public KubeScaleProps build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<KubeScaleProps>- Returns:
- a new instance of
KubeScaleProps - Throws:
NullPointerException- if any required attribute was not provided
-
-