Package org.cdk8s.plus24.k8s
Class ObjectMetricSourceV2Beta1.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.ObjectMetricSourceV2Beta1.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ObjectMetricSourceV2Beta1>
- Enclosing interface:
- ObjectMetricSourceV2Beta1
@Stability(Stable) public static final class ObjectMetricSourceV2Beta1.Builder extends Object implements software.amazon.jsii.Builder<ObjectMetricSourceV2Beta1>
A builder forObjectMetricSourceV2Beta1
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectMetricSourceV2Beta1.Builder
averageValue(Quantity averageValue)
Sets the value ofObjectMetricSourceV2Beta1.getAverageValue()
ObjectMetricSourceV2Beta1
build()
Builds the configured instance.ObjectMetricSourceV2Beta1.Builder
metricName(String metricName)
Sets the value ofObjectMetricSourceV2Beta1.getMetricName()
ObjectMetricSourceV2Beta1.Builder
selector(LabelSelector selector)
Sets the value ofObjectMetricSourceV2Beta1.getSelector()
ObjectMetricSourceV2Beta1.Builder
target(CrossVersionObjectReferenceV2Beta1 target)
Sets the value ofObjectMetricSourceV2Beta1.getTarget()
ObjectMetricSourceV2Beta1.Builder
targetValue(Quantity targetValue)
Sets the value ofObjectMetricSourceV2Beta1.getTargetValue()
-
-
-
Method Detail
-
metricName
@Stability(Stable) public ObjectMetricSourceV2Beta1.Builder metricName(String metricName)
Sets the value ofObjectMetricSourceV2Beta1.getMetricName()
- Parameters:
metricName
- metricName is the name of the metric in question. This parameter is required.- Returns:
this
-
target
@Stability(Stable) public ObjectMetricSourceV2Beta1.Builder target(CrossVersionObjectReferenceV2Beta1 target)
Sets the value ofObjectMetricSourceV2Beta1.getTarget()
- Parameters:
target
- target is the described Kubernetes object. This parameter is required.- Returns:
this
-
targetValue
@Stability(Stable) public ObjectMetricSourceV2Beta1.Builder targetValue(Quantity targetValue)
Sets the value ofObjectMetricSourceV2Beta1.getTargetValue()
- Parameters:
targetValue
- targetValue is the target value of the metric (as a quantity). This parameter is required.- Returns:
this
-
averageValue
@Stability(Stable) public ObjectMetricSourceV2Beta1.Builder averageValue(Quantity averageValue)
Sets the value ofObjectMetricSourceV2Beta1.getAverageValue()
- Parameters:
averageValue
- averageValue is the target value of the average of the metric across all relevant pods (as a quantity).- Returns:
this
-
selector
@Stability(Stable) public ObjectMetricSourceV2Beta1.Builder selector(LabelSelector selector)
Sets the value ofObjectMetricSourceV2Beta1.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 ObjectMetricSourceV2Beta1 build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ObjectMetricSourceV2Beta1>
- Returns:
- a new instance of
ObjectMetricSourceV2Beta1
- Throws:
NullPointerException
- if any required attribute was not provided
-
-