Class ApiGatewayIntegrationResponse.Builder
- java.lang.Object
-
- software.aws.awsprototypingsdk.openapigateway.ApiGatewayIntegrationResponse.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ApiGatewayIntegrationResponse>
- Enclosing interface:
- ApiGatewayIntegrationResponse
@Stability(Experimental) public static final class ApiGatewayIntegrationResponse.Builder extends Object implements software.amazon.jsii.Builder<ApiGatewayIntegrationResponse>
A builder forApiGatewayIntegrationResponse
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiGatewayIntegrationResponsebuild()Builds the configured instance.ApiGatewayIntegrationResponse.BuildercontentHandling(String contentHandling)Sets the value ofApiGatewayIntegrationResponse.getContentHandling()ApiGatewayIntegrationResponse.BuilderresponseParameters(Map<String,String> responseParameters)Sets the value ofApiGatewayIntegrationResponse.getResponseParameters()ApiGatewayIntegrationResponse.BuilderresponseTemplates(Map<String,String> responseTemplates)Sets the value ofApiGatewayIntegrationResponse.getResponseTemplates()ApiGatewayIntegrationResponse.BuilderstatusCode(String statusCode)Sets the value ofApiGatewayIntegrationResponse.getStatusCode()
-
-
-
Method Detail
-
responseParameters
@Stability(Experimental) public ApiGatewayIntegrationResponse.Builder responseParameters(Map<String,String> responseParameters)
Sets the value ofApiGatewayIntegrationResponse.getResponseParameters()- Parameters:
responseParameters- Specifies parameter mappings for the response. This parameter is required.- Returns:
this
-
responseTemplates
@Stability(Experimental) public ApiGatewayIntegrationResponse.Builder responseTemplates(Map<String,String> responseTemplates)
Sets the value ofApiGatewayIntegrationResponse.getResponseTemplates()- Parameters:
responseTemplates- Specifies MIME type-specific mapping templates for the response’s payload. This parameter is required.- Returns:
this
-
statusCode
@Stability(Experimental) public ApiGatewayIntegrationResponse.Builder statusCode(String statusCode)
Sets the value ofApiGatewayIntegrationResponse.getStatusCode()- Parameters:
statusCode- HTTP status code for the method response. This parameter is required.- Returns:
this
-
contentHandling
@Stability(Experimental) public ApiGatewayIntegrationResponse.Builder contentHandling(String contentHandling)
Sets the value ofApiGatewayIntegrationResponse.getContentHandling()- Parameters:
contentHandling- Response payload encoding conversion types. Valid values are 1) CONVERT_TO_TEXT, for converting a binary payload into a base64-encoded string or converting a text payload into a utf-8-encoded string or passing through the text payload natively without modification, and 2) CONVERT_TO_BINARY, for converting a text payload into a base64-decoded blob or passing through a binary payload natively without modification.- Returns:
this
-
build
@Stability(Experimental) public ApiGatewayIntegrationResponse build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ApiGatewayIntegrationResponse>- Returns:
- a new instance of
ApiGatewayIntegrationResponse - Throws:
NullPointerException- if any required attribute was not provided
-
-