Class CfnApiGatewayManagedOverrides.IntegrationOverridesProperty.Builder
java.lang.Object
software.amazon.awscdk.services.apigatewayv2.CfnApiGatewayManagedOverrides.IntegrationOverridesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApiGatewayManagedOverrides.IntegrationOverridesProperty>
- Enclosing interface:
CfnApiGatewayManagedOverrides.IntegrationOverridesProperty
@Stability(Stable)
public static final class CfnApiGatewayManagedOverrides.IntegrationOverridesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApiGatewayManagedOverrides.IntegrationOverridesProperty>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.description
(String description) integrationMethod
(String integrationMethod) payloadFormatVersion
(String payloadFormatVersion) timeoutInMillis
(Number timeoutInMillis)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
description
@Stability(Stable) public CfnApiGatewayManagedOverrides.IntegrationOverridesProperty.Builder description(String description) - Parameters:
description
- The description of the integration.- Returns:
this
-
integrationMethod
@Stability(Stable) public CfnApiGatewayManagedOverrides.IntegrationOverridesProperty.Builder integrationMethod(String integrationMethod) - Parameters:
integrationMethod
- Specifies the integration's HTTP method type. For WebSocket APIs, if you use a Lambda integration, you must set the integration method toPOST
.- Returns:
this
-
payloadFormatVersion
@Stability(Stable) public CfnApiGatewayManagedOverrides.IntegrationOverridesProperty.Builder payloadFormatVersion(String payloadFormatVersion) Sets the value ofCfnApiGatewayManagedOverrides.IntegrationOverridesProperty.getPayloadFormatVersion()
- Parameters:
payloadFormatVersion
- Specifies the format of the payload sent to an integration. Required for HTTP APIs. For HTTP APIs, supported values for Lambda proxy integrations are1.0
and2.0
. For all other integrations,1.0
is the only supported value. To learn more, see Working with AWS Lambda proxy integrations for HTTP APIs .- Returns:
this
-
timeoutInMillis
@Stability(Stable) public CfnApiGatewayManagedOverrides.IntegrationOverridesProperty.Builder timeoutInMillis(Number timeoutInMillis) - Parameters:
timeoutInMillis
- Custom timeout between 50 and 29,000 milliseconds for WebSocket APIs and between 50 and 30,000 milliseconds for HTTP APIs. The default timeout is 29 seconds for WebSocket APIs and 30 seconds for HTTP APIs.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnApiGatewayManagedOverrides.IntegrationOverridesProperty>
- Returns:
- a new instance of
CfnApiGatewayManagedOverrides.IntegrationOverridesProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-