Interface ListTasksResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ListTasksResponse.Builder,
,ListTasksResponse> DataSyncResponse.Builder
,SdkBuilder<ListTasksResponse.Builder,
,ListTasksResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListTasksResponse
public static interface ListTasksResponse.Builder
extends DataSyncResponse.Builder, SdkPojo, CopyableBuilder<ListTasksResponse.Builder,ListTasksResponse>
-
Method Summary
Modifier and TypeMethodDescriptionAn opaque string that indicates the position at which to begin returning the next list of tasks.tasks
(Collection<TaskListEntry> tasks) A list of all the tasks that are returned.tasks
(Consumer<TaskListEntry.Builder>... tasks) A list of all the tasks that are returned.tasks
(TaskListEntry... tasks) A list of all the tasks that are returned.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.datasync.model.DataSyncResponse.Builder
build, responseMetadata, responseMetadata
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.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
tasks
A list of all the tasks that are returned.
- Parameters:
tasks
- A list of all the tasks that are returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tasks
A list of all the tasks that are returned.
- Parameters:
tasks
- A list of all the tasks that are returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tasks
A list of all the tasks that are returned.
This is a convenience method that creates an instance of theTaskListEntry.Builder
avoiding the need to create one manually viaTaskListEntry.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totasks(List<TaskListEntry>)
.- Parameters:
tasks
- a consumer that will call methods onTaskListEntry.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
An opaque string that indicates the position at which to begin returning the next list of tasks.
- Parameters:
nextToken
- An opaque string that indicates the position at which to begin returning the next list of tasks.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-