Package org.cdk8s.plus24.k8s
Class ExternalMetricSourceV2Beta1.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.ExternalMetricSourceV2Beta1.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ExternalMetricSourceV2Beta1>
- Enclosing interface:
- ExternalMetricSourceV2Beta1
@Stability(Stable) public static final class ExternalMetricSourceV2Beta1.Builder extends Object implements software.amazon.jsii.Builder<ExternalMetricSourceV2Beta1>
A builder forExternalMetricSourceV2Beta1
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExternalMetricSourceV2Beta1build()Builds the configured instance.ExternalMetricSourceV2Beta1.BuildermetricName(String metricName)Sets the value ofExternalMetricSourceV2Beta1.getMetricName()ExternalMetricSourceV2Beta1.BuildermetricSelector(LabelSelector metricSelector)Sets the value ofExternalMetricSourceV2Beta1.getMetricSelector()ExternalMetricSourceV2Beta1.BuildertargetAverageValue(Quantity targetAverageValue)Sets the value ofExternalMetricSourceV2Beta1.getTargetAverageValue()ExternalMetricSourceV2Beta1.BuildertargetValue(Quantity targetValue)Sets the value ofExternalMetricSourceV2Beta1.getTargetValue()
-
-
-
Method Detail
-
metricName
@Stability(Stable) public ExternalMetricSourceV2Beta1.Builder metricName(String metricName)
Sets the value ofExternalMetricSourceV2Beta1.getMetricName()- Parameters:
metricName- metricName is the name of the metric in question. This parameter is required.- Returns:
this
-
metricSelector
@Stability(Stable) public ExternalMetricSourceV2Beta1.Builder metricSelector(LabelSelector metricSelector)
Sets the value ofExternalMetricSourceV2Beta1.getMetricSelector()- Parameters:
metricSelector- metricSelector is used to identify a specific time series within a given metric.- Returns:
this
-
targetAverageValue
@Stability(Stable) public ExternalMetricSourceV2Beta1.Builder targetAverageValue(Quantity targetAverageValue)
Sets the value ofExternalMetricSourceV2Beta1.getTargetAverageValue()- Parameters:
targetAverageValue- targetAverageValue is the target per-pod value of global metric (as a quantity). Mutually exclusive with TargetValue.- Returns:
this
-
targetValue
@Stability(Stable) public ExternalMetricSourceV2Beta1.Builder targetValue(Quantity targetValue)
Sets the value ofExternalMetricSourceV2Beta1.getTargetValue()- Parameters:
targetValue- targetValue is the target value of the metric (as a quantity). Mutually exclusive with TargetAverageValue.- Returns:
this
-
build
@Stability(Stable) public ExternalMetricSourceV2Beta1 build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ExternalMetricSourceV2Beta1>- Returns:
- a new instance of
ExternalMetricSourceV2Beta1 - Throws:
NullPointerException- if any required attribute was not provided
-
-