Package org.cdk8s.plus24.k8s
Class ContainerResourceMetricSourceV2Beta1.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.ContainerResourceMetricSourceV2Beta1.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ContainerResourceMetricSourceV2Beta1>
- Enclosing interface:
- ContainerResourceMetricSourceV2Beta1
@Stability(Stable) public static final class ContainerResourceMetricSourceV2Beta1.Builder extends Object implements software.amazon.jsii.Builder<ContainerResourceMetricSourceV2Beta1>
A builder forContainerResourceMetricSourceV2Beta1
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContainerResourceMetricSourceV2Beta1build()Builds the configured instance.ContainerResourceMetricSourceV2Beta1.Buildercontainer(String container)Sets the value ofContainerResourceMetricSourceV2Beta1.getContainer()ContainerResourceMetricSourceV2Beta1.Buildername(String name)Sets the value ofContainerResourceMetricSourceV2Beta1.getName()ContainerResourceMetricSourceV2Beta1.BuildertargetAverageUtilization(Number targetAverageUtilization)Sets the value ofContainerResourceMetricSourceV2Beta1.getTargetAverageUtilization()ContainerResourceMetricSourceV2Beta1.BuildertargetAverageValue(Quantity targetAverageValue)Sets the value ofContainerResourceMetricSourceV2Beta1.getTargetAverageValue()
-
-
-
Method Detail
-
container
@Stability(Stable) public ContainerResourceMetricSourceV2Beta1.Builder container(String container)
Sets the value ofContainerResourceMetricSourceV2Beta1.getContainer()- Parameters:
container- container is the name of the container in the pods of the scaling target. This parameter is required.- Returns:
this
-
name
@Stability(Stable) public ContainerResourceMetricSourceV2Beta1.Builder name(String name)
Sets the value ofContainerResourceMetricSourceV2Beta1.getName()- Parameters:
name- name is the name of the resource in question. This parameter is required.- Returns:
this
-
targetAverageUtilization
@Stability(Stable) public ContainerResourceMetricSourceV2Beta1.Builder targetAverageUtilization(Number targetAverageUtilization)
Sets the value ofContainerResourceMetricSourceV2Beta1.getTargetAverageUtilization()- Parameters:
targetAverageUtilization- targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.- Returns:
this
-
targetAverageValue
@Stability(Stable) public ContainerResourceMetricSourceV2Beta1.Builder targetAverageValue(Quantity targetAverageValue)
Sets the value ofContainerResourceMetricSourceV2Beta1.getTargetAverageValue()- Parameters:
targetAverageValue- targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type.- Returns:
this
-
build
@Stability(Stable) public ContainerResourceMetricSourceV2Beta1 build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ContainerResourceMetricSourceV2Beta1>- Returns:
- a new instance of
ContainerResourceMetricSourceV2Beta1 - Throws:
NullPointerException- if any required attribute was not provided
-
-