Class CancelCommandRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.simplesystemsmanagement.model.CancelCommandRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class CancelCommandRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description CancelCommandRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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(String... instanceIds)
(Optional) A list of instance IDs on which you want to cancel the command.CancelCommandRequest
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
-
-
-
-
Method Detail
-
setCommandId
public void setCommandId(String commandId)
The ID of the command you want to cancel.
- Parameters:
commandId
- The ID of the command you want to cancel.
-
getCommandId
public String getCommandId()
The ID of the command you want to cancel.
- Returns:
- The ID of the command you want to cancel.
-
withCommandId
public CancelCommandRequest withCommandId(String commandId)
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
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.
- 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
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.
- 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
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)
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
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.
- 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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CancelCommandRequest 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:
Object.clone()
-
-