Class CfnScalingPolicyPropsMixin.TargetTrackingMetricProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.applicationautoscaling.CfnScalingPolicyPropsMixin.TargetTrackingMetricProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnScalingPolicyPropsMixin.TargetTrackingMetricProperty>
- Enclosing interface:
CfnScalingPolicyPropsMixin.TargetTrackingMetricProperty
@Stability(Stable)
public static final class CfnScalingPolicyPropsMixin.TargetTrackingMetricProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnScalingPolicyPropsMixin.TargetTrackingMetricProperty>
A builder for
CfnScalingPolicyPropsMixin.TargetTrackingMetricProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dimensions(List<? extends Object> dimensions) Sets the value ofCfnScalingPolicyPropsMixin.TargetTrackingMetricProperty.getDimensions()dimensions(IResolvable dimensions) Sets the value ofCfnScalingPolicyPropsMixin.TargetTrackingMetricProperty.getDimensions()metricName(String metricName) Sets the value ofCfnScalingPolicyPropsMixin.TargetTrackingMetricProperty.getMetricName()Sets the value ofCfnScalingPolicyPropsMixin.TargetTrackingMetricProperty.getNamespace()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dimensions
@Stability(Stable) public CfnScalingPolicyPropsMixin.TargetTrackingMetricProperty.Builder dimensions(IResolvable dimensions) Sets the value ofCfnScalingPolicyPropsMixin.TargetTrackingMetricProperty.getDimensions()- Parameters:
dimensions- The dimensions for the metric. For the list of available dimensions, see the AWS documentation available from the table in AWS services that publish CloudWatch metrics in the Amazon CloudWatch User Guide .Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.
- Returns:
this
-
dimensions
@Stability(Stable) public CfnScalingPolicyPropsMixin.TargetTrackingMetricProperty.Builder dimensions(List<? extends Object> dimensions) Sets the value ofCfnScalingPolicyPropsMixin.TargetTrackingMetricProperty.getDimensions()- Parameters:
dimensions- The dimensions for the metric. For the list of available dimensions, see the AWS documentation available from the table in AWS services that publish CloudWatch metrics in the Amazon CloudWatch User Guide .Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.
- Returns:
this
-
metricName
@Stability(Stable) public CfnScalingPolicyPropsMixin.TargetTrackingMetricProperty.Builder metricName(String metricName) Sets the value ofCfnScalingPolicyPropsMixin.TargetTrackingMetricProperty.getMetricName()- Parameters:
metricName- The name of the metric.- Returns:
this
-
namespace
@Stability(Stable) public CfnScalingPolicyPropsMixin.TargetTrackingMetricProperty.Builder namespace(String namespace) Sets the value ofCfnScalingPolicyPropsMixin.TargetTrackingMetricProperty.getNamespace()- Parameters:
namespace- The namespace of the metric. For more information, see the table in AWS services that publish CloudWatch metrics in the Amazon CloudWatch User Guide .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnScalingPolicyPropsMixin.TargetTrackingMetricProperty>- Returns:
- a new instance of
CfnScalingPolicyPropsMixin.TargetTrackingMetricProperty - Throws:
NullPointerException- if any required attribute was not provided
-