Interface CreateTaskRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateTaskRequest.Builder,
,CreateTaskRequest> SdkBuilder<CreateTaskRequest.Builder,
,CreateTaskRequest> SdkPojo
,SdkRequest.Builder
,SnowDeviceManagementRequest.Builder
- Enclosing class:
CreateTaskRequest
public static interface CreateTaskRequest.Builder
extends SnowDeviceManagementRequest.Builder, SdkPojo, CopyableBuilder<CreateTaskRequest.Builder,CreateTaskRequest>
-
Method Summary
Modifier and TypeMethodDescriptionclientToken
(String clientToken) A token ensuring that the action is called only once with the specified details.default CreateTaskRequest.Builder
command
(Consumer<Command.Builder> command) The task to be performed.The task to be performed.description
(String description) A description of the task and its targets.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Optional metadata that you assign to a resource.A list of managed device IDs.targets
(Collection<String> targets) A list of managed device IDs.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.services.snowdevicemanagement.model.SnowDeviceManagementRequest.Builder
build
-
Method Details
-
clientToken
A token ensuring that the action is called only once with the specified details.
- Parameters:
clientToken
- A token ensuring that the action is called only once with the specified details.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
command
The task to be performed. Only one task is executed on a device at a time.
- Parameters:
command
- The task to be performed. Only one task is executed on a device at a time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
command
The task to be performed. Only one task is executed on a device at a time.
This is a convenience method that creates an instance of theCommand.Builder
avoiding the need to create one manually viaCommand.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocommand(Command)
.- Parameters:
command
- a consumer that will call methods onCommand.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
description
A description of the task and its targets.
- Parameters:
description
- A description of the task and its targets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Optional metadata that you assign to a resource. You can use tags to categorize a resource in different ways, such as by purpose, owner, or environment.
- Parameters:
tags
- Optional metadata that you assign to a resource. You can use tags to categorize a resource in different ways, such as by purpose, owner, or environment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targets
A list of managed device IDs.
- Parameters:
targets
- A list of managed device IDs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targets
A list of managed device IDs.
- Parameters:
targets
- A list of managed device IDs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateTaskRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateTaskRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-