@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateCloudWatchAlarmTemplateRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateCloudWatchAlarmTemplateRequest() |
Modifier and Type | Method and Description |
---|---|
CreateCloudWatchAlarmTemplateRequest |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
CreateCloudWatchAlarmTemplateRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
CreateCloudWatchAlarmTemplateRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getComparisonOperator() |
Integer |
getDatapointsToAlarm()
The number of datapoints within the evaluation period that must be breaching to trigger the alarm.
|
String |
getDescription()
A resource's optional description.
|
Integer |
getEvaluationPeriods()
The number of periods over which data is compared to the specified threshold.
|
String |
getGroupIdentifier()
A cloudwatch alarm template group's identifier.
|
String |
getMetricName()
The name of the metric associated with the alarm.
|
String |
getName()
A resource's name.
|
Integer |
getPeriod()
The period, in seconds, over which the specified statistic is applied.
|
String |
getStatistic() |
Map<String,String> |
getTags() |
String |
getTargetResourceType() |
Double |
getThreshold()
The threshold value to compare with the specified statistic.
|
String |
getTreatMissingData() |
int |
hashCode() |
void |
setComparisonOperator(String comparisonOperator) |
void |
setDatapointsToAlarm(Integer datapointsToAlarm)
The number of datapoints within the evaluation period that must be breaching to trigger the alarm.
|
void |
setDescription(String description)
A resource's optional description.
|
void |
setEvaluationPeriods(Integer evaluationPeriods)
The number of periods over which data is compared to the specified threshold.
|
void |
setGroupIdentifier(String groupIdentifier)
A cloudwatch alarm template group's identifier.
|
void |
setMetricName(String metricName)
The name of the metric associated with the alarm.
|
void |
setName(String name)
A resource's name.
|
void |
setPeriod(Integer period)
The period, in seconds, over which the specified statistic is applied.
|
void |
setStatistic(String statistic) |
void |
setTags(Map<String,String> tags) |
void |
setTargetResourceType(String targetResourceType) |
void |
setThreshold(Double threshold)
The threshold value to compare with the specified statistic.
|
void |
setTreatMissingData(String treatMissingData) |
String |
toString()
Returns a string representation of this object.
|
CreateCloudWatchAlarmTemplateRequest |
withComparisonOperator(CloudWatchAlarmTemplateComparisonOperator comparisonOperator) |
CreateCloudWatchAlarmTemplateRequest |
withComparisonOperator(String comparisonOperator) |
CreateCloudWatchAlarmTemplateRequest |
withDatapointsToAlarm(Integer datapointsToAlarm)
The number of datapoints within the evaluation period that must be breaching to trigger the alarm.
|
CreateCloudWatchAlarmTemplateRequest |
withDescription(String description)
A resource's optional description.
|
CreateCloudWatchAlarmTemplateRequest |
withEvaluationPeriods(Integer evaluationPeriods)
The number of periods over which data is compared to the specified threshold.
|
CreateCloudWatchAlarmTemplateRequest |
withGroupIdentifier(String groupIdentifier)
A cloudwatch alarm template group's identifier.
|
CreateCloudWatchAlarmTemplateRequest |
withMetricName(String metricName)
The name of the metric associated with the alarm.
|
CreateCloudWatchAlarmTemplateRequest |
withName(String name)
A resource's name.
|
CreateCloudWatchAlarmTemplateRequest |
withPeriod(Integer period)
The period, in seconds, over which the specified statistic is applied.
|
CreateCloudWatchAlarmTemplateRequest |
withStatistic(CloudWatchAlarmTemplateStatistic statistic) |
CreateCloudWatchAlarmTemplateRequest |
withStatistic(String statistic) |
CreateCloudWatchAlarmTemplateRequest |
withTags(Map<String,String> tags) |
CreateCloudWatchAlarmTemplateRequest |
withTargetResourceType(CloudWatchAlarmTemplateTargetResourceType targetResourceType) |
CreateCloudWatchAlarmTemplateRequest |
withTargetResourceType(String targetResourceType) |
CreateCloudWatchAlarmTemplateRequest |
withThreshold(Double threshold)
The threshold value to compare with the specified statistic.
|
CreateCloudWatchAlarmTemplateRequest |
withTreatMissingData(CloudWatchAlarmTemplateTreatMissingData treatMissingData) |
CreateCloudWatchAlarmTemplateRequest |
withTreatMissingData(String treatMissingData) |
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public CreateCloudWatchAlarmTemplateRequest()
public void setComparisonOperator(String comparisonOperator)
comparisonOperator
- CloudWatchAlarmTemplateComparisonOperator
public String getComparisonOperator()
CloudWatchAlarmTemplateComparisonOperator
public CreateCloudWatchAlarmTemplateRequest withComparisonOperator(String comparisonOperator)
comparisonOperator
- CloudWatchAlarmTemplateComparisonOperator
public CreateCloudWatchAlarmTemplateRequest withComparisonOperator(CloudWatchAlarmTemplateComparisonOperator comparisonOperator)
comparisonOperator
- CloudWatchAlarmTemplateComparisonOperator
public void setDatapointsToAlarm(Integer datapointsToAlarm)
datapointsToAlarm
- The number of datapoints within the evaluation period that must be breaching to trigger the alarm.public Integer getDatapointsToAlarm()
public CreateCloudWatchAlarmTemplateRequest withDatapointsToAlarm(Integer datapointsToAlarm)
datapointsToAlarm
- The number of datapoints within the evaluation period that must be breaching to trigger the alarm.public void setDescription(String description)
description
- A resource's optional description.public String getDescription()
public CreateCloudWatchAlarmTemplateRequest withDescription(String description)
description
- A resource's optional description.public void setEvaluationPeriods(Integer evaluationPeriods)
evaluationPeriods
- The number of periods over which data is compared to the specified threshold.public Integer getEvaluationPeriods()
public CreateCloudWatchAlarmTemplateRequest withEvaluationPeriods(Integer evaluationPeriods)
evaluationPeriods
- The number of periods over which data is compared to the specified threshold.public void setGroupIdentifier(String groupIdentifier)
groupIdentifier
- A cloudwatch alarm template group's identifier. Can be either be its id or current name.public String getGroupIdentifier()
public CreateCloudWatchAlarmTemplateRequest withGroupIdentifier(String groupIdentifier)
groupIdentifier
- A cloudwatch alarm template group's identifier. Can be either be its id or current name.public void setMetricName(String metricName)
metricName
- The name of the metric associated with the alarm. Must be compatible with targetResourceType.public String getMetricName()
public CreateCloudWatchAlarmTemplateRequest withMetricName(String metricName)
metricName
- The name of the metric associated with the alarm. Must be compatible with targetResourceType.public void setName(String name)
name
- A resource's name. Names must be unique within the scope of a resource type in a specific region.public String getName()
public CreateCloudWatchAlarmTemplateRequest withName(String name)
name
- A resource's name. Names must be unique within the scope of a resource type in a specific region.public void setPeriod(Integer period)
period
- The period, in seconds, over which the specified statistic is applied.public Integer getPeriod()
public CreateCloudWatchAlarmTemplateRequest withPeriod(Integer period)
period
- The period, in seconds, over which the specified statistic is applied.public void setStatistic(String statistic)
statistic
- CloudWatchAlarmTemplateStatistic
public String getStatistic()
CloudWatchAlarmTemplateStatistic
public CreateCloudWatchAlarmTemplateRequest withStatistic(String statistic)
statistic
- CloudWatchAlarmTemplateStatistic
public CreateCloudWatchAlarmTemplateRequest withStatistic(CloudWatchAlarmTemplateStatistic statistic)
statistic
- CloudWatchAlarmTemplateStatistic
public CreateCloudWatchAlarmTemplateRequest withTags(Map<String,String> tags)
tags
- public CreateCloudWatchAlarmTemplateRequest addTagsEntry(String key, String value)
public CreateCloudWatchAlarmTemplateRequest clearTagsEntries()
public void setTargetResourceType(String targetResourceType)
targetResourceType
- CloudWatchAlarmTemplateTargetResourceType
public String getTargetResourceType()
CloudWatchAlarmTemplateTargetResourceType
public CreateCloudWatchAlarmTemplateRequest withTargetResourceType(String targetResourceType)
targetResourceType
- CloudWatchAlarmTemplateTargetResourceType
public CreateCloudWatchAlarmTemplateRequest withTargetResourceType(CloudWatchAlarmTemplateTargetResourceType targetResourceType)
targetResourceType
- CloudWatchAlarmTemplateTargetResourceType
public void setThreshold(Double threshold)
threshold
- The threshold value to compare with the specified statistic.public Double getThreshold()
public CreateCloudWatchAlarmTemplateRequest withThreshold(Double threshold)
threshold
- The threshold value to compare with the specified statistic.public void setTreatMissingData(String treatMissingData)
treatMissingData
- CloudWatchAlarmTemplateTreatMissingData
public String getTreatMissingData()
CloudWatchAlarmTemplateTreatMissingData
public CreateCloudWatchAlarmTemplateRequest withTreatMissingData(String treatMissingData)
treatMissingData
- CloudWatchAlarmTemplateTreatMissingData
public CreateCloudWatchAlarmTemplateRequest withTreatMissingData(CloudWatchAlarmTemplateTreatMissingData treatMissingData)
treatMissingData
- CloudWatchAlarmTemplateTreatMissingData
public String toString()
toString
in class Object
Object.toString()
public CreateCloudWatchAlarmTemplateRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()