@Stability(value=Stable) public static final class CfnMethod.MethodResponseProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnMethod.MethodResponseProperty>
CfnMethod.MethodResponseProperty| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnMethod.MethodResponseProperty |
build()
Builds the configured instance.
|
CfnMethod.MethodResponseProperty.Builder |
responseModels(IResolvable responseModels)
Sets the value of
CfnMethod.MethodResponseProperty.getResponseModels() |
CfnMethod.MethodResponseProperty.Builder |
responseModels(Map<String,String> responseModels)
Sets the value of
CfnMethod.MethodResponseProperty.getResponseModels() |
CfnMethod.MethodResponseProperty.Builder |
responseParameters(IResolvable responseParameters)
Sets the value of
CfnMethod.MethodResponseProperty.getResponseParameters() |
CfnMethod.MethodResponseProperty.Builder |
responseParameters(Map<String,? extends Object> responseParameters)
Sets the value of
CfnMethod.MethodResponseProperty.getResponseParameters() |
CfnMethod.MethodResponseProperty.Builder |
statusCode(String statusCode)
Sets the value of
CfnMethod.MethodResponseProperty.getStatusCode() |
@Stability(value=Stable) public CfnMethod.MethodResponseProperty.Builder statusCode(String statusCode)
CfnMethod.MethodResponseProperty.getStatusCode()statusCode - The method response's status code, which you map to an [IntegrationResponse](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-method-integration-integrationresponse.html) . This parameter is required.this@Stability(value=Stable) public CfnMethod.MethodResponseProperty.Builder responseModels(IResolvable responseModels)
CfnMethod.MethodResponseProperty.getResponseModels()responseModels - The resources used for the response's content type.
Specify response models as key-value pairs (string-to-string maps), with a content type as the key and a Model resource name as the value.this@Stability(value=Stable) public CfnMethod.MethodResponseProperty.Builder responseModels(Map<String,String> responseModels)
CfnMethod.MethodResponseProperty.getResponseModels()responseModels - The resources used for the response's content type.
Specify response models as key-value pairs (string-to-string maps), with a content type as the key and a Model resource name as the value.this@Stability(value=Stable) public CfnMethod.MethodResponseProperty.Builder responseParameters(IResolvable responseParameters)
CfnMethod.MethodResponseProperty.getResponseParameters()responseParameters - Response parameters that API Gateway sends to the client that called a method.
Specify response parameters as key-value pairs (string-to-Boolean maps), with a destination as the key and a Boolean as the value. Specify the destination using the following pattern: method.response.header. *name* , where name is a valid, unique header name. The Boolean specifies whether a parameter is required.this@Stability(value=Stable) public CfnMethod.MethodResponseProperty.Builder responseParameters(Map<String,? extends Object> responseParameters)
CfnMethod.MethodResponseProperty.getResponseParameters()responseParameters - Response parameters that API Gateway sends to the client that called a method.
Specify response parameters as key-value pairs (string-to-Boolean maps), with a destination as the key and a Boolean as the value. Specify the destination using the following pattern: method.response.header. *name* , where name is a valid, unique header name. The Boolean specifies whether a parameter is required.this@Stability(value=Stable) public CfnMethod.MethodResponseProperty build()
build in interface software.amazon.jsii.Builder<CfnMethod.MethodResponseProperty>CfnMethod.MethodResponsePropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.