Interface SearchTasksResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<SearchTasksResponse.Builder,,SearchTasksResponse> DeadlineResponse.Builder,SdkBuilder<SearchTasksResponse.Builder,,SearchTasksResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
SearchTasksResponse
public static interface SearchTasksResponse.Builder
extends DeadlineResponse.Builder, SdkPojo, CopyableBuilder<SearchTasksResponse.Builder,SearchTasksResponse>
-
Method Summary
Modifier and TypeMethodDescriptionnextItemOffset(Integer nextItemOffset) The next incremental starting point after the defineditemOffset.tasks(Collection<TaskSearchSummary> tasks) Tasks in the search.tasks(Consumer<TaskSearchSummary.Builder>... tasks) Tasks in the search.tasks(TaskSearchSummary... tasks) Tasks in the search.totalResults(Integer totalResults) The total number of results in the search.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.deadline.model.DeadlineResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
tasks
Tasks in the search.
- Parameters:
tasks- Tasks in the search.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tasks
Tasks in the search.
- Parameters:
tasks- Tasks in the search.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tasks
Tasks in the search.
This is a convenience method that creates an instance of theTaskSearchSummary.Builderavoiding the need to create one manually viaTaskSearchSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totasks(List<TaskSearchSummary>).- Parameters:
tasks- a consumer that will call methods onTaskSearchSummary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextItemOffset
The next incremental starting point after the defined
itemOffset.- Parameters:
nextItemOffset- The next incremental starting point after the defineditemOffset.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
totalResults
The total number of results in the search.
- Parameters:
totalResults- The total number of results in the search.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-