Class CfnScalingPolicy.PredictiveScalingMetricDataQueryProperty.Builder
java.lang.Object
software.amazon.awscdk.services.applicationautoscaling.CfnScalingPolicy.PredictiveScalingMetricDataQueryProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnScalingPolicy.PredictiveScalingMetricDataQueryProperty>
- Enclosing interface:
CfnScalingPolicy.PredictiveScalingMetricDataQueryProperty
@Stability(Stable)
public static final class CfnScalingPolicy.PredictiveScalingMetricDataQueryProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnScalingPolicy.PredictiveScalingMetricDataQueryProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.expression(String expression) Sets the value ofCfnScalingPolicy.PredictiveScalingMetricDataQueryProperty.getId()Sets the value ofCfnScalingPolicy.PredictiveScalingMetricDataQueryProperty.getLabel()metricStat(IResolvable metricStat) returnData(Boolean returnData) returnData(IResolvable returnData)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
expression
@Stability(Stable) public CfnScalingPolicy.PredictiveScalingMetricDataQueryProperty.Builder expression(String expression) - Parameters:
expression- The math expression to perform on the returned data, if this object is performing a math expression.- Returns:
this
-
id
@Stability(Stable) public CfnScalingPolicy.PredictiveScalingMetricDataQueryProperty.Builder id(String id) Sets the value ofCfnScalingPolicy.PredictiveScalingMetricDataQueryProperty.getId()- Parameters:
id- A short name that identifies the object's results in the response.- Returns:
this
-
label
@Stability(Stable) public CfnScalingPolicy.PredictiveScalingMetricDataQueryProperty.Builder label(String label) Sets the value ofCfnScalingPolicy.PredictiveScalingMetricDataQueryProperty.getLabel()- Parameters:
label- A human-readable label for this metric or expression. This is especially useful if this is a math expression, so that you know what the value represents.- Returns:
this
-
metricStat
@Stability(Stable) public CfnScalingPolicy.PredictiveScalingMetricDataQueryProperty.Builder metricStat(IResolvable metricStat) - Parameters:
metricStat- the value to be set.- Returns:
this
-
metricStat
@Stability(Stable) public CfnScalingPolicy.PredictiveScalingMetricDataQueryProperty.Builder metricStat(CfnScalingPolicy.PredictiveScalingMetricStatProperty metricStat) - Parameters:
metricStat- the value to be set.- Returns:
this
-
returnData
@Stability(Stable) public CfnScalingPolicy.PredictiveScalingMetricDataQueryProperty.Builder returnData(Boolean returnData) - Parameters:
returnData- Indicates whether to return the timestamps and raw data values of this metric.- Returns:
this
-
returnData
@Stability(Stable) public CfnScalingPolicy.PredictiveScalingMetricDataQueryProperty.Builder returnData(IResolvable returnData) - Parameters:
returnData- Indicates whether to return the timestamps and raw data values of this metric.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnScalingPolicy.PredictiveScalingMetricDataQueryProperty>- Returns:
- a new instance of
CfnScalingPolicy.PredictiveScalingMetricDataQueryProperty - Throws:
NullPointerException- if any required attribute was not provided
-