public class CancelCommandRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
commandId
The ID of the command you want to cancel.
|
private SdkInternalList<java.lang.String> |
instanceIds
(Optional) A list of instance IDs on which you want to cancel the
command.
|
NOOP
Constructor and Description |
---|
CancelCommandRequest() |
Modifier and Type | Method and Description |
---|---|
CancelCommandRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCommandId()
The ID of the command you want to cancel.
|
java.util.List<java.lang.String> |
getInstanceIds()
(Optional) A list of instance IDs on which you want to cancel the
command.
|
int |
hashCode() |
void |
setCommandId(java.lang.String commandId)
The ID of the command you want to cancel.
|
void |
setInstanceIds(java.util.Collection<java.lang.String> instanceIds)
(Optional) A list of instance IDs on which you want to cancel the
command.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CancelCommandRequest |
withCommandId(java.lang.String commandId)
The ID of the command you want to cancel.
|
CancelCommandRequest |
withInstanceIds(java.util.Collection<java.lang.String> instanceIds)
(Optional) A list of instance IDs on which you want to cancel the
command.
|
CancelCommandRequest |
withInstanceIds(java.lang.String... instanceIds)
(Optional) A list of instance IDs on which you want to cancel the
command.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String commandId
The ID of the command you want to cancel.
private SdkInternalList<java.lang.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.
public void setCommandId(java.lang.String commandId)
The ID of the command you want to cancel.
commandId
- The ID of the command you want to cancel.public java.lang.String getCommandId()
The ID of the command you want to cancel.
public CancelCommandRequest withCommandId(java.lang.String commandId)
The ID of the command you want to cancel.
commandId
- The ID of the command you want to cancel.public java.util.List<java.lang.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(java.util.Collection<java.lang.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(java.lang.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(java.util.Collection<java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public CancelCommandRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()