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
-
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 Detail
-
clientToken
CreateTaskRequest.Builder clientToken(String 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
CreateTaskRequest.Builder command(Command 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
default CreateTaskRequest.Builder command(Consumer<Command.Builder> 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.Builderavoiding the need to create one manually viaCommand.builder().When the
Consumercompletes,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:
command(Command)
-
description
CreateTaskRequest.Builder description(String 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
CreateTaskRequest.Builder tags(Map<String,String> 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
CreateTaskRequest.Builder targets(Collection<String> 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
CreateTaskRequest.Builder targets(String... 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)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateTaskRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-