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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListHiTsResponse.BuilderhiTs(Collection<HIT> hiTs)The list of HIT elements returned by the query.ListHiTsResponse.BuilderhiTs(Consumer<HIT.Builder>... hiTs)The list of HIT elements returned by the query.ListHiTsResponse.BuilderhiTs(HIT... hiTs)The list of HIT elements returned by the query.ListHiTsResponse.BuildernextToken(String nextToken)Sets the value of the NextToken property for this object.ListHiTsResponse.BuildernumResults(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
copy
-
Methods inherited from interface software.amazon.awssdk.services.mturk.model.MTurkResponse.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 Detail
-
nextToken
ListHiTsResponse.Builder nextToken(String 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
ListHiTsResponse.Builder 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.
- 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
ListHiTsResponse.Builder hiTs(Collection<HIT> 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
ListHiTsResponse.Builder hiTs(HIT... 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
ListHiTsResponse.Builder hiTs(Consumer<HIT.Builder>... 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 to#hiTs(List.) - 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:
#hiTs(java.util.Collection)
-
-