Interface CalculateRoutesResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<CalculateRoutesResponse.Builder,CalculateRoutesResponse>,GeoRoutesResponse.Builder,SdkBuilder<CalculateRoutesResponse.Builder,CalculateRoutesResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- CalculateRoutesResponse
public static interface CalculateRoutesResponse.Builder extends GeoRoutesResponse.Builder, SdkPojo, CopyableBuilder<CalculateRoutesResponse.Builder,CalculateRoutesResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CalculateRoutesResponse.BuilderlegGeometryFormat(String legGeometryFormat)Specifies the format of the geometry returned for each leg of the route.CalculateRoutesResponse.BuilderlegGeometryFormat(GeometryFormat legGeometryFormat)Specifies the format of the geometry returned for each leg of the route.CalculateRoutesResponse.Buildernotices(Collection<RouteResponseNotice> notices)Notices are additional information returned that indicate issues that occurred during route calculation.CalculateRoutesResponse.Buildernotices(Consumer<RouteResponseNotice.Builder>... notices)Notices are additional information returned that indicate issues that occurred during route calculation.CalculateRoutesResponse.Buildernotices(RouteResponseNotice... notices)Notices are additional information returned that indicate issues that occurred during route calculation.CalculateRoutesResponse.BuilderpricingBucket(String pricingBucket)The pricing bucket for which the query is charged at.CalculateRoutesResponse.Builderroutes(Collection<Route> routes)The path from the origin to the destination.CalculateRoutesResponse.Builderroutes(Consumer<Route.Builder>... routes)The path from the origin to the destination.CalculateRoutesResponse.Builderroutes(Route... routes)The path from the origin to the destination.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.georoutes.model.GeoRoutesResponse.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 Detail
-
legGeometryFormat
CalculateRoutesResponse.Builder legGeometryFormat(String legGeometryFormat)
Specifies the format of the geometry returned for each leg of the route.
- Parameters:
legGeometryFormat- Specifies the format of the geometry returned for each leg of the route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
GeometryFormat,GeometryFormat
-
legGeometryFormat
CalculateRoutesResponse.Builder legGeometryFormat(GeometryFormat legGeometryFormat)
Specifies the format of the geometry returned for each leg of the route.
- Parameters:
legGeometryFormat- Specifies the format of the geometry returned for each leg of the route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
GeometryFormat,GeometryFormat
-
notices
CalculateRoutesResponse.Builder notices(Collection<RouteResponseNotice> notices)
Notices are additional information returned that indicate issues that occurred during route calculation.
- Parameters:
notices- Notices are additional information returned that indicate issues that occurred during route calculation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notices
CalculateRoutesResponse.Builder notices(RouteResponseNotice... notices)
Notices are additional information returned that indicate issues that occurred during route calculation.
- Parameters:
notices- Notices are additional information returned that indicate issues that occurred during route calculation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notices
CalculateRoutesResponse.Builder notices(Consumer<RouteResponseNotice.Builder>... notices)
Notices are additional information returned that indicate issues that occurred during route calculation.
This is a convenience method that creates an instance of theRouteResponseNotice.Builderavoiding the need to create one manually viaRouteResponseNotice.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#notices(List.) - Parameters:
notices- a consumer that will call methods onRouteResponseNotice.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#notices(java.util.Collection)
-
pricingBucket
CalculateRoutesResponse.Builder pricingBucket(String pricingBucket)
The pricing bucket for which the query is charged at.
- Parameters:
pricingBucket- The pricing bucket for which the query is charged at.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
routes
CalculateRoutesResponse.Builder routes(Collection<Route> routes)
The path from the origin to the destination.
- Parameters:
routes- The path from the origin to the destination.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
routes
CalculateRoutesResponse.Builder routes(Route... routes)
The path from the origin to the destination.
- Parameters:
routes- The path from the origin to the destination.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
routes
CalculateRoutesResponse.Builder routes(Consumer<Route.Builder>... routes)
The path from the origin to the destination.
This is a convenience method that creates an instance of theRoute.Builderavoiding the need to create one manually viaRoute.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#routes(List.) - Parameters:
routes- a consumer that will call methods onRoute.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#routes(java.util.Collection)
-
-