Package org.cdk8s.plus23.k8s
Class KubeHorizontalPodAutoscalerV2Beta2Props.Builder
- java.lang.Object
-
- org.cdk8s.plus23.k8s.KubeHorizontalPodAutoscalerV2Beta2Props.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubeHorizontalPodAutoscalerV2Beta2Props>
- Enclosing interface:
- KubeHorizontalPodAutoscalerV2Beta2Props
@Stability(Stable) public static final class KubeHorizontalPodAutoscalerV2Beta2Props.Builder extends Object implements software.amazon.jsii.Builder<KubeHorizontalPodAutoscalerV2Beta2Props>
A builder forKubeHorizontalPodAutoscalerV2Beta2Props
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KubeHorizontalPodAutoscalerV2Beta2Props
build()
Builds the configured instance.KubeHorizontalPodAutoscalerV2Beta2Props.Builder
metadata(ObjectMeta metadata)
Sets the value ofKubeHorizontalPodAutoscalerV2Beta2Props.getMetadata()
KubeHorizontalPodAutoscalerV2Beta2Props.Builder
spec(HorizontalPodAutoscalerSpecV2Beta2 spec)
Sets the value ofKubeHorizontalPodAutoscalerV2Beta2Props.getSpec()
-
-
-
Method Detail
-
metadata
@Stability(Stable) public KubeHorizontalPodAutoscalerV2Beta2Props.Builder metadata(ObjectMeta metadata)
Sets the value ofKubeHorizontalPodAutoscalerV2Beta2Props.getMetadata()
- Parameters:
metadata
- metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata- Returns:
this
-
spec
@Stability(Stable) public KubeHorizontalPodAutoscalerV2Beta2Props.Builder spec(HorizontalPodAutoscalerSpecV2Beta2 spec)
Sets the value ofKubeHorizontalPodAutoscalerV2Beta2Props.getSpec()
- Parameters:
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.- Returns:
this
-
build
@Stability(Stable) public KubeHorizontalPodAutoscalerV2Beta2Props build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<KubeHorizontalPodAutoscalerV2Beta2Props>
- Returns:
- a new instance of
KubeHorizontalPodAutoscalerV2Beta2Props
- Throws:
NullPointerException
- if any required attribute was not provided
-
-