@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Alert extends Object implements Serializable, Cloneable, StructuredPojo
A configuration for Amazon SNS-integrated notifications.
Constructor and Description |
---|
Alert() |
Modifier and Type | Method and Description |
---|---|
Alert |
clone() |
boolean |
equals(Object obj) |
Action |
getAction()
Action that will be triggered when there is an alert.
|
String |
getAlertArn()
The ARN of the alert.
|
String |
getAlertDescription()
A description of the alert.
|
AlertFilters |
getAlertFilters()
The configuration of the alert filters, containing MetricList and DimensionFilter.
|
String |
getAlertName()
The name of the alert.
|
Integer |
getAlertSensitivityThreshold()
The minimum severity for an anomaly to trigger the alert.
|
String |
getAlertStatus()
The status of the alert.
|
String |
getAlertType()
The type of the alert.
|
String |
getAnomalyDetectorArn()
The ARN of the detector to which the alert is attached.
|
Date |
getCreationTime()
The time at which the alert was created.
|
Date |
getLastModificationTime()
The time at which the alert was last modified.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAction(Action action)
Action that will be triggered when there is an alert.
|
void |
setAlertArn(String alertArn)
The ARN of the alert.
|
void |
setAlertDescription(String alertDescription)
A description of the alert.
|
void |
setAlertFilters(AlertFilters alertFilters)
The configuration of the alert filters, containing MetricList and DimensionFilter.
|
void |
setAlertName(String alertName)
The name of the alert.
|
void |
setAlertSensitivityThreshold(Integer alertSensitivityThreshold)
The minimum severity for an anomaly to trigger the alert.
|
void |
setAlertStatus(String alertStatus)
The status of the alert.
|
void |
setAlertType(String alertType)
The type of the alert.
|
void |
setAnomalyDetectorArn(String anomalyDetectorArn)
The ARN of the detector to which the alert is attached.
|
void |
setCreationTime(Date creationTime)
The time at which the alert was created.
|
void |
setLastModificationTime(Date lastModificationTime)
The time at which the alert was last modified.
|
String |
toString()
Returns a string representation of this object.
|
Alert |
withAction(Action action)
Action that will be triggered when there is an alert.
|
Alert |
withAlertArn(String alertArn)
The ARN of the alert.
|
Alert |
withAlertDescription(String alertDescription)
A description of the alert.
|
Alert |
withAlertFilters(AlertFilters alertFilters)
The configuration of the alert filters, containing MetricList and DimensionFilter.
|
Alert |
withAlertName(String alertName)
The name of the alert.
|
Alert |
withAlertSensitivityThreshold(Integer alertSensitivityThreshold)
The minimum severity for an anomaly to trigger the alert.
|
Alert |
withAlertStatus(AlertStatus alertStatus)
The status of the alert.
|
Alert |
withAlertStatus(String alertStatus)
The status of the alert.
|
Alert |
withAlertType(AlertType alertType)
The type of the alert.
|
Alert |
withAlertType(String alertType)
The type of the alert.
|
Alert |
withAnomalyDetectorArn(String anomalyDetectorArn)
The ARN of the detector to which the alert is attached.
|
Alert |
withCreationTime(Date creationTime)
The time at which the alert was created.
|
Alert |
withLastModificationTime(Date lastModificationTime)
The time at which the alert was last modified.
|
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 Alert 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 void setAlertDescription(String alertDescription)
A description of the alert.
alertDescription
- A description of the alert.public String getAlertDescription()
A description of the alert.
public Alert withAlertDescription(String alertDescription)
A description of the alert.
alertDescription
- A description of the alert.public void setAlertArn(String alertArn)
The ARN of the alert.
alertArn
- The ARN of the alert.public String getAlertArn()
The ARN of the alert.
public Alert withAlertArn(String alertArn)
The ARN of the alert.
alertArn
- The ARN 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 Alert 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 setAlertName(String alertName)
The name of the alert.
alertName
- The name of the alert.public String getAlertName()
The name of the alert.
public Alert withAlertName(String alertName)
The name of the alert.
alertName
- The name of the alert.public void setAlertSensitivityThreshold(Integer alertSensitivityThreshold)
The minimum severity for an anomaly to trigger the alert.
alertSensitivityThreshold
- The minimum severity for an anomaly to trigger the alert.public Integer getAlertSensitivityThreshold()
The minimum severity for an anomaly to trigger the alert.
public Alert withAlertSensitivityThreshold(Integer alertSensitivityThreshold)
The minimum severity for an anomaly to trigger the alert.
alertSensitivityThreshold
- The minimum severity for an anomaly to trigger the alert.public void setAlertType(String alertType)
The type of the alert.
alertType
- The type of the alert.AlertType
public String getAlertType()
The type of the alert.
AlertType
public Alert withAlertType(String alertType)
The type of the alert.
alertType
- The type of the alert.AlertType
public Alert withAlertType(AlertType alertType)
The type of the alert.
alertType
- The type of the alert.AlertType
public void setAlertStatus(String alertStatus)
The status of the alert.
alertStatus
- The status of the alert.AlertStatus
public String getAlertStatus()
The status of the alert.
AlertStatus
public Alert withAlertStatus(String alertStatus)
The status of the alert.
alertStatus
- The status of the alert.AlertStatus
public Alert withAlertStatus(AlertStatus alertStatus)
The status of the alert.
alertStatus
- The status of the alert.AlertStatus
public void setLastModificationTime(Date lastModificationTime)
The time at which the alert was last modified.
lastModificationTime
- The time at which the alert was last modified.public Date getLastModificationTime()
The time at which the alert was last modified.
public Alert withLastModificationTime(Date lastModificationTime)
The time at which the alert was last modified.
lastModificationTime
- The time at which the alert was last modified.public void setCreationTime(Date creationTime)
The time at which the alert was created.
creationTime
- The time at which the alert was created.public Date getCreationTime()
The time at which the alert was created.
public Alert withCreationTime(Date creationTime)
The time at which the alert was created.
creationTime
- The time at which the alert was created.public void setAlertFilters(AlertFilters alertFilters)
The configuration of the alert filters, containing MetricList and DimensionFilter.
alertFilters
- The configuration of the alert filters, containing MetricList and DimensionFilter.public AlertFilters getAlertFilters()
The configuration of the alert filters, containing MetricList and DimensionFilter.
public Alert withAlertFilters(AlertFilters alertFilters)
The configuration of the alert filters, containing MetricList and DimensionFilter.
alertFilters
- The configuration of the alert filters, containing MetricList and DimensionFilter.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.