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, or the maximum pricing bucket when the query is charged per item within the query.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
copyMethods inherited from interface software.amazon.awssdk.services.geoplaces.model.GeoPlacesResponse.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
-
pricingBucket
The pricing bucket for which the query is charged at, or the maximum pricing bucket when the query is charged per item within the query.
For more information on pricing, please visit Amazon Location Service Pricing.
- Parameters:
pricingBucket- The pricing bucket for which the query is charged at, or the maximum pricing bucket when the query is charged per item within the query.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.Builderavoiding the need to create one manually viaGeocodeResultItem.builder().When the
Consumercompletes,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:
-