@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AlarmContributor extends Object implements Serializable, Cloneable, StructuredPojo
Represents an individual contributor to a multi-timeseries alarm, containing information about a specific time series and its contribution to the alarm's state.
| Constructor and Description |
|---|
AlarmContributor() |
| Modifier and Type | Method and Description |
|---|---|
AlarmContributor |
addContributorAttributesEntry(String key,
String value)
Add a single ContributorAttributes entry
|
AlarmContributor |
clearContributorAttributesEntries()
Removes all the entries added into ContributorAttributes.
|
AlarmContributor |
clone() |
boolean |
equals(Object obj) |
Map<String,String> |
getContributorAttributes()
A map of attributes that describe the contributor, such as metric dimensions and other identifying
characteristics.
|
String |
getContributorId()
The unique identifier for this alarm contributor.
|
String |
getStateReason()
An explanation for the contributor's current state, providing context about why it is in its current condition.
|
Date |
getStateTransitionedTimestamp()
The timestamp when the contributor last transitioned to its current state.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setContributorAttributes(Map<String,String> contributorAttributes)
A map of attributes that describe the contributor, such as metric dimensions and other identifying
characteristics.
|
void |
setContributorId(String contributorId)
The unique identifier for this alarm contributor.
|
void |
setStateReason(String stateReason)
An explanation for the contributor's current state, providing context about why it is in its current condition.
|
void |
setStateTransitionedTimestamp(Date stateTransitionedTimestamp)
The timestamp when the contributor last transitioned to its current state.
|
String |
toString()
Returns a string representation of this object.
|
AlarmContributor |
withContributorAttributes(Map<String,String> contributorAttributes)
A map of attributes that describe the contributor, such as metric dimensions and other identifying
characteristics.
|
AlarmContributor |
withContributorId(String contributorId)
The unique identifier for this alarm contributor.
|
AlarmContributor |
withStateReason(String stateReason)
An explanation for the contributor's current state, providing context about why it is in its current condition.
|
AlarmContributor |
withStateTransitionedTimestamp(Date stateTransitionedTimestamp)
The timestamp when the contributor last transitioned to its current state.
|
public void setContributorId(String contributorId)
The unique identifier for this alarm contributor.
contributorId - The unique identifier for this alarm contributor.public String getContributorId()
The unique identifier for this alarm contributor.
public AlarmContributor withContributorId(String contributorId)
The unique identifier for this alarm contributor.
contributorId - The unique identifier for this alarm contributor.public Map<String,String> getContributorAttributes()
A map of attributes that describe the contributor, such as metric dimensions and other identifying characteristics.
public void setContributorAttributes(Map<String,String> contributorAttributes)
A map of attributes that describe the contributor, such as metric dimensions and other identifying characteristics.
contributorAttributes - A map of attributes that describe the contributor, such as metric dimensions and other identifying
characteristics.public AlarmContributor withContributorAttributes(Map<String,String> contributorAttributes)
A map of attributes that describe the contributor, such as metric dimensions and other identifying characteristics.
contributorAttributes - A map of attributes that describe the contributor, such as metric dimensions and other identifying
characteristics.public AlarmContributor addContributorAttributesEntry(String key, String value)
public AlarmContributor clearContributorAttributesEntries()
public void setStateReason(String stateReason)
An explanation for the contributor's current state, providing context about why it is in its current condition.
stateReason - An explanation for the contributor's current state, providing context about why it is in its current
condition.public String getStateReason()
An explanation for the contributor's current state, providing context about why it is in its current condition.
public AlarmContributor withStateReason(String stateReason)
An explanation for the contributor's current state, providing context about why it is in its current condition.
stateReason - An explanation for the contributor's current state, providing context about why it is in its current
condition.public void setStateTransitionedTimestamp(Date stateTransitionedTimestamp)
The timestamp when the contributor last transitioned to its current state.
stateTransitionedTimestamp - The timestamp when the contributor last transitioned to its current state.public Date getStateTransitionedTimestamp()
The timestamp when the contributor last transitioned to its current state.
public AlarmContributor withStateTransitionedTimestamp(Date stateTransitionedTimestamp)
The timestamp when the contributor last transitioned to its current state.
stateTransitionedTimestamp - The timestamp when the contributor last transitioned to its current state.public String toString()
toString in class ObjectObject.toString()public AlarmContributor clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.