Interface ListHiTsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListHiTsResponse.Builder,,ListHiTsResponse> MTurkResponse.Builder,SdkBuilder<ListHiTsResponse.Builder,,ListHiTsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ListHiTsResponse
public static interface ListHiTsResponse.Builder
extends MTurkResponse.Builder, SdkPojo, CopyableBuilder<ListHiTsResponse.Builder,ListHiTsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionhiTs(Collection<HIT> hiTs) The list of HIT elements returned by the query.hiTs(Consumer<HIT.Builder>... hiTs) The list of HIT elements returned by the query.The list of HIT elements returned by the query.Sets the value of the NextToken property for this object.numResults(Integer numResults) The number of HITs on this page in the filtered results list, equivalent to the number of HITs being returned by this call.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.mturk.model.MTurkResponse.Builder
build, responseMetadata, responseMetadataMethods 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
-
nextToken
Sets the value of the NextToken property for this object.- Parameters:
nextToken- The new value for the NextToken property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
numResults
The number of HITs on this page in the filtered results list, equivalent to the number of HITs being returned by this call.
- Parameters:
numResults- The number of HITs on this page in the filtered results list, equivalent to the number of HITs being returned by this call.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hiTs
The list of HIT elements returned by the query.
- Parameters:
hiTs- The list of HIT elements returned by the query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hiTs
The list of HIT elements returned by the query.
- Parameters:
hiTs- The list of HIT elements returned by the query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hiTs
The list of HIT elements returned by the query.
This is a convenience method that creates an instance of theHIT.Builderavoiding the need to create one manually viaHIT.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tohiTs(List<HIT>).- Parameters:
hiTs- a consumer that will call methods onHIT.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-