Interface SearchPlaceIndexForPositionResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<SearchPlaceIndexForPositionResponse.Builder,
,SearchPlaceIndexForPositionResponse> LocationResponse.Builder
,SdkBuilder<SearchPlaceIndexForPositionResponse.Builder,
,SearchPlaceIndexForPositionResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
SearchPlaceIndexForPositionResponse
-
Method Summary
Modifier and TypeMethodDescriptionresults
(Collection<SearchForPositionResult> results) Returns a list of Places closest to the specified position.results
(Consumer<SearchForPositionResult.Builder>... results) Returns a list of Places closest to the specified position.results
(SearchForPositionResult... results) Returns a list of Places closest to the specified position.Contains a summary of the request.Contains a summary of the request.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.location.model.LocationResponse.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 Details
-
summary
Contains a summary of the request. Echoes the input values for
Position
,Language
,MaxResults
, and theDataSource
of the place index.- Parameters:
summary
- Contains a summary of the request. Echoes the input values forPosition
,Language
,MaxResults
, and theDataSource
of the place index.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
summary
default SearchPlaceIndexForPositionResponse.Builder summary(Consumer<SearchPlaceIndexForPositionSummary.Builder> summary) Contains a summary of the request. Echoes the input values for
This is a convenience method that creates an instance of thePosition
,Language
,MaxResults
, and theDataSource
of the place index.SearchPlaceIndexForPositionSummary.Builder
avoiding the need to create one manually viaSearchPlaceIndexForPositionSummary.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosummary(SearchPlaceIndexForPositionSummary)
.- Parameters:
summary
- a consumer that will call methods onSearchPlaceIndexForPositionSummary.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
results
Returns a list of Places closest to the specified position. Each result contains additional information about the Places returned.
- Parameters:
results
- Returns a list of Places closest to the specified position. Each result contains additional information about the Places returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
results
Returns a list of Places closest to the specified position. Each result contains additional information about the Places returned.
- Parameters:
results
- Returns a list of Places closest to the specified position. Each result contains additional information about the Places returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
results
SearchPlaceIndexForPositionResponse.Builder results(Consumer<SearchForPositionResult.Builder>... results) Returns a list of Places closest to the specified position. Each result contains additional information about the Places returned.
This is a convenience method that creates an instance of theSearchForPositionResult.Builder
avoiding the need to create one manually viaSearchForPositionResult.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toresults(List<SearchForPositionResult>)
.- Parameters:
results
- a consumer that will call methods onSearchForPositionResult.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-