Package org.cdk8s.plus23.k8s
Class PodsMetricSourceV2Beta1.Builder
- java.lang.Object
-
- org.cdk8s.plus23.k8s.PodsMetricSourceV2Beta1.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<PodsMetricSourceV2Beta1>
- Enclosing interface:
- PodsMetricSourceV2Beta1
@Stability(Stable) public static final class PodsMetricSourceV2Beta1.Builder extends Object implements software.amazon.jsii.Builder<PodsMetricSourceV2Beta1>
A builder forPodsMetricSourceV2Beta1
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PodsMetricSourceV2Beta1
build()
Builds the configured instance.PodsMetricSourceV2Beta1.Builder
metricName(String metricName)
Sets the value ofPodsMetricSourceV2Beta1.getMetricName()
PodsMetricSourceV2Beta1.Builder
selector(LabelSelector selector)
Sets the value ofPodsMetricSourceV2Beta1.getSelector()
PodsMetricSourceV2Beta1.Builder
targetAverageValue(Quantity targetAverageValue)
Sets the value ofPodsMetricSourceV2Beta1.getTargetAverageValue()
-
-
-
Method Detail
-
metricName
@Stability(Stable) public PodsMetricSourceV2Beta1.Builder metricName(String metricName)
Sets the value ofPodsMetricSourceV2Beta1.getMetricName()
- Parameters:
metricName
- metricName is the name of the metric in question. This parameter is required.- Returns:
this
-
targetAverageValue
@Stability(Stable) public PodsMetricSourceV2Beta1.Builder targetAverageValue(Quantity targetAverageValue)
Sets the value ofPodsMetricSourceV2Beta1.getTargetAverageValue()
- Parameters:
targetAverageValue
- targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity). This parameter is required.- Returns:
this
-
selector
@Stability(Stable) public PodsMetricSourceV2Beta1.Builder selector(LabelSelector selector)
Sets the value ofPodsMetricSourceV2Beta1.getSelector()
- Parameters:
selector
- selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics.- Returns:
this
-
build
@Stability(Stable) public PodsMetricSourceV2Beta1 build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<PodsMetricSourceV2Beta1>
- Returns:
- a new instance of
PodsMetricSourceV2Beta1
- Throws:
NullPointerException
- if any required attribute was not provided
-
-