@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateMonitorResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
| Constructor and Description |
|---|
CreateMonitorResult() |
| Modifier and Type | Method and Description |
|---|---|
CreateMonitorResult |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
CreateMonitorResult |
clearTagsEntries()
Removes all the entries added into Tags.
|
CreateMonitorResult |
clone() |
boolean |
equals(Object obj) |
Long |
getAggregationPeriod()
The number of seconds that metrics are aggregated by and sent to Amazon CloudWatch.
|
String |
getMonitorArn()
The ARN of the monitor.
|
String |
getMonitorName()
The name of the monitor.
|
String |
getState()
The state of the monitor.
|
Map<String,String> |
getTags()
The list of key-value pairs assigned to the monitor.
|
int |
hashCode() |
void |
setAggregationPeriod(Long aggregationPeriod)
The number of seconds that metrics are aggregated by and sent to Amazon CloudWatch.
|
void |
setMonitorArn(String monitorArn)
The ARN of the monitor.
|
void |
setMonitorName(String monitorName)
The name of the monitor.
|
void |
setState(String state)
The state of the monitor.
|
void |
setTags(Map<String,String> tags)
The list of key-value pairs assigned to the monitor.
|
String |
toString()
Returns a string representation of this object.
|
CreateMonitorResult |
withAggregationPeriod(Long aggregationPeriod)
The number of seconds that metrics are aggregated by and sent to Amazon CloudWatch.
|
CreateMonitorResult |
withMonitorArn(String monitorArn)
The ARN of the monitor.
|
CreateMonitorResult |
withMonitorName(String monitorName)
The name of the monitor.
|
CreateMonitorResult |
withState(MonitorState state)
The state of the monitor.
|
CreateMonitorResult |
withState(String state)
The state of the monitor.
|
CreateMonitorResult |
withTags(Map<String,String> tags)
The list of key-value pairs assigned to the monitor.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadatapublic void setMonitorArn(String monitorArn)
The ARN of the monitor.
monitorArn - The ARN of the monitor.public String getMonitorArn()
The ARN of the monitor.
public CreateMonitorResult withMonitorArn(String monitorArn)
The ARN of the monitor.
monitorArn - The ARN of the monitor.public void setMonitorName(String monitorName)
The name of the monitor.
monitorName - The name of the monitor.public String getMonitorName()
The name of the monitor.
public CreateMonitorResult withMonitorName(String monitorName)
The name of the monitor.
monitorName - The name of the monitor.public void setState(String state)
The state of the monitor.
state - The state of the monitor.MonitorStatepublic String getState()
The state of the monitor.
MonitorStatepublic CreateMonitorResult withState(String state)
The state of the monitor.
state - The state of the monitor.MonitorStatepublic CreateMonitorResult withState(MonitorState state)
The state of the monitor.
state - The state of the monitor.MonitorStatepublic void setAggregationPeriod(Long aggregationPeriod)
The number of seconds that metrics are aggregated by and sent to Amazon CloudWatch. This will be either
30 or 60.
aggregationPeriod - The number of seconds that metrics are aggregated by and sent to Amazon CloudWatch. This will be either
30 or 60.public Long getAggregationPeriod()
The number of seconds that metrics are aggregated by and sent to Amazon CloudWatch. This will be either
30 or 60.
30 or 60.public CreateMonitorResult withAggregationPeriod(Long aggregationPeriod)
The number of seconds that metrics are aggregated by and sent to Amazon CloudWatch. This will be either
30 or 60.
aggregationPeriod - The number of seconds that metrics are aggregated by and sent to Amazon CloudWatch. This will be either
30 or 60.public Map<String,String> getTags()
The list of key-value pairs assigned to the monitor.
public void setTags(Map<String,String> tags)
The list of key-value pairs assigned to the monitor.
tags - The list of key-value pairs assigned to the monitor.public CreateMonitorResult withTags(Map<String,String> tags)
The list of key-value pairs assigned to the monitor.
tags - The list of key-value pairs assigned to the monitor.public CreateMonitorResult addTagsEntry(String key, String value)
public CreateMonitorResult clearTagsEntries()
public String toString()
toString in class ObjectObject.toString()public CreateMonitorResult clone()