Interface GeocodeResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GeocodeResponse.Builder,
,GeocodeResponse> GeoPlacesResponse.Builder
,SdkBuilder<GeocodeResponse.Builder,
,GeocodeResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GeocodeResponse
@Mutable
@NotThreadSafe
public static interface GeocodeResponse.Builder
extends GeoPlacesResponse.Builder, SdkPojo, CopyableBuilder<GeocodeResponse.Builder,GeocodeResponse>
-
Method Summary
Modifier and TypeMethodDescriptionpricingBucket
(String pricingBucket) The pricing bucket for which the query is charged at.resultItems
(Collection<GeocodeResultItem> resultItems) List of places or results returned for a query.resultItems
(Consumer<GeocodeResultItem.Builder>... resultItems) List of places or results returned for a query.resultItems
(GeocodeResultItem... resultItems) List of places or results returned for a query.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.geoplaces.model.GeoPlacesResponse.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
-
pricingBucket
The pricing bucket for which the query is charged at.
For more information on pricing, please visit Amazon Location Service Pricing.
- Parameters:
pricingBucket
- The pricing bucket for which the query is charged at.For more information on pricing, please visit Amazon Location Service Pricing.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resultItems
List of places or results returned for a query.
- Parameters:
resultItems
- List of places or results returned for a query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resultItems
List of places or results returned for a query.
- Parameters:
resultItems
- List of places or results returned for a query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resultItems
List of places or results returned for a query.
This is a convenience method that creates an instance of theGeocodeResultItem.Builder
avoiding the need to create one manually viaGeocodeResultItem.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toresultItems(List<GeocodeResultItem>)
.- Parameters:
resultItems
- a consumer that will call methods onGeocodeResultItem.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-