Package org.cdk8s.plus24.k8s
Class ResourceMetricSourceV2Beta1.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.ResourceMetricSourceV2Beta1.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ResourceMetricSourceV2Beta1>
- Enclosing interface:
- ResourceMetricSourceV2Beta1
@Stability(Stable) public static final class ResourceMetricSourceV2Beta1.Builder extends Object implements software.amazon.jsii.Builder<ResourceMetricSourceV2Beta1>
A builder forResourceMetricSourceV2Beta1
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceMetricSourceV2Beta1
build()
Builds the configured instance.ResourceMetricSourceV2Beta1.Builder
name(String name)
Sets the value ofResourceMetricSourceV2Beta1.getName()
ResourceMetricSourceV2Beta1.Builder
targetAverageUtilization(Number targetAverageUtilization)
Sets the value ofResourceMetricSourceV2Beta1.getTargetAverageUtilization()
ResourceMetricSourceV2Beta1.Builder
targetAverageValue(Quantity targetAverageValue)
Sets the value ofResourceMetricSourceV2Beta1.getTargetAverageValue()
-
-
-
Method Detail
-
name
@Stability(Stable) public ResourceMetricSourceV2Beta1.Builder name(String name)
Sets the value ofResourceMetricSourceV2Beta1.getName()
- Parameters:
name
- name is the name of the resource in question. This parameter is required.- Returns:
this
-
targetAverageUtilization
@Stability(Stable) public ResourceMetricSourceV2Beta1.Builder targetAverageUtilization(Number targetAverageUtilization)
Sets the value ofResourceMetricSourceV2Beta1.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 ResourceMetricSourceV2Beta1.Builder targetAverageValue(Quantity targetAverageValue)
Sets the value ofResourceMetricSourceV2Beta1.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 ResourceMetricSourceV2Beta1 build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ResourceMetricSourceV2Beta1>
- Returns:
- a new instance of
ResourceMetricSourceV2Beta1
- Throws:
NullPointerException
- if any required attribute was not provided
-
-