Class CfnApiMapping.Builder

java.lang.Object
software.amazon.awscdk.services.apigatewayv2.CfnApiMapping.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApiMapping>
Enclosing class:
CfnApiMapping

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

    • create

      @Stability(Stable) public static CfnApiMapping.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnApiMapping.Builder.
    • apiId

      @Stability(Stable) public CfnApiMapping.Builder apiId(String apiId)
      The identifier of the API.

      Parameters:
      apiId - The identifier of the API. This parameter is required.
      Returns:
      this
    • domainName

      @Stability(Stable) public CfnApiMapping.Builder domainName(String domainName)
      The domain name.

      Parameters:
      domainName - The domain name. This parameter is required.
      Returns:
      this
    • stage

      @Stability(Stable) public CfnApiMapping.Builder stage(String stage)
      The API stage.

      Parameters:
      stage - The API stage. This parameter is required.
      Returns:
      this
    • apiMappingKey

      @Stability(Stable) public CfnApiMapping.Builder apiMappingKey(String apiMappingKey)
      The API mapping key.

      Parameters:
      apiMappingKey - The API mapping key. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnApiMapping build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnApiMapping>
      Returns:
      a newly built instance of CfnApiMapping.