public static final class IntegrationResponse.Builder extends java.lang.Object implements SmithyBuilder<IntegrationResponse>
IntegrationResponse
.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
IntegrationResponse |
build()
Creates an immutable object that is created from the properties
that have been set on the builder.
|
IntegrationResponse.Builder |
contentHandling(java.lang.String contentHandling)
Sets the content handling of the response template.
|
IntegrationResponse.Builder |
putResponseParameter(java.lang.String name,
java.lang.String value)
Sets a response parameter mapping.
|
IntegrationResponse.Builder |
putResponseTemplate(java.lang.String mimeType,
java.lang.String template)
Adds a response template for a MIME type.
|
IntegrationResponse.Builder |
removeResponseParameter(java.lang.String name)
Removes a response parameter mapping.
|
IntegrationResponse.Builder |
removeResponseTemplate(java.lang.String mimeType)
Remove a response template for a given MIME type.
|
IntegrationResponse.Builder |
responseParameters(java.util.Map<java.lang.String,java.lang.String> responseParameters)
Sets response parameter mappings.
|
IntegrationResponse.Builder |
responseTemplates(java.util.Map<java.lang.String,java.lang.String> responseTemplates)
Sets a mapping of response MIME types to templates.
|
IntegrationResponse.Builder |
statusCode(java.lang.String statusCode)
Sets the status code of the response.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
requiredState
public IntegrationResponse build()
SmithyBuilder
build
in interface SmithyBuilder<IntegrationResponse>
public IntegrationResponse.Builder statusCode(java.lang.String statusCode)
statusCode
- HTTP response status code.IntegrationResponse.getStatusCode()
public IntegrationResponse.Builder contentHandling(java.lang.String contentHandling)
contentHandling
- Content handling strategy to set.IntegrationResponse.getContentHandling()
public IntegrationResponse.Builder responseTemplates(java.util.Map<java.lang.String,java.lang.String> responseTemplates)
responseTemplates
- Map of MIME types to response templates.IntegrationResponse.getResponseTemplates()
public IntegrationResponse.Builder putResponseTemplate(java.lang.String mimeType, java.lang.String template)
mimeType
- MIME type of the response template.template
- Response template for the payload.IntegrationResponse.getResponseTemplates()
public IntegrationResponse.Builder removeResponseTemplate(java.lang.String mimeType)
mimeType
- MIME type to remove.public IntegrationResponse.Builder responseParameters(java.util.Map<java.lang.String,java.lang.String> responseParameters)
responseParameters
- Map of response expressions to expressions to apply to response.IntegrationResponse.getResponseParameters()
public IntegrationResponse.Builder putResponseParameter(java.lang.String name, java.lang.String value)
name
- Name of the expression to extract.value
- Expression used to apply in the response.IntegrationResponse.getResponseParameters()
public IntegrationResponse.Builder removeResponseParameter(java.lang.String name)
name
- Expression to remove.