@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateAlertRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateAlertRequest() |
Modifier and Type | Method and Description |
---|---|
CreateAlertRequest |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
CreateAlertRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
CreateAlertRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Action |
getAction()
Action that will be triggered when there is an alert.
|
String |
getAlertDescription()
A description of the alert.
|
AlertFilters |
getAlertFilters()
The configuration of the alert filters, containing MetricList and DimensionFilterList.
|
String |
getAlertName()
The name of the alert.
|
Integer |
getAlertSensitivityThreshold()
An integer from 0 to 100 specifying the alert sensitivity threshold.
|
String |
getAnomalyDetectorArn()
The ARN of the detector to which the alert is attached.
|
Map<String,String> |
getTags()
A list of tags to apply
to the alert.
|
int |
hashCode() |
void |
setAction(Action action)
Action that will be triggered when there is an alert.
|
void |
setAlertDescription(String alertDescription)
A description of the alert.
|
void |
setAlertFilters(AlertFilters alertFilters)
The configuration of the alert filters, containing MetricList and DimensionFilterList.
|
void |
setAlertName(String alertName)
The name of the alert.
|
void |
setAlertSensitivityThreshold(Integer alertSensitivityThreshold)
An integer from 0 to 100 specifying the alert sensitivity threshold.
|
void |
setAnomalyDetectorArn(String anomalyDetectorArn)
The ARN of the detector to which the alert is attached.
|
void |
setTags(Map<String,String> tags)
A list of tags to apply
to the alert.
|
String |
toString()
Returns a string representation of this object.
|
CreateAlertRequest |
withAction(Action action)
Action that will be triggered when there is an alert.
|
CreateAlertRequest |
withAlertDescription(String alertDescription)
A description of the alert.
|
CreateAlertRequest |
withAlertFilters(AlertFilters alertFilters)
The configuration of the alert filters, containing MetricList and DimensionFilterList.
|
CreateAlertRequest |
withAlertName(String alertName)
The name of the alert.
|
CreateAlertRequest |
withAlertSensitivityThreshold(Integer alertSensitivityThreshold)
An integer from 0 to 100 specifying the alert sensitivity threshold.
|
CreateAlertRequest |
withAnomalyDetectorArn(String anomalyDetectorArn)
The ARN of the detector to which the alert is attached.
|
CreateAlertRequest |
withTags(Map<String,String> tags)
A list of tags to apply
to the alert.
|
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 void setAlertName(String alertName)
The name of the alert.
alertName
- The name of the alert.public String getAlertName()
The name of the alert.
public CreateAlertRequest withAlertName(String alertName)
The name of the alert.
alertName
- The name of the alert.public void setAlertSensitivityThreshold(Integer alertSensitivityThreshold)
An integer from 0 to 100 specifying the alert sensitivity threshold.
alertSensitivityThreshold
- An integer from 0 to 100 specifying the alert sensitivity threshold.public Integer getAlertSensitivityThreshold()
An integer from 0 to 100 specifying the alert sensitivity threshold.
public CreateAlertRequest withAlertSensitivityThreshold(Integer alertSensitivityThreshold)
An integer from 0 to 100 specifying the alert sensitivity threshold.
alertSensitivityThreshold
- An integer from 0 to 100 specifying the alert sensitivity threshold.public void setAlertDescription(String alertDescription)
A description of the alert.
alertDescription
- A description of the alert.public String getAlertDescription()
A description of the alert.
public CreateAlertRequest withAlertDescription(String alertDescription)
A description of the alert.
alertDescription
- A description of the alert.public void setAnomalyDetectorArn(String anomalyDetectorArn)
The ARN of the detector to which the alert is attached.
anomalyDetectorArn
- The ARN of the detector to which the alert is attached.public String getAnomalyDetectorArn()
The ARN of the detector to which the alert is attached.
public CreateAlertRequest withAnomalyDetectorArn(String anomalyDetectorArn)
The ARN of the detector to which the alert is attached.
anomalyDetectorArn
- The ARN of the detector to which the alert is attached.public void setAction(Action action)
Action that will be triggered when there is an alert.
action
- Action that will be triggered when there is an alert.public Action getAction()
Action that will be triggered when there is an alert.
public CreateAlertRequest withAction(Action action)
Action that will be triggered when there is an alert.
action
- Action that will be triggered when there is an alert.public Map<String,String> getTags()
A list of tags to apply to the alert.
public void setTags(Map<String,String> tags)
A list of tags to apply to the alert.
tags
- A list of tags to
apply to the alert.public CreateAlertRequest withTags(Map<String,String> tags)
A list of tags to apply to the alert.
tags
- A list of tags to
apply to the alert.public CreateAlertRequest addTagsEntry(String key, String value)
public CreateAlertRequest clearTagsEntries()
public void setAlertFilters(AlertFilters alertFilters)
The configuration of the alert filters, containing MetricList and DimensionFilterList.
alertFilters
- The configuration of the alert filters, containing MetricList and DimensionFilterList.public AlertFilters getAlertFilters()
The configuration of the alert filters, containing MetricList and DimensionFilterList.
public CreateAlertRequest withAlertFilters(AlertFilters alertFilters)
The configuration of the alert filters, containing MetricList and DimensionFilterList.
alertFilters
- The configuration of the alert filters, containing MetricList and DimensionFilterList.public String toString()
toString
in class Object
Object.toString()
public CreateAlertRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()