Class AwsIntegrationProps.Builder
java.lang.Object
software.amazon.awscdk.services.apigateway.AwsIntegrationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AwsIntegrationProps>
- Enclosing interface:
- AwsIntegrationProps
@Stability(Stable)
public static final class AwsIntegrationProps.Builder
extends Object
implements software.amazon.jsii.Builder<AwsIntegrationProps>
A builder for
AwsIntegrationProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofAwsIntegrationProps.getAction()
actionParameters
(Map<String, String> actionParameters) Sets the value ofAwsIntegrationProps.getActionParameters()
build()
Builds the configured instance.integrationHttpMethod
(String integrationHttpMethod) Sets the value ofAwsIntegrationProps.getIntegrationHttpMethod()
options
(IntegrationOptions options) Sets the value ofAwsIntegrationProps.getOptions()
Sets the value ofAwsIntegrationProps.getPath()
Sets the value ofAwsIntegrationProps.getProxy()
Sets the value ofAwsIntegrationProps.getRegion()
Sets the value ofAwsIntegrationProps.getService()
Sets the value ofAwsIntegrationProps.getSubdomain()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
service
Sets the value ofAwsIntegrationProps.getService()
- Parameters:
service
- The name of the integrated AWS service (e.g.s3
). This parameter is required.- Returns:
this
-
action
Sets the value ofAwsIntegrationProps.getAction()
- Parameters:
action
- The AWS action to perform in the integration. UseactionParams
to specify key-value params for the action.Mutually exclusive with
path
.- Returns:
this
-
actionParameters
@Stability(Stable) public AwsIntegrationProps.Builder actionParameters(Map<String, String> actionParameters) Sets the value ofAwsIntegrationProps.getActionParameters()
- Parameters:
actionParameters
- Parameters for the action.action
must be set, andpath
must be undefined. The action params will be URL encoded.- Returns:
this
-
integrationHttpMethod
@Stability(Stable) public AwsIntegrationProps.Builder integrationHttpMethod(String integrationHttpMethod) Sets the value ofAwsIntegrationProps.getIntegrationHttpMethod()
- Parameters:
integrationHttpMethod
- The integration's HTTP method type.- Returns:
this
-
options
Sets the value ofAwsIntegrationProps.getOptions()
- Parameters:
options
- Integration options, such as content handling, request/response mapping, etc.- Returns:
this
-
path
Sets the value ofAwsIntegrationProps.getPath()
- Parameters:
path
- The path to use for path-base APIs. For example, for S3 GET, you can set path tobucket/key
. For lambda, you can set path to2015-03-31/functions/${function-arn}/invocations
Mutually exclusive with the
action
options.- Returns:
this
-
proxy
Sets the value ofAwsIntegrationProps.getProxy()
- Parameters:
proxy
- Use AWS_PROXY integration.- Returns:
this
-
region
Sets the value ofAwsIntegrationProps.getRegion()
- Parameters:
region
- The region of the integrated AWS service.- Returns:
this
-
subdomain
Sets the value ofAwsIntegrationProps.getSubdomain()
- Parameters:
subdomain
- A designated subdomain supported by certain AWS service for fast host-name lookup.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<AwsIntegrationProps>
- Returns:
- a new instance of
AwsIntegrationProps
- Throws:
NullPointerException
- if any required attribute was not provided
-