Package org.cdk8s.plus25.k8s
Class KubeScale.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.KubeScale.Builder
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description KubeScalebuild()static KubeScale.Buildercreate(software.constructs.Construct scope, String id)KubeScale.Buildermetadata(ObjectMeta metadata)Standard object metadata;KubeScale.Builderspec(ScaleSpec spec)defines the behavior of the scale.
-
-
-
Method Detail
-
create
@Stability(Stable) public static KubeScale.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
KubeScale.Builder.
-
metadata
@Stability(Stable) public KubeScale.Builder metadata(ObjectMeta metadata)
Standard object metadata;More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
- Parameters:
metadata- Standard object metadata;. This parameter is required.- Returns:
this
-
spec
@Stability(Stable) public KubeScale.Builder spec(ScaleSpec spec)
defines the behavior of the scale.More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
- Parameters:
spec- defines the behavior of the scale. This parameter is required.- Returns:
this
-
-