Class CfnGatewayResponse.Builder

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

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

    • create

      @Stability(Stable) public static CfnGatewayResponse.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 CfnGatewayResponse.Builder.
    • responseType

      @Stability(Stable) public CfnGatewayResponse.Builder responseType(String responseType)
      The response type of the associated GatewayResponse.

      Parameters:
      responseType - The response type of the associated GatewayResponse. This parameter is required.
      Returns:
      this
    • restApiId

      @Stability(Stable) public CfnGatewayResponse.Builder restApiId(String restApiId)
      The string identifier of the associated RestApi.

      Parameters:
      restApiId - The string identifier of the associated RestApi. This parameter is required.
      Returns:
      this
    • responseParameters

      @Stability(Stable) public CfnGatewayResponse.Builder responseParameters(IResolvable responseParameters)
      Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.

      Parameters:
      responseParameters - Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs. This parameter is required.
      Returns:
      this
    • responseParameters

      @Stability(Stable) public CfnGatewayResponse.Builder responseParameters(Map<String,String> responseParameters)
      Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.

      Parameters:
      responseParameters - Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs. This parameter is required.
      Returns:
      this
    • responseTemplates

      @Stability(Stable) public CfnGatewayResponse.Builder responseTemplates(IResolvable responseTemplates)
      Response templates of the GatewayResponse as a string-to-string map of key-value pairs.

      Parameters:
      responseTemplates - Response templates of the GatewayResponse as a string-to-string map of key-value pairs. This parameter is required.
      Returns:
      this
    • responseTemplates

      @Stability(Stable) public CfnGatewayResponse.Builder responseTemplates(Map<String,String> responseTemplates)
      Response templates of the GatewayResponse as a string-to-string map of key-value pairs.

      Parameters:
      responseTemplates - Response templates of the GatewayResponse as a string-to-string map of key-value pairs. This parameter is required.
      Returns:
      this
    • statusCode

      @Stability(Stable) public CfnGatewayResponse.Builder statusCode(String statusCode)
      The HTTP status code for this GatewayResponse.

      Parameters:
      statusCode - The HTTP status code for this GatewayResponse. This parameter is required.
      Returns:
      this
    • build

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