Package org.cdk8s.plus24.k8s
Class KubeHorizontalPodAutoscalerV2.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.KubeHorizontalPodAutoscalerV2.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubeHorizontalPodAutoscalerV2>
- Enclosing class:
- KubeHorizontalPodAutoscalerV2
@Stability(Stable) public static final class KubeHorizontalPodAutoscalerV2.Builder extends Object implements software.amazon.jsii.Builder<KubeHorizontalPodAutoscalerV2>
A fluent builder forKubeHorizontalPodAutoscalerV2
.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description KubeHorizontalPodAutoscalerV2
build()
static KubeHorizontalPodAutoscalerV2.Builder
create(software.constructs.Construct scope, String id)
KubeHorizontalPodAutoscalerV2.Builder
metadata(ObjectMeta metadata)
metadata is the standard object metadata.KubeHorizontalPodAutoscalerV2.Builder
spec(HorizontalPodAutoscalerSpecV2 spec)
spec is the specification for the behaviour of the autoscaler.
-
-
-
Method Detail
-
create
@Stability(Stable) public static KubeHorizontalPodAutoscalerV2.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
KubeHorizontalPodAutoscalerV2.Builder
.
-
metadata
@Stability(Stable) public KubeHorizontalPodAutoscalerV2.Builder metadata(ObjectMeta metadata)
metadata is the standard object metadata.More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
- Parameters:
metadata
- metadata is the standard object metadata. This parameter is required.- Returns:
this
-
spec
@Stability(Stable) public KubeHorizontalPodAutoscalerV2.Builder spec(HorizontalPodAutoscalerSpecV2 spec)
spec is the specification for the behaviour of the autoscaler.More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
- Parameters:
spec
- spec is the specification for the behaviour of the autoscaler. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public KubeHorizontalPodAutoscalerV2 build()
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<KubeHorizontalPodAutoscalerV2>
-
-