Interface UpdateTaskRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<UpdateTaskRequest.Builder,,UpdateTaskRequest> IoTSiteWiseRequest.Builder,SdkBuilder<UpdateTaskRequest.Builder,,UpdateTaskRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
UpdateTaskRequest
@Mutable
@NotThreadSafe
public static interface UpdateTaskRequest.Builder
extends IoTSiteWiseRequest.Builder, SdkPojo, CopyableBuilder<UpdateTaskRequest.Builder,UpdateTaskRequest>
-
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) A new description for the task.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.default UpdateTaskRequest.BuildertaskConfiguration(Consumer<TaskConfiguration.Builder> taskConfiguration) The updated task execution configuration.taskConfiguration(TaskConfiguration taskConfiguration) The updated task execution configuration.The name of the task to update.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 update.
- Parameters:
taskName- The name of the task to update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A new description for the task.
- Parameters:
description- A new description for the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
taskConfiguration
The updated task execution configuration.
- Parameters:
taskConfiguration- The updated task execution configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
taskConfiguration
default UpdateTaskRequest.Builder taskConfiguration(Consumer<TaskConfiguration.Builder> taskConfiguration) The updated task execution configuration.
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:
-
overrideConfiguration
UpdateTaskRequest.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
UpdateTaskRequest.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.
-