Package org.cdk8s.plus25.k8s
Class PodsMetricSourceV2.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.PodsMetricSourceV2.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<PodsMetricSourceV2>
- Enclosing interface:
- PodsMetricSourceV2
@Stability(Stable) public static final class PodsMetricSourceV2.Builder extends Object implements software.amazon.jsii.Builder<PodsMetricSourceV2>
A builder forPodsMetricSourceV2
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PodsMetricSourceV2build()Builds the configured instance.PodsMetricSourceV2.Buildermetric(MetricIdentifierV2 metric)Sets the value ofPodsMetricSourceV2.getMetric()PodsMetricSourceV2.Buildertarget(MetricTargetV2 target)Sets the value ofPodsMetricSourceV2.getTarget()
-
-
-
Method Detail
-
metric
@Stability(Stable) public PodsMetricSourceV2.Builder metric(MetricIdentifierV2 metric)
Sets the value ofPodsMetricSourceV2.getMetric()- Parameters:
metric- metric identifies the target metric by name and selector. This parameter is required.- Returns:
this
-
target
@Stability(Stable) public PodsMetricSourceV2.Builder target(MetricTargetV2 target)
Sets the value ofPodsMetricSourceV2.getTarget()- Parameters:
target- target specifies the target value for the given metric. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public PodsMetricSourceV2 build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<PodsMetricSourceV2>- Returns:
- a new instance of
PodsMetricSourceV2 - Throws:
NullPointerException- if any required attribute was not provided
-
-