Class RouteCalculatorProps.Builder
java.lang.Object
software.amazon.awscdk.services.location.alpha.RouteCalculatorProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<RouteCalculatorProps>
- Enclosing interface:
RouteCalculatorProps
@Stability(Experimental)
public static final class RouteCalculatorProps.Builder
extends Object
implements software.amazon.jsii.Builder<RouteCalculatorProps>
A builder for
RouteCalculatorProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.dataSource
(DataSource dataSource) Sets the value ofRouteCalculatorProps.getDataSource()
description
(String description) Sets the value ofRouteCalculatorProps.getDescription()
routeCalculatorName
(String routeCalculatorName) Sets the value ofRouteCalculatorProps.getRouteCalculatorName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dataSource
Sets the value ofRouteCalculatorProps.getDataSource()
- Parameters:
dataSource
- Data source for the route calculator. This parameter is required.- Returns:
this
-
description
Sets the value ofRouteCalculatorProps.getDescription()
- Parameters:
description
- A description for the route calculator.- Returns:
this
-
routeCalculatorName
@Stability(Experimental) public RouteCalculatorProps.Builder routeCalculatorName(String routeCalculatorName) Sets the value ofRouteCalculatorProps.getRouteCalculatorName()
- Parameters:
routeCalculatorName
- A name for the route calculator. Must be between 1 and 100 characters and contain only alphanumeric characters, hyphens, periods and underscores.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<RouteCalculatorProps>
- Returns:
- a new instance of
RouteCalculatorProps
- Throws:
NullPointerException
- if any required attribute was not provided
-