Class HttpIntegrationProps.Builder
java.lang.Object
software.amazon.awscdk.services.apigatewayv2.HttpIntegrationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<HttpIntegrationProps>
- Enclosing interface:
- HttpIntegrationProps
@Stability(Experimental)
public static final class HttpIntegrationProps.Builder
extends Object
implements software.amazon.jsii.Builder<HttpIntegrationProps>
A builder for
HttpIntegrationProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.connectionId(String connectionId) Sets the value ofHttpIntegrationProps.getConnectionId()connectionType(HttpConnectionType connectionType) Sets the value ofHttpIntegrationProps.getConnectionType()credentials(IntegrationCredentials credentials) Sets the value ofHttpIntegrationProps.getCredentials()Sets the value ofHttpIntegrationProps.getHttpApi()integrationSubtype(HttpIntegrationSubtype integrationSubtype) Sets the value ofHttpIntegrationProps.getIntegrationSubtype()integrationType(HttpIntegrationType integrationType) Sets the value ofHttpIntegrationProps.getIntegrationType()integrationUri(String integrationUri) Sets the value ofHttpIntegrationProps.getIntegrationUri()method(HttpMethod method) Sets the value ofHttpIntegrationProps.getMethod()parameterMapping(ParameterMapping parameterMapping) Sets the value ofHttpIntegrationProps.getParameterMapping()payloadFormatVersion(PayloadFormatVersion payloadFormatVersion) Sets the value ofHttpIntegrationProps.getPayloadFormatVersion()secureServerName(String secureServerName) Sets the value ofHttpIntegrationProps.getSecureServerName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
httpApi
Sets the value ofHttpIntegrationProps.getHttpApi()- Parameters:
httpApi- The HTTP API to which this integration should be bound. This parameter is required.- Returns:
this
-
integrationType
@Stability(Experimental) public HttpIntegrationProps.Builder integrationType(HttpIntegrationType integrationType) Sets the value ofHttpIntegrationProps.getIntegrationType()- Parameters:
integrationType- Integration type. This parameter is required.- Returns:
this
-
connectionId
Sets the value ofHttpIntegrationProps.getConnectionId()- Parameters:
connectionId- The ID of the VPC link for a private integration. Supported only for HTTP APIs.- Returns:
this
-
connectionType
@Stability(Experimental) public HttpIntegrationProps.Builder connectionType(HttpConnectionType connectionType) Sets the value ofHttpIntegrationProps.getConnectionType()- Parameters:
connectionType- The type of the network connection to the integration endpoint.- Returns:
this
-
credentials
@Stability(Experimental) public HttpIntegrationProps.Builder credentials(IntegrationCredentials credentials) Sets the value ofHttpIntegrationProps.getCredentials()- Parameters:
credentials- The credentials with which to invoke the integration.- Returns:
this
-
integrationSubtype
@Stability(Experimental) public HttpIntegrationProps.Builder integrationSubtype(HttpIntegrationSubtype integrationSubtype) Sets the value ofHttpIntegrationProps.getIntegrationSubtype()- Parameters:
integrationSubtype- Integration subtype. Used for AWS Service integrations, specifies the target of the integration.- Returns:
this
-
integrationUri
Sets the value ofHttpIntegrationProps.getIntegrationUri()- Parameters:
integrationUri- Integration URI. This will be the function ARN in the case ofHttpIntegrationType.AWS_PROXY, or HTTP URL in the case ofHttpIntegrationType.HTTP_PROXY.- Returns:
this
-
method
Sets the value ofHttpIntegrationProps.getMethod()- Parameters:
method- The HTTP method to use when calling the underlying HTTP proxy.- Returns:
this
-
parameterMapping
@Stability(Experimental) public HttpIntegrationProps.Builder parameterMapping(ParameterMapping parameterMapping) Sets the value ofHttpIntegrationProps.getParameterMapping()- Parameters:
parameterMapping- Specifies how to transform HTTP requests before sending them to the backend.- Returns:
this
-
payloadFormatVersion
@Stability(Experimental) public HttpIntegrationProps.Builder payloadFormatVersion(PayloadFormatVersion payloadFormatVersion) Sets the value ofHttpIntegrationProps.getPayloadFormatVersion()- Parameters:
payloadFormatVersion- The version of the payload format.- Returns:
this
-
secureServerName
@Stability(Experimental) public HttpIntegrationProps.Builder secureServerName(String secureServerName) Sets the value ofHttpIntegrationProps.getSecureServerName()- Parameters:
secureServerName- Specifies the TLS configuration for a private integration.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<HttpIntegrationProps>- Returns:
- a new instance of
HttpIntegrationProps - Throws:
NullPointerException- if any required attribute was not provided
-