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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.integrationHttpMethod
(String integrationHttpMethod) Sets the value ofIntegrationProps.getIntegrationHttpMethod()
options
(IntegrationOptions options) Sets the value ofIntegrationProps.getOptions()
type
(IntegrationType type) Sets the value ofIntegrationProps.getType()
Sets the value ofIntegrationProps.getUri()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Sets the value ofIntegrationProps.getType()
- Parameters:
type
- Specifies an API method integration type. This parameter is required.- Returns:
this
-
integrationHttpMethod
@Stability(Stable) public IntegrationProps.Builder integrationHttpMethod(String integrationHttpMethod) Sets the value ofIntegrationProps.getIntegrationHttpMethod()
- Parameters:
integrationHttpMethod
- The integration's HTTP method type. Required unless you use a MOCK integration.- Returns:
this
-
options
Sets the value ofIntegrationProps.getOptions()
- Parameters:
options
- Integration options.- Returns:
this
-
uri
Sets the value ofIntegrationProps.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.
- If you specify HTTP for the
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<IntegrationProps>
- Returns:
- a new instance of
IntegrationProps
- Throws:
NullPointerException
- if any required attribute was not provided
-