Package org.cdk8s.plus25.k8s
Class MetricTargetV2.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.MetricTargetV2.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<MetricTargetV2>
- Enclosing interface:
- MetricTargetV2
@Stability(Stable) public static final class MetricTargetV2.Builder extends Object implements software.amazon.jsii.Builder<MetricTargetV2>
A builder forMetricTargetV2
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MetricTargetV2.BuilderaverageUtilization(Number averageUtilization)Sets the value ofMetricTargetV2.getAverageUtilization()MetricTargetV2.BuilderaverageValue(Quantity averageValue)Sets the value ofMetricTargetV2.getAverageValue()MetricTargetV2build()Builds the configured instance.MetricTargetV2.Buildertype(String type)Sets the value ofMetricTargetV2.getType()MetricTargetV2.Buildervalue(Quantity value)Sets the value ofMetricTargetV2.getValue()
-
-
-
Method Detail
-
type
@Stability(Stable) public MetricTargetV2.Builder type(String type)
Sets the value ofMetricTargetV2.getType()- Parameters:
type- type represents whether the metric type is Utilization, Value, or AverageValue. This parameter is required.- Returns:
this
-
averageUtilization
@Stability(Stable) public MetricTargetV2.Builder averageUtilization(Number averageUtilization)
Sets the value ofMetricTargetV2.getAverageUtilization()- Parameters:
averageUtilization- averageUtilization 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. Currently only valid for Resource metric source type- Returns:
this
-
averageValue
@Stability(Stable) public MetricTargetV2.Builder averageValue(Quantity averageValue)
Sets the value ofMetricTargetV2.getAverageValue()- Parameters:
averageValue- averageValue is the target value of the average of the metric across all relevant pods (as a quantity).- Returns:
this
-
value
@Stability(Stable) public MetricTargetV2.Builder value(Quantity value)
Sets the value ofMetricTargetV2.getValue()- Parameters:
value- value is the target value of the metric (as a quantity).- Returns:
this
-
build
@Stability(Stable) public MetricTargetV2 build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<MetricTargetV2>- Returns:
- a new instance of
MetricTargetV2 - Throws:
NullPointerException- if any required attribute was not provided
-
-