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