Interface CreateTaskRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateTaskRequest.Builder,,CreateTaskRequest> IoTSiteWiseRequest.Builder,SdkBuilder<CreateTaskRequest.Builder,,CreateTaskRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateTaskRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.description(String description) A description of the task.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.A list of key-value pairs that contain metadata for the task.default CreateTaskRequest.BuildertaskConfiguration(Consumer<TaskConfiguration.Builder> taskConfiguration) The task execution configuration.taskConfiguration(TaskConfiguration taskConfiguration) The task execution configuration.The name of the task to create.workspaceName(String workspaceName) The name of the workspace.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.iotsitewise.model.IoTSiteWiseRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
workspaceName
The name of the workspace.
- Parameters:
workspaceName- The name of the workspace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
taskName
The name of the task to create. Must be unique within the workspace.
- Parameters:
taskName- The name of the task to create. Must be unique within the workspace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A description of the task.
- Parameters:
description- A description of the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
taskConfiguration
The task execution configuration. Specify a containerTaskConfiguration for custom container workloads.
- Parameters:
taskConfiguration- The task execution configuration. Specify a containerTaskConfiguration for custom container workloads.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
taskConfiguration
default CreateTaskRequest.Builder taskConfiguration(Consumer<TaskConfiguration.Builder> taskConfiguration) The task execution configuration. Specify a containerTaskConfiguration for custom container workloads.
This is a convenience method that creates an instance of theTaskConfiguration.Builderavoiding the need to create one manually viaTaskConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totaskConfiguration(TaskConfiguration).- Parameters:
taskConfiguration- a consumer that will call methods onTaskConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
A list of key-value pairs that contain metadata for the task. For more information, see Tagging your AWS IoT SiteWise resources in the AWS IoT SiteWise User Guide.
- Parameters:
tags- A list of key-value pairs that contain metadata for the task. For more information, see Tagging your AWS IoT SiteWise resources in the AWS IoT SiteWise User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you retry a request that completed successfully using the same client token, the server returns the cached result from the original successful request without performing the operation again.
- Parameters:
clientToken- A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you retry a request that completed successfully using the same client token, the server returns the cached result from the original successful request without performing the operation again.- 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-