@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Alarm extends Object implements Serializable, Cloneable, StructuredPojo
Describes an alarm.
An alarm is a way to monitor your Lightsail resource metrics. For more information, see Alarms in Amazon Lightsail.
| Constructor and Description |
|---|
Alarm() |
| Modifier and Type | Method and Description |
|---|---|
Alarm |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The Amazon Resource Name (ARN) of the alarm.
|
String |
getComparisonOperator()
The arithmetic operation used when comparing the specified statistic and threshold.
|
List<String> |
getContactProtocols()
The contact protocols for the alarm, such as
Email, SMS (text messaging), or both. |
Date |
getCreatedAt()
The timestamp when the alarm was created.
|
Integer |
getDatapointsToAlarm()
The number of data points that must not within the specified threshold to trigger the alarm.
|
Integer |
getEvaluationPeriods()
The number of periods over which data is compared to the specified threshold.
|
ResourceLocation |
getLocation()
An object that lists information about the location of the alarm.
|
String |
getMetricName()
The name of the metric associated with the alarm.
|
MonitoredResourceInfo |
getMonitoredResourceInfo()
An object that lists information about the resource monitored by the alarm.
|
String |
getName()
The name of the alarm.
|
Boolean |
getNotificationEnabled()
Indicates whether the alarm is enabled.
|
List<String> |
getNotificationTriggers()
The alarm states that trigger a notification.
|
Integer |
getPeriod()
The period, in seconds, over which the statistic is applied.
|
String |
getResourceType()
The Lightsail resource type of the alarm.
|
String |
getState()
The current state of the alarm.
|
String |
getStatistic()
The statistic for the metric associated with the alarm.
|
String |
getSupportCode()
The support code.
|
Double |
getThreshold()
The value against which the specified statistic is compared.
|
String |
getTreatMissingData()
Specifies how the alarm handles missing data points.
|
String |
getUnit()
The unit of the metric associated with the alarm.
|
int |
hashCode() |
Boolean |
isNotificationEnabled()
Indicates whether the alarm is enabled.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setArn(String arn)
The Amazon Resource Name (ARN) of the alarm.
|
void |
setComparisonOperator(String comparisonOperator)
The arithmetic operation used when comparing the specified statistic and threshold.
|
void |
setContactProtocols(Collection<String> contactProtocols)
The contact protocols for the alarm, such as
Email, SMS (text messaging), or both. |
void |
setCreatedAt(Date createdAt)
The timestamp when the alarm was created.
|
void |
setDatapointsToAlarm(Integer datapointsToAlarm)
The number of data points that must not within the specified threshold to trigger the alarm.
|
void |
setEvaluationPeriods(Integer evaluationPeriods)
The number of periods over which data is compared to the specified threshold.
|
void |
setLocation(ResourceLocation location)
An object that lists information about the location of the alarm.
|
void |
setMetricName(String metricName)
The name of the metric associated with the alarm.
|
void |
setMonitoredResourceInfo(MonitoredResourceInfo monitoredResourceInfo)
An object that lists information about the resource monitored by the alarm.
|
void |
setName(String name)
The name of the alarm.
|
void |
setNotificationEnabled(Boolean notificationEnabled)
Indicates whether the alarm is enabled.
|
void |
setNotificationTriggers(Collection<String> notificationTriggers)
The alarm states that trigger a notification.
|
void |
setPeriod(Integer period)
The period, in seconds, over which the statistic is applied.
|
void |
setResourceType(String resourceType)
The Lightsail resource type of the alarm.
|
void |
setState(String state)
The current state of the alarm.
|
void |
setStatistic(String statistic)
The statistic for the metric associated with the alarm.
|
void |
setSupportCode(String supportCode)
The support code.
|
void |
setThreshold(Double threshold)
The value against which the specified statistic is compared.
|
void |
setTreatMissingData(String treatMissingData)
Specifies how the alarm handles missing data points.
|
void |
setUnit(String unit)
The unit of the metric associated with the alarm.
|
String |
toString()
Returns a string representation of this object.
|
Alarm |
withArn(String arn)
The Amazon Resource Name (ARN) of the alarm.
|
Alarm |
withComparisonOperator(ComparisonOperator comparisonOperator)
The arithmetic operation used when comparing the specified statistic and threshold.
|
Alarm |
withComparisonOperator(String comparisonOperator)
The arithmetic operation used when comparing the specified statistic and threshold.
|
Alarm |
withContactProtocols(Collection<String> contactProtocols)
The contact protocols for the alarm, such as
Email, SMS (text messaging), or both. |
Alarm |
withContactProtocols(ContactProtocol... contactProtocols)
The contact protocols for the alarm, such as
Email, SMS (text messaging), or both. |
Alarm |
withContactProtocols(String... contactProtocols)
The contact protocols for the alarm, such as
Email, SMS (text messaging), or both. |
Alarm |
withCreatedAt(Date createdAt)
The timestamp when the alarm was created.
|
Alarm |
withDatapointsToAlarm(Integer datapointsToAlarm)
The number of data points that must not within the specified threshold to trigger the alarm.
|
Alarm |
withEvaluationPeriods(Integer evaluationPeriods)
The number of periods over which data is compared to the specified threshold.
|
Alarm |
withLocation(ResourceLocation location)
An object that lists information about the location of the alarm.
|
Alarm |
withMetricName(MetricName metricName)
The name of the metric associated with the alarm.
|
Alarm |
withMetricName(String metricName)
The name of the metric associated with the alarm.
|
Alarm |
withMonitoredResourceInfo(MonitoredResourceInfo monitoredResourceInfo)
An object that lists information about the resource monitored by the alarm.
|
Alarm |
withName(String name)
The name of the alarm.
|
Alarm |
withNotificationEnabled(Boolean notificationEnabled)
Indicates whether the alarm is enabled.
|
Alarm |
withNotificationTriggers(AlarmState... notificationTriggers)
The alarm states that trigger a notification.
|
Alarm |
withNotificationTriggers(Collection<String> notificationTriggers)
The alarm states that trigger a notification.
|
Alarm |
withNotificationTriggers(String... notificationTriggers)
The alarm states that trigger a notification.
|
Alarm |
withPeriod(Integer period)
The period, in seconds, over which the statistic is applied.
|
Alarm |
withResourceType(ResourceType resourceType)
The Lightsail resource type of the alarm.
|
Alarm |
withResourceType(String resourceType)
The Lightsail resource type of the alarm.
|
Alarm |
withState(AlarmState state)
The current state of the alarm.
|
Alarm |
withState(String state)
The current state of the alarm.
|
Alarm |
withStatistic(MetricStatistic statistic)
The statistic for the metric associated with the alarm.
|
Alarm |
withStatistic(String statistic)
The statistic for the metric associated with the alarm.
|
Alarm |
withSupportCode(String supportCode)
The support code.
|
Alarm |
withThreshold(Double threshold)
The value against which the specified statistic is compared.
|
Alarm |
withTreatMissingData(String treatMissingData)
Specifies how the alarm handles missing data points.
|
Alarm |
withTreatMissingData(TreatMissingData treatMissingData)
Specifies how the alarm handles missing data points.
|
Alarm |
withUnit(MetricUnit unit)
The unit of the metric associated with the alarm.
|
Alarm |
withUnit(String unit)
The unit of the metric associated with the alarm.
|
public void setName(String name)
The name of the alarm.
name - The name of the alarm.public String getName()
The name of the alarm.
public Alarm withName(String name)
The name of the alarm.
name - The name of the alarm.public void setArn(String arn)
The Amazon Resource Name (ARN) of the alarm.
arn - The Amazon Resource Name (ARN) of the alarm.public String getArn()
The Amazon Resource Name (ARN) of the alarm.
public Alarm withArn(String arn)
The Amazon Resource Name (ARN) of the alarm.
arn - The Amazon Resource Name (ARN) of the alarm.public void setCreatedAt(Date createdAt)
The timestamp when the alarm was created.
createdAt - The timestamp when the alarm was created.public Date getCreatedAt()
The timestamp when the alarm was created.
public Alarm withCreatedAt(Date createdAt)
The timestamp when the alarm was created.
createdAt - The timestamp when the alarm was created.public void setLocation(ResourceLocation location)
An object that lists information about the location of the alarm.
location - An object that lists information about the location of the alarm.public ResourceLocation getLocation()
An object that lists information about the location of the alarm.
public Alarm withLocation(ResourceLocation location)
An object that lists information about the location of the alarm.
location - An object that lists information about the location of the alarm.public void setResourceType(String resourceType)
The Lightsail resource type of the alarm.
resourceType - The Lightsail resource type of the alarm.ResourceTypepublic String getResourceType()
The Lightsail resource type of the alarm.
ResourceTypepublic Alarm withResourceType(String resourceType)
The Lightsail resource type of the alarm.
resourceType - The Lightsail resource type of the alarm.ResourceTypepublic Alarm withResourceType(ResourceType resourceType)
The Lightsail resource type of the alarm.
resourceType - The Lightsail resource type of the alarm.ResourceTypepublic void setSupportCode(String supportCode)
The support code. Include this code in your email to support when you have questions about your Lightsail alarm. This code enables our support team to look up your Lightsail information more easily.
supportCode - The support code. Include this code in your email to support when you have questions about your Lightsail
alarm. This code enables our support team to look up your Lightsail information more easily.public String getSupportCode()
The support code. Include this code in your email to support when you have questions about your Lightsail alarm. This code enables our support team to look up your Lightsail information more easily.
public Alarm withSupportCode(String supportCode)
The support code. Include this code in your email to support when you have questions about your Lightsail alarm. This code enables our support team to look up your Lightsail information more easily.
supportCode - The support code. Include this code in your email to support when you have questions about your Lightsail
alarm. This code enables our support team to look up your Lightsail information more easily.public void setMonitoredResourceInfo(MonitoredResourceInfo monitoredResourceInfo)
An object that lists information about the resource monitored by the alarm.
monitoredResourceInfo - An object that lists information about the resource monitored by the alarm.public MonitoredResourceInfo getMonitoredResourceInfo()
An object that lists information about the resource monitored by the alarm.
public Alarm withMonitoredResourceInfo(MonitoredResourceInfo monitoredResourceInfo)
An object that lists information about the resource monitored by the alarm.
monitoredResourceInfo - An object that lists information about the resource monitored by the alarm.public void setComparisonOperator(String comparisonOperator)
The arithmetic operation used when comparing the specified statistic and threshold.
comparisonOperator - The arithmetic operation used when comparing the specified statistic and threshold.ComparisonOperatorpublic String getComparisonOperator()
The arithmetic operation used when comparing the specified statistic and threshold.
ComparisonOperatorpublic Alarm withComparisonOperator(String comparisonOperator)
The arithmetic operation used when comparing the specified statistic and threshold.
comparisonOperator - The arithmetic operation used when comparing the specified statistic and threshold.ComparisonOperatorpublic Alarm withComparisonOperator(ComparisonOperator comparisonOperator)
The arithmetic operation used when comparing the specified statistic and threshold.
comparisonOperator - The arithmetic operation used when comparing the specified statistic and threshold.ComparisonOperatorpublic void setEvaluationPeriods(Integer evaluationPeriods)
The number of periods over which data is compared to the specified threshold.
evaluationPeriods - The number of periods over which data is compared to the specified threshold.public Integer getEvaluationPeriods()
The number of periods over which data is compared to the specified threshold.
public Alarm withEvaluationPeriods(Integer evaluationPeriods)
The number of periods over which data is compared to the specified threshold.
evaluationPeriods - The number of periods over which data is compared to the specified threshold.public void setPeriod(Integer period)
The period, in seconds, over which the statistic is applied.
period - The period, in seconds, over which the statistic is applied.public Integer getPeriod()
The period, in seconds, over which the statistic is applied.
public Alarm withPeriod(Integer period)
The period, in seconds, over which the statistic is applied.
period - The period, in seconds, over which the statistic is applied.public void setThreshold(Double threshold)
The value against which the specified statistic is compared.
threshold - The value against which the specified statistic is compared.public Double getThreshold()
The value against which the specified statistic is compared.
public Alarm withThreshold(Double threshold)
The value against which the specified statistic is compared.
threshold - The value against which the specified statistic is compared.public void setDatapointsToAlarm(Integer datapointsToAlarm)
The number of data points that must not within the specified threshold to trigger the alarm.
datapointsToAlarm - The number of data points that must not within the specified threshold to trigger the alarm.public Integer getDatapointsToAlarm()
The number of data points that must not within the specified threshold to trigger the alarm.
public Alarm withDatapointsToAlarm(Integer datapointsToAlarm)
The number of data points that must not within the specified threshold to trigger the alarm.
datapointsToAlarm - The number of data points that must not within the specified threshold to trigger the alarm.public void setTreatMissingData(String treatMissingData)
Specifies how the alarm handles missing data points.
An alarm can treat missing data in the following ways:
breaching - Assume the missing data is not within the threshold. Missing data counts towards the
number of times the metric is not within the threshold.
notBreaching - Assume the missing data is within the threshold. Missing data does not count towards
the number of times the metric is not within the threshold.
ignore - Ignore the missing data. Maintains the current alarm state.
missing - Missing data is treated as missing.
treatMissingData - Specifies how the alarm handles missing data points.
An alarm can treat missing data in the following ways:
breaching - Assume the missing data is not within the threshold. Missing data counts towards
the number of times the metric is not within the threshold.
notBreaching - Assume the missing data is within the threshold. Missing data does not count
towards the number of times the metric is not within the threshold.
ignore - Ignore the missing data. Maintains the current alarm state.
missing - Missing data is treated as missing.
TreatMissingDatapublic String getTreatMissingData()
Specifies how the alarm handles missing data points.
An alarm can treat missing data in the following ways:
breaching - Assume the missing data is not within the threshold. Missing data counts towards the
number of times the metric is not within the threshold.
notBreaching - Assume the missing data is within the threshold. Missing data does not count towards
the number of times the metric is not within the threshold.
ignore - Ignore the missing data. Maintains the current alarm state.
missing - Missing data is treated as missing.
An alarm can treat missing data in the following ways:
breaching - Assume the missing data is not within the threshold. Missing data counts towards
the number of times the metric is not within the threshold.
notBreaching - Assume the missing data is within the threshold. Missing data does not count
towards the number of times the metric is not within the threshold.
ignore - Ignore the missing data. Maintains the current alarm state.
missing - Missing data is treated as missing.
TreatMissingDatapublic Alarm withTreatMissingData(String treatMissingData)
Specifies how the alarm handles missing data points.
An alarm can treat missing data in the following ways:
breaching - Assume the missing data is not within the threshold. Missing data counts towards the
number of times the metric is not within the threshold.
notBreaching - Assume the missing data is within the threshold. Missing data does not count towards
the number of times the metric is not within the threshold.
ignore - Ignore the missing data. Maintains the current alarm state.
missing - Missing data is treated as missing.
treatMissingData - Specifies how the alarm handles missing data points.
An alarm can treat missing data in the following ways:
breaching - Assume the missing data is not within the threshold. Missing data counts towards
the number of times the metric is not within the threshold.
notBreaching - Assume the missing data is within the threshold. Missing data does not count
towards the number of times the metric is not within the threshold.
ignore - Ignore the missing data. Maintains the current alarm state.
missing - Missing data is treated as missing.
TreatMissingDatapublic Alarm withTreatMissingData(TreatMissingData treatMissingData)
Specifies how the alarm handles missing data points.
An alarm can treat missing data in the following ways:
breaching - Assume the missing data is not within the threshold. Missing data counts towards the
number of times the metric is not within the threshold.
notBreaching - Assume the missing data is within the threshold. Missing data does not count towards
the number of times the metric is not within the threshold.
ignore - Ignore the missing data. Maintains the current alarm state.
missing - Missing data is treated as missing.
treatMissingData - Specifies how the alarm handles missing data points.
An alarm can treat missing data in the following ways:
breaching - Assume the missing data is not within the threshold. Missing data counts towards
the number of times the metric is not within the threshold.
notBreaching - Assume the missing data is within the threshold. Missing data does not count
towards the number of times the metric is not within the threshold.
ignore - Ignore the missing data. Maintains the current alarm state.
missing - Missing data is treated as missing.
TreatMissingDatapublic void setStatistic(String statistic)
The statistic for the metric associated with the alarm.
The following statistics are available:
Minimum - The lowest value observed during the specified period. Use this value to determine low
volumes of activity for your application.
Maximum - The highest value observed during the specified period. Use this value to determine high
volumes of activity for your application.
Sum - All values submitted for the matching metric added together. You can use this statistic to
determine the total volume of a metric.
Average - The value of Sum / SampleCount during the specified period. By comparing this statistic
with the Minimum and Maximum values, you can determine the full scope of a metric and how close the average use
is to the Minimum and Maximum values. This comparison helps you to know when to increase or decrease your
resources.
SampleCount - The count, or number, of data points used for the statistical calculation.
statistic - The statistic for the metric associated with the alarm.
The following statistics are available:
Minimum - The lowest value observed during the specified period. Use this value to determine
low volumes of activity for your application.
Maximum - The highest value observed during the specified period. Use this value to determine
high volumes of activity for your application.
Sum - All values submitted for the matching metric added together. You can use this statistic
to determine the total volume of a metric.
Average - The value of Sum / SampleCount during the specified period. By comparing this
statistic with the Minimum and Maximum values, you can determine the full scope of a metric and how close
the average use is to the Minimum and Maximum values. This comparison helps you to know when to increase
or decrease your resources.
SampleCount - The count, or number, of data points used for the statistical calculation.
MetricStatisticpublic String getStatistic()
The statistic for the metric associated with the alarm.
The following statistics are available:
Minimum - The lowest value observed during the specified period. Use this value to determine low
volumes of activity for your application.
Maximum - The highest value observed during the specified period. Use this value to determine high
volumes of activity for your application.
Sum - All values submitted for the matching metric added together. You can use this statistic to
determine the total volume of a metric.
Average - The value of Sum / SampleCount during the specified period. By comparing this statistic
with the Minimum and Maximum values, you can determine the full scope of a metric and how close the average use
is to the Minimum and Maximum values. This comparison helps you to know when to increase or decrease your
resources.
SampleCount - The count, or number, of data points used for the statistical calculation.
The following statistics are available:
Minimum - The lowest value observed during the specified period. Use this value to determine
low volumes of activity for your application.
Maximum - The highest value observed during the specified period. Use this value to
determine high volumes of activity for your application.
Sum - All values submitted for the matching metric added together. You can use this
statistic to determine the total volume of a metric.
Average - The value of Sum / SampleCount during the specified period. By comparing this
statistic with the Minimum and Maximum values, you can determine the full scope of a metric and how close
the average use is to the Minimum and Maximum values. This comparison helps you to know when to increase
or decrease your resources.
SampleCount - The count, or number, of data points used for the statistical calculation.
MetricStatisticpublic Alarm withStatistic(String statistic)
The statistic for the metric associated with the alarm.
The following statistics are available:
Minimum - The lowest value observed during the specified period. Use this value to determine low
volumes of activity for your application.
Maximum - The highest value observed during the specified period. Use this value to determine high
volumes of activity for your application.
Sum - All values submitted for the matching metric added together. You can use this statistic to
determine the total volume of a metric.
Average - The value of Sum / SampleCount during the specified period. By comparing this statistic
with the Minimum and Maximum values, you can determine the full scope of a metric and how close the average use
is to the Minimum and Maximum values. This comparison helps you to know when to increase or decrease your
resources.
SampleCount - The count, or number, of data points used for the statistical calculation.
statistic - The statistic for the metric associated with the alarm.
The following statistics are available:
Minimum - The lowest value observed during the specified period. Use this value to determine
low volumes of activity for your application.
Maximum - The highest value observed during the specified period. Use this value to determine
high volumes of activity for your application.
Sum - All values submitted for the matching metric added together. You can use this statistic
to determine the total volume of a metric.
Average - The value of Sum / SampleCount during the specified period. By comparing this
statistic with the Minimum and Maximum values, you can determine the full scope of a metric and how close
the average use is to the Minimum and Maximum values. This comparison helps you to know when to increase
or decrease your resources.
SampleCount - The count, or number, of data points used for the statistical calculation.
MetricStatisticpublic Alarm withStatistic(MetricStatistic statistic)
The statistic for the metric associated with the alarm.
The following statistics are available:
Minimum - The lowest value observed during the specified period. Use this value to determine low
volumes of activity for your application.
Maximum - The highest value observed during the specified period. Use this value to determine high
volumes of activity for your application.
Sum - All values submitted for the matching metric added together. You can use this statistic to
determine the total volume of a metric.
Average - The value of Sum / SampleCount during the specified period. By comparing this statistic
with the Minimum and Maximum values, you can determine the full scope of a metric and how close the average use
is to the Minimum and Maximum values. This comparison helps you to know when to increase or decrease your
resources.
SampleCount - The count, or number, of data points used for the statistical calculation.
statistic - The statistic for the metric associated with the alarm.
The following statistics are available:
Minimum - The lowest value observed during the specified period. Use this value to determine
low volumes of activity for your application.
Maximum - The highest value observed during the specified period. Use this value to determine
high volumes of activity for your application.
Sum - All values submitted for the matching metric added together. You can use this statistic
to determine the total volume of a metric.
Average - The value of Sum / SampleCount during the specified period. By comparing this
statistic with the Minimum and Maximum values, you can determine the full scope of a metric and how close
the average use is to the Minimum and Maximum values. This comparison helps you to know when to increase
or decrease your resources.
SampleCount - The count, or number, of data points used for the statistical calculation.
MetricStatisticpublic void setMetricName(String metricName)
The name of the metric associated with the alarm.
metricName - The name of the metric associated with the alarm.MetricNamepublic String getMetricName()
The name of the metric associated with the alarm.
MetricNamepublic Alarm withMetricName(String metricName)
The name of the metric associated with the alarm.
metricName - The name of the metric associated with the alarm.MetricNamepublic Alarm withMetricName(MetricName metricName)
The name of the metric associated with the alarm.
metricName - The name of the metric associated with the alarm.MetricNamepublic void setState(String state)
The current state of the alarm.
An alarm has the following possible states:
ALARM - The metric is outside of the defined threshold.
INSUFFICIENT_DATA - The alarm has just started, the metric is not available, or not enough data is
available for the metric to determine the alarm state.
OK - The metric is within the defined threshold.
state - The current state of the alarm.
An alarm has the following possible states:
ALARM - The metric is outside of the defined threshold.
INSUFFICIENT_DATA - The alarm has just started, the metric is not available, or not enough
data is available for the metric to determine the alarm state.
OK - The metric is within the defined threshold.
AlarmStatepublic String getState()
The current state of the alarm.
An alarm has the following possible states:
ALARM - The metric is outside of the defined threshold.
INSUFFICIENT_DATA - The alarm has just started, the metric is not available, or not enough data is
available for the metric to determine the alarm state.
OK - The metric is within the defined threshold.
An alarm has the following possible states:
ALARM - The metric is outside of the defined threshold.
INSUFFICIENT_DATA - The alarm has just started, the metric is not available, or not enough
data is available for the metric to determine the alarm state.
OK - The metric is within the defined threshold.
AlarmStatepublic Alarm withState(String state)
The current state of the alarm.
An alarm has the following possible states:
ALARM - The metric is outside of the defined threshold.
INSUFFICIENT_DATA - The alarm has just started, the metric is not available, or not enough data is
available for the metric to determine the alarm state.
OK - The metric is within the defined threshold.
state - The current state of the alarm.
An alarm has the following possible states:
ALARM - The metric is outside of the defined threshold.
INSUFFICIENT_DATA - The alarm has just started, the metric is not available, or not enough
data is available for the metric to determine the alarm state.
OK - The metric is within the defined threshold.
AlarmStatepublic Alarm withState(AlarmState state)
The current state of the alarm.
An alarm has the following possible states:
ALARM - The metric is outside of the defined threshold.
INSUFFICIENT_DATA - The alarm has just started, the metric is not available, or not enough data is
available for the metric to determine the alarm state.
OK - The metric is within the defined threshold.
state - The current state of the alarm.
An alarm has the following possible states:
ALARM - The metric is outside of the defined threshold.
INSUFFICIENT_DATA - The alarm has just started, the metric is not available, or not enough
data is available for the metric to determine the alarm state.
OK - The metric is within the defined threshold.
AlarmStatepublic void setUnit(String unit)
The unit of the metric associated with the alarm.
unit - The unit of the metric associated with the alarm.MetricUnitpublic String getUnit()
The unit of the metric associated with the alarm.
MetricUnitpublic Alarm withUnit(String unit)
The unit of the metric associated with the alarm.
unit - The unit of the metric associated with the alarm.MetricUnitpublic Alarm withUnit(MetricUnit unit)
The unit of the metric associated with the alarm.
unit - The unit of the metric associated with the alarm.MetricUnitpublic List<String> getContactProtocols()
The contact protocols for the alarm, such as Email, SMS (text messaging), or both.
Email, SMS (text messaging), or
both.ContactProtocolpublic void setContactProtocols(Collection<String> contactProtocols)
The contact protocols for the alarm, such as Email, SMS (text messaging), or both.
contactProtocols - The contact protocols for the alarm, such as Email, SMS (text messaging), or
both.ContactProtocolpublic Alarm withContactProtocols(String... contactProtocols)
The contact protocols for the alarm, such as Email, SMS (text messaging), or both.
NOTE: This method appends the values to the existing list (if any). Use
setContactProtocols(java.util.Collection) or withContactProtocols(java.util.Collection) if you
want to override the existing values.
contactProtocols - The contact protocols for the alarm, such as Email, SMS (text messaging), or
both.ContactProtocolpublic Alarm withContactProtocols(Collection<String> contactProtocols)
The contact protocols for the alarm, such as Email, SMS (text messaging), or both.
contactProtocols - The contact protocols for the alarm, such as Email, SMS (text messaging), or
both.ContactProtocolpublic Alarm withContactProtocols(ContactProtocol... contactProtocols)
The contact protocols for the alarm, such as Email, SMS (text messaging), or both.
contactProtocols - The contact protocols for the alarm, such as Email, SMS (text messaging), or
both.ContactProtocolpublic List<String> getNotificationTriggers()
The alarm states that trigger a notification.
AlarmStatepublic void setNotificationTriggers(Collection<String> notificationTriggers)
The alarm states that trigger a notification.
notificationTriggers - The alarm states that trigger a notification.AlarmStatepublic Alarm withNotificationTriggers(String... notificationTriggers)
The alarm states that trigger a notification.
NOTE: This method appends the values to the existing list (if any). Use
setNotificationTriggers(java.util.Collection) or withNotificationTriggers(java.util.Collection)
if you want to override the existing values.
notificationTriggers - The alarm states that trigger a notification.AlarmStatepublic Alarm withNotificationTriggers(Collection<String> notificationTriggers)
The alarm states that trigger a notification.
notificationTriggers - The alarm states that trigger a notification.AlarmStatepublic Alarm withNotificationTriggers(AlarmState... notificationTriggers)
The alarm states that trigger a notification.
notificationTriggers - The alarm states that trigger a notification.AlarmStatepublic void setNotificationEnabled(Boolean notificationEnabled)
Indicates whether the alarm is enabled.
notificationEnabled - Indicates whether the alarm is enabled.public Boolean getNotificationEnabled()
Indicates whether the alarm is enabled.
public Alarm withNotificationEnabled(Boolean notificationEnabled)
Indicates whether the alarm is enabled.
notificationEnabled - Indicates whether the alarm is enabled.public Boolean isNotificationEnabled()
Indicates whether the alarm is enabled.
public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.