Class CfnServiceLevelObjectivePropsMixin.MetricDataQueryProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.applicationsignals.CfnServiceLevelObjectivePropsMixin.MetricDataQueryProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServiceLevelObjectivePropsMixin.MetricDataQueryProperty>
- Enclosing interface:
CfnServiceLevelObjectivePropsMixin.MetricDataQueryProperty
@Stability(Stable)
public static final class CfnServiceLevelObjectivePropsMixin.MetricDataQueryProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServiceLevelObjectivePropsMixin.MetricDataQueryProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.expression(String expression) Sets the value ofCfnServiceLevelObjectivePropsMixin.MetricDataQueryProperty.getId()metricStat(IResolvable metricStat) returnData(Boolean returnData) returnData(IResolvable returnData)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accountId
@Stability(Stable) public CfnServiceLevelObjectivePropsMixin.MetricDataQueryProperty.Builder accountId(String accountId) - Parameters:
accountId- The ID of the account where this metric is located. If you are performing this operation in a monitoring account, use this to specify which source account to retrieve this metric from.- Returns:
this
-
expression
@Stability(Stable) public CfnServiceLevelObjectivePropsMixin.MetricDataQueryProperty.Builder expression(String expression) - Parameters:
expression- This field can contain a metric math expression to be performed on the other metrics that you are retrieving within thisMetricDataQueriesstructure. A math expression can use theIdof the other metrics or queries to refer to those metrics, and can also use theIdof other expressions to use the result of those expressions. For more information about metric math expressions, see Metric Math Syntax and Functions in the Amazon CloudWatch User Guide .Within each
MetricDataQueryobject, you must specify eitherExpressionorMetricStatbut not both.- Returns:
this
-
id
@Stability(Stable) public CfnServiceLevelObjectivePropsMixin.MetricDataQueryProperty.Builder id(String id) Sets the value ofCfnServiceLevelObjectivePropsMixin.MetricDataQueryProperty.getId()- Parameters:
id- A short name used to tie this object to the results in the response. ThisIdmust be unique within aMetricDataQueriesarray. If you are performing math expressions on this set of data, this name represents that data and can serve as a variable in the metric math expression. The valid characters are letters, numbers, and underscore. The first character must be a lowercase letter.- Returns:
this
-
metricStat
@Stability(Stable) public CfnServiceLevelObjectivePropsMixin.MetricDataQueryProperty.Builder metricStat(IResolvable metricStat) - Parameters:
metricStat- A metric to be used directly for the SLO, or to be used in the math expression that will be used for the SLO. Within oneMetricDataQueryobject, you must specify eitherExpressionorMetricStatbut not both.- Returns:
this
-
metricStat
@Stability(Stable) public CfnServiceLevelObjectivePropsMixin.MetricDataQueryProperty.Builder metricStat(CfnServiceLevelObjectivePropsMixin.MetricStatProperty metricStat) - Parameters:
metricStat- A metric to be used directly for the SLO, or to be used in the math expression that will be used for the SLO. Within oneMetricDataQueryobject, you must specify eitherExpressionorMetricStatbut not both.- Returns:
this
-
returnData
@Stability(Stable) public CfnServiceLevelObjectivePropsMixin.MetricDataQueryProperty.Builder returnData(Boolean returnData) - Parameters:
returnData- Use this only if you are using a metric math expression for the SLO. SpecifytrueforReturnDatafor only the one expression result to use as the alarm. For all other metrics and expressions in the sameCreateServiceLevelObjectiveoperation, specifyReturnDataasfalse.- Returns:
this
-
returnData
@Stability(Stable) public CfnServiceLevelObjectivePropsMixin.MetricDataQueryProperty.Builder returnData(IResolvable returnData) - Parameters:
returnData- Use this only if you are using a metric math expression for the SLO. SpecifytrueforReturnDatafor only the one expression result to use as the alarm. For all other metrics and expressions in the sameCreateServiceLevelObjectiveoperation, specifyReturnDataasfalse.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnServiceLevelObjectivePropsMixin.MetricDataQueryProperty>- Returns:
- a new instance of
CfnServiceLevelObjectivePropsMixin.MetricDataQueryProperty - Throws:
NullPointerException- if any required attribute was not provided
-