Class CfnScalingPolicyPropsMixin.PredictiveScalingMetricDataQueryProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.applicationautoscaling.CfnScalingPolicyPropsMixin.PredictiveScalingMetricDataQueryProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnScalingPolicyPropsMixin.PredictiveScalingMetricDataQueryProperty>
- Enclosing interface:
CfnScalingPolicyPropsMixin.PredictiveScalingMetricDataQueryProperty
@Stability(Stable)
public static final class CfnScalingPolicyPropsMixin.PredictiveScalingMetricDataQueryProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnScalingPolicyPropsMixin.PredictiveScalingMetricDataQueryProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.expression(String expression) metricStat(IResolvable metricStat) returnData(Boolean returnData) returnData(IResolvable returnData)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
expression
@Stability(Stable) public CfnScalingPolicyPropsMixin.PredictiveScalingMetricDataQueryProperty.Builder expression(String expression) Sets the value ofCfnScalingPolicyPropsMixin.PredictiveScalingMetricDataQueryProperty.getExpression()- Parameters:
expression- The math expression to perform on the returned data, if this object is performing a math expression. This expression can use theIdof the other metrics to refer to those metrics, and can also use theIdof other expressions to use the result of those expressions.Conditional: Within each
MetricDataQueryobject, you must specify eitherExpressionorMetricStat, but not both.- Returns:
this
-
id
@Stability(Stable) public CfnScalingPolicyPropsMixin.PredictiveScalingMetricDataQueryProperty.Builder id(String id) - Parameters:
id- A short name that identifies the object's results in the response. This name must be unique among allMetricDataQueryobjects specified for a single scaling policy. If you are performing math expressions on this set of data, this name represents that data and can serve as a variable in the mathematical expression. The valid characters are letters, numbers, and underscores. The first character must be a lowercase letter.- Returns:
this
-
label
@Stability(Stable) public CfnScalingPolicyPropsMixin.PredictiveScalingMetricDataQueryProperty.Builder label(String label) - 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 CfnScalingPolicyPropsMixin.PredictiveScalingMetricDataQueryProperty.Builder metricStat(IResolvable metricStat) Sets the value ofCfnScalingPolicyPropsMixin.PredictiveScalingMetricDataQueryProperty.getMetricStat()- Parameters:
metricStat- Information about the metric data to return. Conditional: Within eachMetricDataQueryobject, you must specify eitherExpressionorMetricStat, but not both.- Returns:
this
-
metricStat
@Stability(Stable) public CfnScalingPolicyPropsMixin.PredictiveScalingMetricDataQueryProperty.Builder metricStat(CfnScalingPolicyPropsMixin.PredictiveScalingMetricStatProperty metricStat) Sets the value ofCfnScalingPolicyPropsMixin.PredictiveScalingMetricDataQueryProperty.getMetricStat()- Parameters:
metricStat- Information about the metric data to return. Conditional: Within eachMetricDataQueryobject, you must specify eitherExpressionorMetricStat, but not both.- Returns:
this
-
returnData
@Stability(Stable) public CfnScalingPolicyPropsMixin.PredictiveScalingMetricDataQueryProperty.Builder returnData(Boolean returnData) Sets the value ofCfnScalingPolicyPropsMixin.PredictiveScalingMetricDataQueryProperty.getReturnData()- Parameters:
returnData- Indicates whether to return the timestamps and raw data values of this metric. If you use any math expressions, specifytruefor this value for only the final math expression that the metric specification is based on. You must specifyfalseforReturnDatafor all the other metrics and expressions used in the metric specification.If you are only retrieving metrics and not performing any math expressions, do not specify anything for
ReturnData. This sets it to its default (true).- Returns:
this
-
returnData
@Stability(Stable) public CfnScalingPolicyPropsMixin.PredictiveScalingMetricDataQueryProperty.Builder returnData(IResolvable returnData) Sets the value ofCfnScalingPolicyPropsMixin.PredictiveScalingMetricDataQueryProperty.getReturnData()- Parameters:
returnData- Indicates whether to return the timestamps and raw data values of this metric. If you use any math expressions, specifytruefor this value for only the final math expression that the metric specification is based on. You must specifyfalseforReturnDatafor all the other metrics and expressions used in the metric specification.If you are only retrieving metrics and not performing any math expressions, do not specify anything for
ReturnData. This sets it to its default (true).- Returns:
this
-
build
@Stability(Stable) public CfnScalingPolicyPropsMixin.PredictiveScalingMetricDataQueryProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnScalingPolicyPropsMixin.PredictiveScalingMetricDataQueryProperty>- Returns:
- a new instance of
CfnScalingPolicyPropsMixin.PredictiveScalingMetricDataQueryProperty - Throws:
NullPointerException- if any required attribute was not provided
-