Package org.cdk8s.plus23.k8s
Class MetricTargetV2Beta2.Builder
- java.lang.Object
-
- org.cdk8s.plus23.k8s.MetricTargetV2Beta2.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<MetricTargetV2Beta2>
- Enclosing interface:
- MetricTargetV2Beta2
@Stability(Stable) public static final class MetricTargetV2Beta2.Builder extends Object implements software.amazon.jsii.Builder<MetricTargetV2Beta2>
A builder forMetricTargetV2Beta2
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MetricTargetV2Beta2.Builder
averageUtilization(Number averageUtilization)
Sets the value ofMetricTargetV2Beta2.getAverageUtilization()
MetricTargetV2Beta2.Builder
averageValue(Quantity averageValue)
Sets the value ofMetricTargetV2Beta2.getAverageValue()
MetricTargetV2Beta2
build()
Builds the configured instance.MetricTargetV2Beta2.Builder
type(String type)
Sets the value ofMetricTargetV2Beta2.getType()
MetricTargetV2Beta2.Builder
value(Quantity value)
Sets the value ofMetricTargetV2Beta2.getValue()
-
-
-
Method Detail
-
type
@Stability(Stable) public MetricTargetV2Beta2.Builder type(String type)
Sets the value ofMetricTargetV2Beta2.getType()
- Parameters:
type
- type represents whether the metric type is Utilization, Value, or AverageValue. This parameter is required.- Returns:
this
-
averageUtilization
@Stability(Stable) public MetricTargetV2Beta2.Builder averageUtilization(Number averageUtilization)
Sets the value ofMetricTargetV2Beta2.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 MetricTargetV2Beta2.Builder averageValue(Quantity averageValue)
Sets the value ofMetricTargetV2Beta2.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 MetricTargetV2Beta2.Builder value(Quantity value)
Sets the value ofMetricTargetV2Beta2.getValue()
- Parameters:
value
- value is the target value of the metric (as a quantity).- Returns:
this
-
build
@Stability(Stable) public MetricTargetV2Beta2 build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<MetricTargetV2Beta2>
- Returns:
- a new instance of
MetricTargetV2Beta2
- Throws:
NullPointerException
- if any required attribute was not provided
-
-