@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateMonitorRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateMonitorRequest() |
Modifier and Type | Method and Description |
---|---|
CreateMonitorRequest |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
CreateMonitorRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
CreateMonitorRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Long |
getAggregationPeriod()
The time, in seconds, that metrics are aggregated and sent to Amazon CloudWatch.
|
String |
getClientToken()
Unique, case-sensitive identifier to ensure the idempotency of the request.
|
String |
getMonitorName()
The name identifying the monitor.
|
List<CreateMonitorProbeInput> |
getProbes()
Displays a list of all of the probes created for a monitor.
|
Map<String,String> |
getTags()
The list of key-value pairs created and assigned to the monitor.
|
int |
hashCode() |
void |
setAggregationPeriod(Long aggregationPeriod)
The time, in seconds, that metrics are aggregated and sent to Amazon CloudWatch.
|
void |
setClientToken(String clientToken)
Unique, case-sensitive identifier to ensure the idempotency of the request.
|
void |
setMonitorName(String monitorName)
The name identifying the monitor.
|
void |
setProbes(Collection<CreateMonitorProbeInput> probes)
Displays a list of all of the probes created for a monitor.
|
void |
setTags(Map<String,String> tags)
The list of key-value pairs created and assigned to the monitor.
|
String |
toString()
Returns a string representation of this object.
|
CreateMonitorRequest |
withAggregationPeriod(Long aggregationPeriod)
The time, in seconds, that metrics are aggregated and sent to Amazon CloudWatch.
|
CreateMonitorRequest |
withClientToken(String clientToken)
Unique, case-sensitive identifier to ensure the idempotency of the request.
|
CreateMonitorRequest |
withMonitorName(String monitorName)
The name identifying the monitor.
|
CreateMonitorRequest |
withProbes(Collection<CreateMonitorProbeInput> probes)
Displays a list of all of the probes created for a monitor.
|
CreateMonitorRequest |
withProbes(CreateMonitorProbeInput... probes)
Displays a list of all of the probes created for a monitor.
|
CreateMonitorRequest |
withTags(Map<String,String> tags)
The list of key-value pairs created and assigned to the monitor.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setMonitorName(String monitorName)
The name identifying the monitor. It can contain only letters, underscores (_), or dashes (-), and can be up to 200 characters.
monitorName
- The name identifying the monitor. It can contain only letters, underscores (_), or dashes (-), and can be
up to 200 characters.public String getMonitorName()
The name identifying the monitor. It can contain only letters, underscores (_), or dashes (-), and can be up to 200 characters.
public CreateMonitorRequest withMonitorName(String monitorName)
The name identifying the monitor. It can contain only letters, underscores (_), or dashes (-), and can be up to 200 characters.
monitorName
- The name identifying the monitor. It can contain only letters, underscores (_), or dashes (-), and can be
up to 200 characters.public List<CreateMonitorProbeInput> getProbes()
Displays a list of all of the probes created for a monitor.
public void setProbes(Collection<CreateMonitorProbeInput> probes)
Displays a list of all of the probes created for a monitor.
probes
- Displays a list of all of the probes created for a monitor.public CreateMonitorRequest withProbes(CreateMonitorProbeInput... probes)
Displays a list of all of the probes created for a monitor.
NOTE: This method appends the values to the existing list (if any). Use
setProbes(java.util.Collection)
or withProbes(java.util.Collection)
if you want to override the
existing values.
probes
- Displays a list of all of the probes created for a monitor.public CreateMonitorRequest withProbes(Collection<CreateMonitorProbeInput> probes)
Displays a list of all of the probes created for a monitor.
probes
- Displays a list of all of the probes created for a monitor.public void setAggregationPeriod(Long aggregationPeriod)
The time, in seconds, that metrics are aggregated and sent to Amazon CloudWatch. Valid values are either
30
or 60
. 60
is the default if no period is chosen.
aggregationPeriod
- The time, in seconds, that metrics are aggregated and sent to Amazon CloudWatch. Valid values are either
30
or 60
. 60
is the default if no period is chosen.public Long getAggregationPeriod()
The time, in seconds, that metrics are aggregated and sent to Amazon CloudWatch. Valid values are either
30
or 60
. 60
is the default if no period is chosen.
30
or 60
. 60
is the default if no period is chosen.public CreateMonitorRequest withAggregationPeriod(Long aggregationPeriod)
The time, in seconds, that metrics are aggregated and sent to Amazon CloudWatch. Valid values are either
30
or 60
. 60
is the default if no period is chosen.
aggregationPeriod
- The time, in seconds, that metrics are aggregated and sent to Amazon CloudWatch. Valid values are either
30
or 60
. 60
is the default if no period is chosen.public void setClientToken(String clientToken)
Unique, case-sensitive identifier to ensure the idempotency of the request. Only returned if a client token was provided in the request.
clientToken
- Unique, case-sensitive identifier to ensure the idempotency of the request. Only returned if a client
token was provided in the request.public String getClientToken()
Unique, case-sensitive identifier to ensure the idempotency of the request. Only returned if a client token was provided in the request.
public CreateMonitorRequest withClientToken(String clientToken)
Unique, case-sensitive identifier to ensure the idempotency of the request. Only returned if a client token was provided in the request.
clientToken
- Unique, case-sensitive identifier to ensure the idempotency of the request. Only returned if a client
token was provided in the request.public Map<String,String> getTags()
The list of key-value pairs created and assigned to the monitor.
public void setTags(Map<String,String> tags)
The list of key-value pairs created and assigned to the monitor.
tags
- The list of key-value pairs created and assigned to the monitor.public CreateMonitorRequest withTags(Map<String,String> tags)
The list of key-value pairs created and assigned to the monitor.
tags
- The list of key-value pairs created and assigned to the monitor.public CreateMonitorRequest addTagsEntry(String key, String value)
public CreateMonitorRequest clearTagsEntries()
public String toString()
toString
in class Object
Object.toString()
public CreateMonitorRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()