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