Interface SearchJobsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<SearchJobsResponse.Builder,
,SearchJobsResponse> DeadlineResponse.Builder
,SdkBuilder<SearchJobsResponse.Builder,
,SearchJobsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
SearchJobsResponse
@Mutable
@NotThreadSafe
public static interface SearchJobsResponse.Builder
extends DeadlineResponse.Builder, SdkPojo, CopyableBuilder<SearchJobsResponse.Builder,SearchJobsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionjobs
(Collection<JobSearchSummary> jobs) The jobs in the search.jobs
(Consumer<JobSearchSummary.Builder>... jobs) The jobs in the search.jobs
(JobSearchSummary... jobs) The jobs in the search.nextItemOffset
(Integer nextItemOffset) The next incremental starting point after the defineditemOffset
.totalResults
(Integer totalResults) The total number of results in the search.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.deadline.model.DeadlineResponse.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, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
jobs
The jobs in the search.
- Parameters:
jobs
- The jobs in the search.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
jobs
The jobs in the search.
- Parameters:
jobs
- The jobs in the search.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
jobs
The jobs in the search.
This is a convenience method that creates an instance of theJobSearchSummary.Builder
avoiding the need to create one manually viaJobSearchSummary.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tojobs(List<JobSearchSummary>)
.- Parameters:
jobs
- a consumer that will call methods onJobSearchSummary.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.
-