Class CfnRouteCalculatorProps.Builder
java.lang.Object
software.amazon.awscdk.services.location.CfnRouteCalculatorProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRouteCalculatorProps>
- Enclosing interface:
CfnRouteCalculatorProps
@Stability(Stable)
public static final class CfnRouteCalculatorProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRouteCalculatorProps>
A builder for
CfnRouteCalculatorProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.calculatorName(String calculatorName) Sets the value ofCfnRouteCalculatorProps.getCalculatorName()dataSource(String dataSource) Sets the value ofCfnRouteCalculatorProps.getDataSource()description(String description) Sets the value ofCfnRouteCalculatorProps.getDescription()pricingPlan(String pricingPlan) Sets the value ofCfnRouteCalculatorProps.getPricingPlan()Sets the value ofCfnRouteCalculatorProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
calculatorName
Sets the value ofCfnRouteCalculatorProps.getCalculatorName()- Parameters:
calculatorName- The name of the route calculator resource. This parameter is required. Requirements:- Can use alphanumeric characters (A–Z, a–z, 0–9) , hyphens (-), periods (.), and underscores (_).
- Must be a unique Route calculator resource name.
- No spaces allowed. For example,
ExampleRouteCalculator.
- Returns:
this
-
dataSource
Sets the value ofCfnRouteCalculatorProps.getDataSource()- Parameters:
dataSource- Specifies the data provider of traffic and road network data. This parameter is required.This field is case-sensitive. Enter the valid values as shown. For example, entering
HEREreturns an error.Valid values include:
Esri– For additional information about Esri 's coverage in your region of interest, see Esri details on street networks and traffic coverage .
Route calculators that use Esri as a data source only calculate routes that are shorter than 400 km.
Grab– Grab provides routing functionality for Southeast Asia. For additional information about GrabMaps ' coverage, see GrabMaps countries and areas covered .Here– For additional information about HERE Technologies ' coverage in your region of interest, see HERE car routing coverage and HERE truck routing coverage .
For additional information , see Data providers on the Amazon Location Service Developer Guide .
- Returns:
this
-
description
Sets the value ofCfnRouteCalculatorProps.getDescription()- Parameters:
description- The optional description for the route calculator resource.- Returns:
this
-
pricingPlan
Sets the value ofCfnRouteCalculatorProps.getPricingPlan()- Parameters:
pricingPlan- No longer used. If included, the only allowed value isRequestBasedUsage. Allowed Values :RequestBasedUsage- Returns:
this
-
tags
Sets the value ofCfnRouteCalculatorProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to this resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRouteCalculatorProps>- Returns:
- a new instance of
CfnRouteCalculatorProps - Throws:
NullPointerException- if any required attribute was not provided
-