Class CancelCommandRequest
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
The ID of the command you want to cancel.(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.toString()
Returns a string representation of this object; useful for testing and debugging.withCommandId
(String commandId) The ID of the command you want to cancel.withInstanceIds
(String... instanceIds) (Optional) A list of instance IDs on which you want to cancel the command.withInstanceIds
(Collection<String> instanceIds) (Optional) A list of instance IDs on which you want to cancel the command.Methods inherited from class com.amazonaws.AmazonWebServiceRequest
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
-
Constructor Details
-
CancelCommandRequest
public CancelCommandRequest()
-
-
Method Details
-
setCommandId
The ID of the command you want to cancel.
- Parameters:
commandId
- The ID of the command you want to cancel.
-
getCommandId
The ID of the command you want to cancel.
- Returns:
- The ID of the command you want to cancel.
-
withCommandId
The ID of the command you want to cancel.
- Parameters:
commandId
- The ID of the command you want to cancel.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Returns:
- (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.
-
setInstanceIds
(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.
- Parameters:
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.
-
withInstanceIds
(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)
orwithInstanceIds(java.util.Collection)
if you want to override the existing values.- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withInstanceIds
(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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
-