Interface SearchResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<SearchResponse.Builder,SearchResponse>,DataZoneResponse.Builder,SdkBuilder<SearchResponse.Builder,SearchResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- SearchResponse
public static interface SearchResponse.Builder extends DataZoneResponse.Builder, SdkPojo, CopyableBuilder<SearchResponse.Builder,SearchResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SearchResponse.Builderitems(Collection<SearchInventoryResultItem> items)The results of theSearchaction.SearchResponse.Builderitems(Consumer<SearchInventoryResultItem.Builder>... items)The results of theSearchaction.SearchResponse.Builderitems(SearchInventoryResultItem... items)The results of theSearchaction.SearchResponse.BuildernextToken(String nextToken)When the number of results is greater than the default value for theMaxResultsparameter, or if you explicitly specify a value forMaxResultsthat is less than the number of results, the response includes a pagination token namedNextToken.SearchResponse.BuildertotalMatchCount(Integer totalMatchCount)Total number of search results.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.datazone.model.DataZoneResponse.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
-
items
SearchResponse.Builder items(Collection<SearchInventoryResultItem> items)
The results of the
Searchaction.- Parameters:
items- The results of theSearchaction.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
items
SearchResponse.Builder items(SearchInventoryResultItem... items)
The results of the
Searchaction.- Parameters:
items- The results of theSearchaction.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
items
SearchResponse.Builder items(Consumer<SearchInventoryResultItem.Builder>... items)
The results of the
This is a convenience method that creates an instance of theSearchaction.SearchInventoryResultItem.Builderavoiding the need to create one manually viaSearchInventoryResultItem.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#items(List.) - Parameters:
items- a consumer that will call methods onSearchInventoryResultItem.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#items(java.util.Collection)
-
nextToken
SearchResponse.Builder nextToken(String nextToken)
When the number of results is greater than the default value for the
MaxResultsparameter, or if you explicitly specify a value forMaxResultsthat is less than the number of results, the response includes a pagination token namedNextToken. You can specify thisNextTokenvalue in a subsequent call toSearchto list the next set of results.- Parameters:
nextToken- When the number of results is greater than the default value for theMaxResultsparameter, or if you explicitly specify a value forMaxResultsthat is less than the number of results, the response includes a pagination token namedNextToken. You can specify thisNextTokenvalue in a subsequent call toSearchto list the next set of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
totalMatchCount
SearchResponse.Builder totalMatchCount(Integer totalMatchCount)
Total number of search results.
- Parameters:
totalMatchCount- Total number of search results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-