Class IntegrationProps.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • type

      @Stability(Stable) public IntegrationProps.Builder type(IntegrationType type)
      Sets the value of IntegrationProps.getType()
      Parameters:
      type - Specifies an API method integration type. This parameter is required.
      Returns:
      this
    • integrationHttpMethod

      @Stability(Stable) public IntegrationProps.Builder integrationHttpMethod(String integrationHttpMethod)
      Parameters:
      integrationHttpMethod - The integration's HTTP method type. Required unless you use a MOCK integration.
      Returns:
      this
    • options

      @Stability(Stable) public IntegrationProps.Builder options(IntegrationOptions options)
      Parameters:
      options - Integration options.
      Returns:
      this
    • uri

      @Stability(Stable) public IntegrationProps.Builder uri(Object uri)
      Sets the value of IntegrationProps.getUri()
      Parameters:
      uri - The Uniform Resource Identifier (URI) for the integration.
      • If you specify HTTP for the type property, specify the API endpoint URL.
      • If you specify MOCK for the type property, don't specify this property.
      • If you specify AWS for the type property, specify an AWS service that follows this form: arn:partition:apigateway:region:subdomain.service|service:path|action/service_api. For example, a Lambda function URI follows this form: arn:partition:apigateway:region:lambda:path/path. The path is usually in the form /2015-03-31/functions/LambdaFunctionARN/invocations.
      Returns:
      this
    • build

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