Package org.cdk8s.plus25.k8s
Class MetricIdentifierV2Beta2.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.MetricIdentifierV2Beta2.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<MetricIdentifierV2Beta2>
- Enclosing interface:
- MetricIdentifierV2Beta2
@Stability(Stable) public static final class MetricIdentifierV2Beta2.Builder extends Object implements software.amazon.jsii.Builder<MetricIdentifierV2Beta2>
A builder forMetricIdentifierV2Beta2
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MetricIdentifierV2Beta2build()Builds the configured instance.MetricIdentifierV2Beta2.Buildername(String name)Sets the value ofMetricIdentifierV2Beta2.getName()MetricIdentifierV2Beta2.Builderselector(LabelSelector selector)Sets the value ofMetricIdentifierV2Beta2.getSelector()
-
-
-
Method Detail
-
name
@Stability(Stable) public MetricIdentifierV2Beta2.Builder name(String name)
Sets the value ofMetricIdentifierV2Beta2.getName()- Parameters:
name- name is the name of the given metric. This parameter is required.- Returns:
this
-
selector
@Stability(Stable) public MetricIdentifierV2Beta2.Builder selector(LabelSelector selector)
Sets the value ofMetricIdentifierV2Beta2.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 MetricIdentifierV2Beta2 build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<MetricIdentifierV2Beta2>- Returns:
- a new instance of
MetricIdentifierV2Beta2 - Throws:
NullPointerException- if any required attribute was not provided
-
-