Interface ListTasksResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,ContextResponse.Builder,CopyableBuilder<ListTasksResponse.Builder,,ListTasksResponse> SdkBuilder<ListTasksResponse.Builder,,ListTasksResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ListTasksResponse
@Mutable
@NotThreadSafe
public static interface ListTasksResponse.Builder
extends ContextResponse.Builder, SdkPojo, CopyableBuilder<ListTasksResponse.Builder,ListTasksResponse>
-
Method Summary
Modifier and TypeMethodDescriptionitems(Collection<TaskSummary> items) The tasks.items(Consumer<TaskSummary.Builder>... items) The tasks.items(TaskSummary... items) The tasks.The token for the next page of results.Methods inherited from interface software.amazon.awssdk.services.context.model.ContextResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
items
The tasks. Always present, and empty when there are none.
- Parameters:
items- The tasks. Always present, and empty when there are none.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
items
The tasks. Always present, and empty when there are none.
- Parameters:
items- The tasks. Always present, and empty when there are none.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
items
The tasks. Always present, and empty when there are none.
This is a convenience method that creates an instance of theTaskSummary.Builderavoiding the need to create one manually viaTaskSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toitems(List<TaskSummary>).- Parameters:
items- a consumer that will call methods onTaskSummary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
The token for the next page of results. Absent on the last page.
- Parameters:
nextToken- The token for the next page of results. Absent on the last page.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-