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 Details

    • Builder

      public Builder()
  • Method Details

    • configuration

      @Stability(Stable) public CfnMapProps.Builder configuration(IResolvable configuration)
      Parameters:
      configuration - Specifies the MapConfiguration , 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

      @Stability(Stable) public CfnMapProps.Builder configuration(CfnMap.MapConfigurationProperty configuration)
      Parameters:
      configuration - Specifies the MapConfiguration , 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

      @Stability(Stable) public CfnMapProps.Builder mapName(String mapName)
      Sets the value of CfnMapProps.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

      @Stability(Stable) public CfnMapProps.Builder description(String description)
      Parameters:
      description - An optional description for the map resource.
      Returns:
      this
    • pricingPlan

      @Stability(Stable) public CfnMapProps.Builder pricingPlan(String pricingPlan)
      Parameters:
      pricingPlan - No longer used. If included, the only allowed value is RequestBasedUsage . Allowed Values : RequestBasedUsage
      Returns:
      this
    • tags

      @Stability(Stable) public CfnMapProps.Builder tags(List<? extends CfnTag> tags)
      Sets the value of CfnMapProps.getTags()
      Parameters:
      tags - Applies one or more tags to the map resource. A tag is a key-value pair helps manage, identify, search, and filter your resources by labelling them.

      Format: "key" : "value"

      Restrictions:

      • Maximum 50 tags per resource
      • Each resource tag must be unique with a maximum of one value.
      • Maximum key length: 128 Unicode characters in UTF-8
      • Maximum value length: 256 Unicode characters in UTF-8
      • Can use alphanumeric characters (A–Z, a–z, 0–9), and the following characters: + - = . _ : /
      Returns:
      this
    • build

      @Stability(Stable) public CfnMapProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnMapProps>
      Returns:
      a new instance of CfnMapProps
      Throws:
      NullPointerException - if any required attribute was not provided