@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Alarm extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about an alarm.
Constructor and Description |
---|
Alarm() |
Modifier and Type | Method and Description |
---|---|
Alarm |
clone() |
boolean |
equals(Object obj) |
String |
getAlarmModelName()
The name of the alarm model.
|
String |
getAlarmModelVersion()
The version of the alarm model.
|
AlarmState |
getAlarmState()
Contains information about the current state of the alarm.
|
Date |
getCreationTime()
The time the alarm was created, in the Unix epoch format.
|
String |
getKeyValue()
The value of the key used as a filter to select only the alarms associated with the key.
|
Date |
getLastUpdateTime()
The time the alarm was last updated, in the Unix epoch format.
|
Integer |
getSeverity()
A non-negative integer that reflects the severity level of the alarm.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAlarmModelName(String alarmModelName)
The name of the alarm model.
|
void |
setAlarmModelVersion(String alarmModelVersion)
The version of the alarm model.
|
void |
setAlarmState(AlarmState alarmState)
Contains information about the current state of the alarm.
|
void |
setCreationTime(Date creationTime)
The time the alarm was created, in the Unix epoch format.
|
void |
setKeyValue(String keyValue)
The value of the key used as a filter to select only the alarms associated with the key.
|
void |
setLastUpdateTime(Date lastUpdateTime)
The time the alarm was last updated, in the Unix epoch format.
|
void |
setSeverity(Integer severity)
A non-negative integer that reflects the severity level of the alarm.
|
String |
toString()
Returns a string representation of this object.
|
Alarm |
withAlarmModelName(String alarmModelName)
The name of the alarm model.
|
Alarm |
withAlarmModelVersion(String alarmModelVersion)
The version of the alarm model.
|
Alarm |
withAlarmState(AlarmState alarmState)
Contains information about the current state of the alarm.
|
Alarm |
withCreationTime(Date creationTime)
The time the alarm was created, in the Unix epoch format.
|
Alarm |
withKeyValue(String keyValue)
The value of the key used as a filter to select only the alarms associated with the key.
|
Alarm |
withLastUpdateTime(Date lastUpdateTime)
The time the alarm was last updated, in the Unix epoch format.
|
Alarm |
withSeverity(Integer severity)
A non-negative integer that reflects the severity level of the alarm.
|
public void setAlarmModelName(String alarmModelName)
The name of the alarm model.
alarmModelName
- The name of the alarm model.public String getAlarmModelName()
The name of the alarm model.
public Alarm withAlarmModelName(String alarmModelName)
The name of the alarm model.
alarmModelName
- The name of the alarm model.public void setAlarmModelVersion(String alarmModelVersion)
The version of the alarm model.
alarmModelVersion
- The version of the alarm model.public String getAlarmModelVersion()
The version of the alarm model.
public Alarm withAlarmModelVersion(String alarmModelVersion)
The version of the alarm model.
alarmModelVersion
- The version of the alarm model.public void setKeyValue(String keyValue)
The value of the key used as a filter to select only the alarms associated with the key.
keyValue
- The value of the key used as a filter to select only the alarms associated with the key.public String getKeyValue()
The value of the key used as a filter to select only the alarms associated with the key.
public Alarm withKeyValue(String keyValue)
The value of the key used as a filter to select only the alarms associated with the key.
keyValue
- The value of the key used as a filter to select only the alarms associated with the key.public void setAlarmState(AlarmState alarmState)
Contains information about the current state of the alarm.
alarmState
- Contains information about the current state of the alarm.public AlarmState getAlarmState()
Contains information about the current state of the alarm.
public Alarm withAlarmState(AlarmState alarmState)
Contains information about the current state of the alarm.
alarmState
- Contains information about the current state of the alarm.public void setSeverity(Integer severity)
A non-negative integer that reflects the severity level of the alarm.
severity
- A non-negative integer that reflects the severity level of the alarm.public Integer getSeverity()
A non-negative integer that reflects the severity level of the alarm.
public Alarm withSeverity(Integer severity)
A non-negative integer that reflects the severity level of the alarm.
severity
- A non-negative integer that reflects the severity level of the alarm.public void setCreationTime(Date creationTime)
The time the alarm was created, in the Unix epoch format.
creationTime
- The time the alarm was created, in the Unix epoch format.public Date getCreationTime()
The time the alarm was created, in the Unix epoch format.
public Alarm withCreationTime(Date creationTime)
The time the alarm was created, in the Unix epoch format.
creationTime
- The time the alarm was created, in the Unix epoch format.public void setLastUpdateTime(Date lastUpdateTime)
The time the alarm was last updated, in the Unix epoch format.
lastUpdateTime
- The time the alarm was last updated, in the Unix epoch format.public Date getLastUpdateTime()
The time the alarm was last updated, in the Unix epoch format.
public Alarm withLastUpdateTime(Date lastUpdateTime)
The time the alarm was last updated, in the Unix epoch format.
lastUpdateTime
- The time the alarm was last updated, in the Unix epoch format.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.