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