@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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 object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getCommandId()
The ID of the command you want to cancel.
|
List<String> |
getInstanceIds()
(Optional) A list of managed node 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 managed node IDs on which you want to cancel the command.
|
String |
toString()
Returns a string representation of this object.
|
CancelCommandRequest |
withCommandId(String commandId)
The ID of the command you want to cancel.
|
CancelCommandRequest |
withInstanceIds(Collection<String> instanceIds)
(Optional) A list of managed node IDs on which you want to cancel the command.
|
CancelCommandRequest |
withInstanceIds(String... instanceIds)
(Optional) A list of managed node IDs on which you want to cancel the command.
|
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 setCommandId(String commandId)
The ID of the command you want to cancel.
commandId
- The ID of the command you want to cancel.public String getCommandId()
The ID of the command you want to cancel.
public CancelCommandRequest withCommandId(String commandId)
The ID of the command you want to cancel.
commandId
- The ID of the command you want to cancel.public List<String> getInstanceIds()
(Optional) A list of managed node IDs on which you want to cancel the command. If not provided, the command is canceled on every node on which it was requested.
public void setInstanceIds(Collection<String> instanceIds)
(Optional) A list of managed node IDs on which you want to cancel the command. If not provided, the command is canceled on every node on which it was requested.
instanceIds
- (Optional) A list of managed node IDs on which you want to cancel the command. If not provided, the
command is canceled on every node on which it was requested.public CancelCommandRequest withInstanceIds(String... instanceIds)
(Optional) A list of managed node IDs on which you want to cancel the command. If not provided, the command is canceled on every node 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 managed node IDs on which you want to cancel the command. If not provided, the
command is canceled on every node on which it was requested.public CancelCommandRequest withInstanceIds(Collection<String> instanceIds)
(Optional) A list of managed node IDs on which you want to cancel the command. If not provided, the command is canceled on every node on which it was requested.
instanceIds
- (Optional) A list of managed node IDs on which you want to cancel the command. If not provided, the
command is canceled on every node on which it was requested.public String toString()
toString
in class Object
Object.toString()
public CancelCommandRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()