Class IntegrationConfig.Builder
java.lang.Object
software.amazon.awscdk.services.apigateway.IntegrationConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<IntegrationConfig>
- Enclosing interface:
IntegrationConfig
@Stability(Stable)
public static final class IntegrationConfig.Builder
extends Object
implements software.amazon.jsii.Builder<IntegrationConfig>
A builder for
IntegrationConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.deploymentToken
(String deploymentToken) Sets the value ofIntegrationConfig.getDeploymentToken()
integrationHttpMethod
(String integrationHttpMethod) Sets the value ofIntegrationConfig.getIntegrationHttpMethod()
options
(IntegrationOptions options) Sets the value ofIntegrationConfig.getOptions()
type
(IntegrationType type) Sets the value ofIntegrationConfig.getType()
Sets the value ofIntegrationConfig.getUri()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Sets the value ofIntegrationConfig.getType()
- Parameters:
type
- Specifies an API method integration type. This parameter is required.- Returns:
this
-
deploymentToken
Sets the value ofIntegrationConfig.getDeploymentToken()
- Parameters:
deploymentToken
- This value is included in computing the Deployment's fingerprint. When the fingerprint changes, a new deployment is triggered. This property should contain values associated with the Integration that upon changing should trigger a fresh the Deployment needs to be refreshed.- Returns:
this
-
integrationHttpMethod
@Stability(Stable) public IntegrationConfig.Builder integrationHttpMethod(String integrationHttpMethod) Sets the value ofIntegrationConfig.getIntegrationHttpMethod()
- Parameters:
integrationHttpMethod
- The integration's HTTP method type.- Returns:
this
-
options
Sets the value ofIntegrationConfig.getOptions()
- Parameters:
options
- Integration options.- Returns:
this
-
uri
Sets the value ofIntegrationConfig.getUri()
- Parameters:
uri
- The Uniform Resource Identifier (URI) for the integration.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<IntegrationConfig>
- Returns:
- a new instance of
IntegrationConfig
- Throws:
NullPointerException
- if any required attribute was not provided
-