Class CfnCloudWatchAlarmTemplateMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.medialive.CfnCloudWatchAlarmTemplateMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCloudWatchAlarmTemplateMixinProps>
- Enclosing interface:
CfnCloudWatchAlarmTemplateMixinProps
@Stability(Stable)
public static final class CfnCloudWatchAlarmTemplateMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCloudWatchAlarmTemplateMixinProps>
A builder for
CfnCloudWatchAlarmTemplateMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.comparisonOperator(String comparisonOperator) Sets the value ofCfnCloudWatchAlarmTemplateMixinProps.getComparisonOperator()datapointsToAlarm(Number datapointsToAlarm) Sets the value ofCfnCloudWatchAlarmTemplateMixinProps.getDatapointsToAlarm()description(String description) Sets the value ofCfnCloudWatchAlarmTemplateMixinProps.getDescription()evaluationPeriods(Number evaluationPeriods) Sets the value ofCfnCloudWatchAlarmTemplateMixinProps.getEvaluationPeriods()groupIdentifier(String groupIdentifier) Sets the value ofCfnCloudWatchAlarmTemplateMixinProps.getGroupIdentifier()metricName(String metricName) Sets the value ofCfnCloudWatchAlarmTemplateMixinProps.getMetricName()Sets the value ofCfnCloudWatchAlarmTemplateMixinProps.getName()Sets the value ofCfnCloudWatchAlarmTemplateMixinProps.getPeriod()Sets the value ofCfnCloudWatchAlarmTemplateMixinProps.getStatistic()Sets the value ofCfnCloudWatchAlarmTemplateMixinProps.getTags()targetResourceType(String targetResourceType) Sets the value ofCfnCloudWatchAlarmTemplateMixinProps.getTargetResourceType()Sets the value ofCfnCloudWatchAlarmTemplateMixinProps.getThreshold()treatMissingData(String treatMissingData) Sets the value ofCfnCloudWatchAlarmTemplateMixinProps.getTreatMissingData()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
comparisonOperator
@Stability(Stable) public CfnCloudWatchAlarmTemplateMixinProps.Builder comparisonOperator(String comparisonOperator) Sets the value ofCfnCloudWatchAlarmTemplateMixinProps.getComparisonOperator()- Parameters:
comparisonOperator- The comparison operator used to compare the specified statistic and the threshold.- Returns:
this
-
datapointsToAlarm
@Stability(Stable) public CfnCloudWatchAlarmTemplateMixinProps.Builder datapointsToAlarm(Number datapointsToAlarm) Sets the value ofCfnCloudWatchAlarmTemplateMixinProps.getDatapointsToAlarm()- Parameters:
datapointsToAlarm- The number of datapoints within the evaluation period that must be breaching to trigger the alarm.- Returns:
this
-
description
@Stability(Stable) public CfnCloudWatchAlarmTemplateMixinProps.Builder description(String description) Sets the value ofCfnCloudWatchAlarmTemplateMixinProps.getDescription()- Parameters:
description- A resource's optional description.- Returns:
this
-
evaluationPeriods
@Stability(Stable) public CfnCloudWatchAlarmTemplateMixinProps.Builder evaluationPeriods(Number evaluationPeriods) Sets the value ofCfnCloudWatchAlarmTemplateMixinProps.getEvaluationPeriods()- Parameters:
evaluationPeriods- The number of periods over which data is compared to the specified threshold.- Returns:
this
-
groupIdentifier
@Stability(Stable) public CfnCloudWatchAlarmTemplateMixinProps.Builder groupIdentifier(String groupIdentifier) Sets the value ofCfnCloudWatchAlarmTemplateMixinProps.getGroupIdentifier()- Parameters:
groupIdentifier- A cloudwatch alarm template group's identifier. Can be either be its id or current name.- Returns:
this
-
metricName
@Stability(Stable) public CfnCloudWatchAlarmTemplateMixinProps.Builder metricName(String metricName) Sets the value ofCfnCloudWatchAlarmTemplateMixinProps.getMetricName()- Parameters:
metricName- The name of the metric associated with the alarm. Must be compatible with targetResourceType.- Returns:
this
-
name
Sets the value ofCfnCloudWatchAlarmTemplateMixinProps.getName()- Parameters:
name- A resource's name. Names must be unique within the scope of a resource type in a specific region.- Returns:
this
-
period
Sets the value ofCfnCloudWatchAlarmTemplateMixinProps.getPeriod()- Parameters:
period- The period, in seconds, over which the specified statistic is applied.- Returns:
this
-
statistic
Sets the value ofCfnCloudWatchAlarmTemplateMixinProps.getStatistic()- Parameters:
statistic- The statistic to apply to the alarm's metric data.- Returns:
this
-
tags
@Stability(Stable) public CfnCloudWatchAlarmTemplateMixinProps.Builder tags(Map<String, String> tags) Sets the value ofCfnCloudWatchAlarmTemplateMixinProps.getTags()- Parameters:
tags- Represents the tags associated with a resource.- Returns:
this
-
targetResourceType
@Stability(Stable) public CfnCloudWatchAlarmTemplateMixinProps.Builder targetResourceType(String targetResourceType) Sets the value ofCfnCloudWatchAlarmTemplateMixinProps.getTargetResourceType()- Parameters:
targetResourceType- The resource type this template should dynamically generate CloudWatch metric alarms for.- Returns:
this
-
threshold
Sets the value ofCfnCloudWatchAlarmTemplateMixinProps.getThreshold()- Parameters:
threshold- The threshold value to compare with the specified statistic.- Returns:
this
-
treatMissingData
@Stability(Stable) public CfnCloudWatchAlarmTemplateMixinProps.Builder treatMissingData(String treatMissingData) Sets the value ofCfnCloudWatchAlarmTemplateMixinProps.getTreatMissingData()- Parameters:
treatMissingData- Specifies how missing data points are treated when evaluating the alarm's condition.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCloudWatchAlarmTemplateMixinProps>- Returns:
- a new instance of
CfnCloudWatchAlarmTemplateMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-