Class HttpRouteIntegrationConfig.Builder
java.lang.Object
software.amazon.awscdk.services.apigatewayv2.HttpRouteIntegrationConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<HttpRouteIntegrationConfig>
- Enclosing interface:
HttpRouteIntegrationConfig
@Stability(Stable)
public static final class HttpRouteIntegrationConfig.Builder
extends Object
implements software.amazon.jsii.Builder<HttpRouteIntegrationConfig>
A builder for
HttpRouteIntegrationConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.connectionId
(String connectionId) Sets the value ofHttpRouteIntegrationConfig.getConnectionId()
connectionType
(HttpConnectionType connectionType) Sets the value ofHttpRouteIntegrationConfig.getConnectionType()
credentials
(IntegrationCredentials credentials) Sets the value ofHttpRouteIntegrationConfig.getCredentials()
method
(HttpMethod method) Sets the value ofHttpRouteIntegrationConfig.getMethod()
parameterMapping
(ParameterMapping parameterMapping) Sets the value ofHttpRouteIntegrationConfig.getParameterMapping()
payloadFormatVersion
(PayloadFormatVersion payloadFormatVersion) Sets the value ofHttpRouteIntegrationConfig.getPayloadFormatVersion()
secureServerName
(String secureServerName) Sets the value ofHttpRouteIntegrationConfig.getSecureServerName()
subtype
(HttpIntegrationSubtype subtype) Sets the value ofHttpRouteIntegrationConfig.getSubtype()
Sets the value ofHttpRouteIntegrationConfig.getTimeout()
type
(HttpIntegrationType type) Sets the value ofHttpRouteIntegrationConfig.getType()
Sets the value ofHttpRouteIntegrationConfig.getUri()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
payloadFormatVersion
@Stability(Stable) public HttpRouteIntegrationConfig.Builder payloadFormatVersion(PayloadFormatVersion payloadFormatVersion) Sets the value ofHttpRouteIntegrationConfig.getPayloadFormatVersion()
- Parameters:
payloadFormatVersion
- Payload format version in the case of lambda proxy integration. This parameter is required.- Returns:
this
-
type
Sets the value ofHttpRouteIntegrationConfig.getType()
- Parameters:
type
- Integration type. This parameter is required.- Returns:
this
-
connectionId
Sets the value ofHttpRouteIntegrationConfig.getConnectionId()
- Parameters:
connectionId
- The ID of the VPC link for a private integration. Supported only for HTTP APIs.- Returns:
this
-
connectionType
@Stability(Stable) public HttpRouteIntegrationConfig.Builder connectionType(HttpConnectionType connectionType) Sets the value ofHttpRouteIntegrationConfig.getConnectionType()
- Parameters:
connectionType
- The type of the network connection to the integration endpoint.- Returns:
this
-
credentials
@Stability(Stable) public HttpRouteIntegrationConfig.Builder credentials(IntegrationCredentials credentials) Sets the value ofHttpRouteIntegrationConfig.getCredentials()
- Parameters:
credentials
- The credentials with which to invoke the integration.- Returns:
this
-
method
Sets the value ofHttpRouteIntegrationConfig.getMethod()
- Parameters:
method
- The HTTP method that must be used to invoke the underlying proxy. Required forHttpIntegrationType.HTTP_PROXY
- Returns:
this
-
parameterMapping
@Stability(Stable) public HttpRouteIntegrationConfig.Builder parameterMapping(ParameterMapping parameterMapping) Sets the value ofHttpRouteIntegrationConfig.getParameterMapping()
- Parameters:
parameterMapping
- Specifies how to transform HTTP requests before sending them to the backend.- Returns:
this
-
secureServerName
@Stability(Stable) public HttpRouteIntegrationConfig.Builder secureServerName(String secureServerName) Sets the value ofHttpRouteIntegrationConfig.getSecureServerName()
- Parameters:
secureServerName
- Specifies the server name to verified by HTTPS when calling the backend integration.- Returns:
this
-
subtype
@Stability(Stable) public HttpRouteIntegrationConfig.Builder subtype(HttpIntegrationSubtype subtype) Sets the value ofHttpRouteIntegrationConfig.getSubtype()
- Parameters:
subtype
- Integration subtype.- Returns:
this
-
timeout
Sets the value ofHttpRouteIntegrationConfig.getTimeout()
- Parameters:
timeout
- The maximum amount of time an integration will run before it returns without a response. Must be between 50 milliseconds and 29 seconds.- Returns:
this
-
uri
Sets the value ofHttpRouteIntegrationConfig.getUri()
- Parameters:
uri
- Integration URI.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<HttpRouteIntegrationConfig>
- Returns:
- a new instance of
HttpRouteIntegrationConfig
- Throws:
NullPointerException
- if any required attribute was not provided
-