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