Interface RouteMatrixBoundaryGeometry.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<RouteMatrixBoundaryGeometry.Builder,,RouteMatrixBoundaryGeometry> SdkBuilder<RouteMatrixBoundaryGeometry.Builder,,RouteMatrixBoundaryGeometry> SdkPojo
- Enclosing class:
RouteMatrixBoundaryGeometry
-
Method Summary
Modifier and TypeMethodDescriptionautoCircle(Consumer<RouteMatrixAutoCircle.Builder> autoCircle) AutoCirclerequests the route matrix service to define aCircleboundary that best attempts to include most waypoints (OriginsandDestinations) using theAutoCirclesettings.autoCircle(RouteMatrixAutoCircle autoCircle) AutoCirclerequests the route matrix service to define aCircleboundary that best attempts to include most waypoints (OriginsandDestinations) using theAutoCirclesettings.boundingBox(Double... boundingBox) Geometry defined as a bounding box.boundingBox(Collection<Double> boundingBox) Geometry defined as a bounding box.circle(Consumer<Circle.Builder> circle) Geometry defined as a circle.Geometry defined as a circle.polygon(Collection<? extends Collection<? extends Collection<Double>>> polygon) Geometry defined as a polygon with only one linear ring.polygon(Collection<? extends Collection<Double>>... polygon) Geometry defined as a polygon with only one linear ring.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
autoCircle
AutoCirclerequests the route matrix service to define aCircleboundary that best attempts to include most waypoints (OriginsandDestinations) using theAutoCirclesettings. Any waypoints outside of the auto-definedCircleboundary will be considered out of the routing boundary, which results in a route matrix entry error.AutoCircleis only used in the request to configure aCirclefor the route calculation. The derivedCirclewill also be provided in the response.- Parameters:
autoCircle-AutoCirclerequests the route matrix service to define aCircleboundary that best attempts to include most waypoints (OriginsandDestinations) using theAutoCirclesettings. Any waypoints outside of the auto-definedCircleboundary will be considered out of the routing boundary, which results in a route matrix entry error.AutoCircleis only used in the request to configure aCirclefor the route calculation. The derivedCirclewill also be provided in the response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
autoCircle
default RouteMatrixBoundaryGeometry.Builder autoCircle(Consumer<RouteMatrixAutoCircle.Builder> autoCircle) AutoCirclerequests the route matrix service to define aCircleboundary that best attempts to include most waypoints (OriginsandDestinations) using theAutoCirclesettings. Any waypoints outside of the auto-definedCircleboundary will be considered out of the routing boundary, which results in a route matrix entry error.
This is a convenience method that creates an instance of theAutoCircleis only used in the request to configure aCirclefor the route calculation. The derivedCirclewill also be provided in the response.RouteMatrixAutoCircle.Builderavoiding the need to create one manually viaRouteMatrixAutoCircle.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toautoCircle(RouteMatrixAutoCircle).- Parameters:
autoCircle- a consumer that will call methods onRouteMatrixAutoCircle.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
circle
Geometry defined as a circle. The circle defines the routing boundary area. Any waypoints outside the circle will result in a route matrix entry error.
You can specify a
Circledirectly in the request, or it will be auto-derived whenAutoCircleis used. WhenAutoCircleis set in the request, the response routing boundary will returnCirclederived from theAutoCirclesettings.- Parameters:
circle- Geometry defined as a circle. The circle defines the routing boundary area. Any waypoints outside the circle will result in a route matrix entry error.You can specify a
Circledirectly in the request, or it will be auto-derived whenAutoCircleis used. WhenAutoCircleis set in the request, the response routing boundary will returnCirclederived from theAutoCirclesettings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
circle
Geometry defined as a circle. The circle defines the routing boundary area. Any waypoints outside the circle will result in a route matrix entry error.
You can specify a
This is a convenience method that creates an instance of theCircledirectly in the request, or it will be auto-derived whenAutoCircleis used. WhenAutoCircleis set in the request, the response routing boundary will returnCirclederived from theAutoCirclesettings.Circle.Builderavoiding the need to create one manually viaCircle.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocircle(Circle).- Parameters:
circle- a consumer that will call methods onCircle.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
boundingBox
Geometry defined as a bounding box. The first pair represents the X and Y coordinates (longitude and latitude,) of the southwest corner of the bounding box; the second pair represents the X and Y coordinates (longitude and latitude) of the northeast corner.
Diagonal distance of the bounding box must be less than or equal to 400,000 meters.
- Parameters:
boundingBox- Geometry defined as a bounding box. The first pair represents the X and Y coordinates (longitude and latitude,) of the southwest corner of the bounding box; the second pair represents the X and Y coordinates (longitude and latitude) of the northeast corner.Diagonal distance of the bounding box must be less than or equal to 400,000 meters.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
boundingBox
Geometry defined as a bounding box. The first pair represents the X and Y coordinates (longitude and latitude,) of the southwest corner of the bounding box; the second pair represents the X and Y coordinates (longitude and latitude) of the northeast corner.
Diagonal distance of the bounding box must be less than or equal to 400,000 meters.
- Parameters:
boundingBox- Geometry defined as a bounding box. The first pair represents the X and Y coordinates (longitude and latitude,) of the southwest corner of the bounding box; the second pair represents the X and Y coordinates (longitude and latitude) of the northeast corner.Diagonal distance of the bounding box must be less than or equal to 400,000 meters.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
polygon
RouteMatrixBoundaryGeometry.Builder polygon(Collection<? extends Collection<? extends Collection<Double>>> polygon) Geometry defined as a polygon with only one linear ring. A linear ring is a closed sequence of four or more coordinates. The first and last coordinates are the same, forming a closed boundary. Each coordinate is a position in [longitude, latitude] format.
The structure is an array of linear rings (only 1 allowed). Each linear ring is an array of coordinates (minimum 4), and each coordinate is an array of two doubles [longitude, latitude].
Maximum distance between any two vertices must be less than or equal to 400,000 meters.
- Parameters:
polygon- Geometry defined as a polygon with only one linear ring. A linear ring is a closed sequence of four or more coordinates. The first and last coordinates are the same, forming a closed boundary. Each coordinate is a position in [longitude, latitude] format.The structure is an array of linear rings (only 1 allowed). Each linear ring is an array of coordinates (minimum 4), and each coordinate is an array of two doubles [longitude, latitude].
Maximum distance between any two vertices must be less than or equal to 400,000 meters.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
polygon
Geometry defined as a polygon with only one linear ring. A linear ring is a closed sequence of four or more coordinates. The first and last coordinates are the same, forming a closed boundary. Each coordinate is a position in [longitude, latitude] format.
The structure is an array of linear rings (only 1 allowed). Each linear ring is an array of coordinates (minimum 4), and each coordinate is an array of two doubles [longitude, latitude].
Maximum distance between any two vertices must be less than or equal to 400,000 meters.
- Parameters:
polygon- Geometry defined as a polygon with only one linear ring. A linear ring is a closed sequence of four or more coordinates. The first and last coordinates are the same, forming a closed boundary. Each coordinate is a position in [longitude, latitude] format.The structure is an array of linear rings (only 1 allowed). Each linear ring is an array of coordinates (minimum 4), and each coordinate is an array of two doubles [longitude, latitude].
Maximum distance between any two vertices must be less than or equal to 400,000 meters.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-