Class CfnMapProps.Builder
java.lang.Object
software.amazon.awscdk.services.location.CfnMapProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMapProps>
- Enclosing interface:
- CfnMapProps
@Stability(Stable)
public static final class CfnMapProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMapProps>
A builder for
CfnMapProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.configuration
(IResolvable configuration) Sets the value ofCfnMapProps.getConfiguration()
configuration
(CfnMap.MapConfigurationProperty configuration) Sets the value ofCfnMapProps.getConfiguration()
description
(String description) Sets the value ofCfnMapProps.getDescription()
Sets the value ofCfnMapProps.getMapName()
pricingPlan
(String pricingPlan) Sets the value ofCfnMapProps.getPricingPlan()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
configuration
@Stability(Stable) public CfnMapProps.Builder configuration(CfnMap.MapConfigurationProperty configuration) Sets the value ofCfnMapProps.getConfiguration()
- Parameters:
configuration
- Specifies theMapConfiguration
, including the map style, for the map resource that you create. This parameter is required. The map style defines the look of maps and the data provider for your map resource.- Returns:
this
-
configuration
Sets the value ofCfnMapProps.getConfiguration()
- Parameters:
configuration
- Specifies theMapConfiguration
, including the map style, for the map resource that you create. This parameter is required. The map style defines the look of maps and the data provider for your map resource.- Returns:
this
-
mapName
Sets the value ofCfnMapProps.getMapName()
- Parameters:
mapName
- The name for the map resource. This parameter is required. Requirements:- Must contain only alphanumeric characters (A–Z, a–z, 0–9), hyphens (-), periods (.), and underscores (_).
- Must be a unique map resource name.
- No spaces allowed. For example,
ExampleMap
.
- Returns:
this
-
description
Sets the value ofCfnMapProps.getDescription()
- Parameters:
description
- An optional description for the map resource.- Returns:
this
-
pricingPlan
Sets the value ofCfnMapProps.getPricingPlan()
- Parameters:
pricingPlan
- No longer used. If included, the only allowed value isRequestBasedUsage
. Allowed Values :RequestBasedUsage
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnMapProps>
- Returns:
- a new instance of
CfnMapProps
- Throws:
NullPointerException
- if any required attribute was not provided
-