public class CancelCommandRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
CancelCommandRequest() |
| Modifier and Type | Method and Description |
|---|---|
CancelCommandRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getCommandId()
The ID of the command you want to cancel.
|
List<String> |
getInstanceIds()
(Optional) A list of instance IDs on which you want to cancel the
command.
|
int |
hashCode() |
void |
setCommandId(String commandId)
The ID of the command you want to cancel.
|
void |
setInstanceIds(Collection<String> instanceIds)
(Optional) A list of instance IDs on which you want to cancel the
command.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CancelCommandRequest |
withCommandId(String commandId)
The ID of the command you want to cancel.
|
CancelCommandRequest |
withInstanceIds(Collection<String> instanceIds)
(Optional) A list of instance IDs on which you want to cancel the
command.
|
CancelCommandRequest |
withInstanceIds(String... instanceIds)
(Optional) A list of instance IDs on which you want to cancel the
command.
|
getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic void setCommandId(String commandId)
commandId - The ID of the command you want to cancel.public String getCommandId()
public CancelCommandRequest withCommandId(String commandId)
commandId - The ID of the command you want to cancel.public List<String> getInstanceIds()
(Optional) A list of instance IDs on which you want to cancel the command. If not provided, the command is canceled on every instance on which it was requested.
public void setInstanceIds(Collection<String> instanceIds)
(Optional) A list of instance IDs on which you want to cancel the command. If not provided, the command is canceled on every instance on which it was requested.
instanceIds - (Optional) A list of instance IDs on which you want to cancel the
command. If not provided, the command is canceled on every
instance on which it was requested.public CancelCommandRequest withInstanceIds(String... instanceIds)
(Optional) A list of instance IDs on which you want to cancel the command. If not provided, the command is canceled on every instance on which it was requested.
NOTE: This method appends the values to the existing list (if
any). Use setInstanceIds(java.util.Collection) or
withInstanceIds(java.util.Collection) if you want to override
the existing values.
instanceIds - (Optional) A list of instance IDs on which you want to cancel the
command. If not provided, the command is canceled on every
instance on which it was requested.public CancelCommandRequest withInstanceIds(Collection<String> instanceIds)
(Optional) A list of instance IDs on which you want to cancel the command. If not provided, the command is canceled on every instance on which it was requested.
instanceIds - (Optional) A list of instance IDs on which you want to cancel the
command. If not provided, the command is canceled on every
instance on which it was requested.public String toString()
toString in class ObjectObject.toString()public CancelCommandRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.