Class CfnMappingProps.Builder

java.lang.Object
software.amazon.awscdk.core.CfnMappingProps.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMappingProps>
Enclosing interface:
CfnMappingProps

@Stability(Stable) public static final class CfnMappingProps.Builder extends Object implements software.amazon.jsii.Builder<CfnMappingProps>
A builder for CfnMappingProps
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • lazy

      @Stability(Stable) public CfnMappingProps.Builder lazy(Boolean lazy)
      Sets the value of CfnMappingProps.getLazy()
      Parameters:
      lazy - the value to be set.
      Returns:
      this
    • mapping

      @Stability(Stable) public CfnMappingProps.Builder mapping(Map<String,? extends Map<String,? extends Object>> mapping)
      Parameters:
      mapping - Mapping of key to a set of corresponding set of named values. The key identifies a map of name-value pairs and must be unique within the mapping.

      For example, if you want to set values based on a region, you can create a mapping that uses the region name as a key and contains the values you want to specify for each specific region.

      Returns:
      this
    • build

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