CopyableBuilder<CancelCommandRequest.Builder,CancelCommandRequest>
, SdkBuilder<CancelCommandRequest.Builder,CancelCommandRequest>
public static interface CancelCommandRequest.Builder extends CopyableBuilder<CancelCommandRequest.Builder,CancelCommandRequest>
Modifier and Type | Method | Description |
---|---|---|
CancelCommandRequest.Builder |
commandId(String commandId) |
The ID of the command you want to cancel.
|
CancelCommandRequest.Builder |
instanceIds(String... instanceIds) |
(Optional) A list of instance IDs on which you want to cancel the command.
|
CancelCommandRequest.Builder |
instanceIds(Collection<String> instanceIds) |
(Optional) A list of instance IDs on which you want to cancel the command.
|
copy
apply, build
CancelCommandRequest.Builder commandId(String commandId)
The ID of the command you want to cancel.
commandId
- The ID of the command you want to cancel.CancelCommandRequest.Builder instanceIds(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.CancelCommandRequest.Builder instanceIds(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.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.