public static final class IntegrationTrait.Builder extends AbstractTraitBuilder<IntegrationTrait,IntegrationTrait.Builder>
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
IntegrationTrait.Builder |
addCacheKeyParameter(java.lang.String cacheKeyParameter)
Adds a cache key parameter.
|
IntegrationTrait |
build()
Creates an immutable object that is created from the properties
that have been set on the builder.
|
IntegrationTrait.Builder |
cacheKeyParameters(java.util.List<java.lang.String> cacheKeyParameters)
Sets a list of request parameters whose values are to be cached.
|
IntegrationTrait.Builder |
cacheNamespace(java.lang.String cacheNamespace)
Set an API-specific tag group of related cached parameters.
|
IntegrationTrait.Builder |
clearCacheKeyParameters()
Clears all cache key parameters.
|
IntegrationTrait.Builder |
connectionId(java.lang.String connectionId)
Sets the ID of a VpcLink when using a private integration.
|
IntegrationTrait.Builder |
connectionType(java.lang.String connectionType)
Sets the connection type.
|
IntegrationTrait.Builder |
contentHandling(java.lang.String contentHandling)
Set the Request payload encoding conversion types.
|
IntegrationTrait.Builder |
credentials(java.lang.String credentials)
Specifies the credentials used by the integration, if any.
|
IntegrationTrait.Builder |
httpMethod(java.lang.String httpMethod)
Specifies the integration's HTTP method type.
|
IntegrationTrait.Builder |
passThroughBehavior(java.lang.String passThroughBehavior)
Configures the pass through behavior of the integration.
|
IntegrationTrait.Builder |
payloadFormatVersion(java.lang.String payloadFormatVersion)
Sets the payload format version.
|
IntegrationTrait.Builder |
putRequestParameter(java.lang.String input,
java.lang.String output)
Adds a request parameter.
|
IntegrationTrait.Builder |
putRequestTemplate(java.lang.String mimeType,
java.lang.String template)
Adds a request template.
|
IntegrationTrait.Builder |
putResponse(java.lang.String statusCodeRegex,
IntegrationResponse integrationResponse)
Adds a response for the given response regex.
|
IntegrationTrait.Builder |
removeCacheKeyParameter(java.lang.String cacheKeyParameter)
Removes a specific cache key parameter.
|
IntegrationTrait.Builder |
removeRequestParameter(java.lang.String expression)
Remove a request parameter by expression.
|
IntegrationTrait.Builder |
removeRequestTemplate(java.lang.String mimeType)
Removes a request template by MIME type.
|
IntegrationTrait.Builder |
removeResponse(java.lang.String statusCodeRegex)
Removes a response by status code regex.
|
IntegrationTrait.Builder |
requestParameters(java.util.Map<java.lang.String,java.lang.String> requestParameters)
Sets request parameters.
|
IntegrationTrait.Builder |
requestTemplates(java.util.Map<java.lang.String,java.lang.String> requestTemplates)
Sets request templates.
|
IntegrationTrait.Builder |
responses(java.util.Map<java.lang.String,IntegrationResponse> responses)
Sets responses for the given response regular expressions.
|
IntegrationTrait.Builder |
timeoutInMillis(java.lang.Integer timeoutInMillis)
Set the timeout in milliseconds.
|
IntegrationTrait.Builder |
type(java.lang.String type)
Sets the integration type.
|
IntegrationTrait.Builder |
uri(java.lang.String uri)
Sets the URI of the integration endpoint.
|
getSourceLocation, sourceLocationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrequiredStatepublic IntegrationTrait build()
SmithyBuilderpublic IntegrationTrait.Builder type(java.lang.String type)
type - Type to set (aws, aws_proxy, http, http_proxy).public IntegrationTrait.Builder uri(java.lang.String uri)
uri - The URI of the integration.public IntegrationTrait.Builder credentials(java.lang.String credentials)
credentials - Credentials to use.public IntegrationTrait.Builder httpMethod(java.lang.String httpMethod)
httpMethod - HTTP method to use.public IntegrationTrait.Builder passThroughBehavior(java.lang.String passThroughBehavior)
passThroughBehavior - Pass through behavior setting.IntegrationTrait.getPassThroughBehavior()public IntegrationTrait.Builder contentHandling(java.lang.String contentHandling)
Valid values are:
contentHandling - Content handling property.public IntegrationTrait.Builder timeoutInMillis(java.lang.Integer timeoutInMillis)
Integration timeouts between 50 ms and 29,000 ms. The default setting used by API Gateway is 29,000 (or, 29 seconds).
timeoutInMillis - Timeout in milliseconds.public IntegrationTrait.Builder connectionId(java.lang.String connectionId)
connectionId - VPC link ID.public IntegrationTrait.Builder connectionType(java.lang.String connectionType)
connectionType - Connection type to set.public IntegrationTrait.Builder cacheNamespace(java.lang.String cacheNamespace)
cacheNamespace - Cache namespace to set.public IntegrationTrait.Builder payloadFormatVersion(java.lang.String payloadFormatVersion)
payloadFormatVersion - Payload format version to set.public IntegrationTrait.Builder addCacheKeyParameter(java.lang.String cacheKeyParameter)
cacheKeyParameter - Parameter to add.public IntegrationTrait.Builder cacheKeyParameters(java.util.List<java.lang.String> cacheKeyParameters)
cacheKeyParameters - Parameters to use in the cache.public IntegrationTrait.Builder removeCacheKeyParameter(java.lang.String cacheKeyParameter)
cacheKeyParameter - Parameter to remove.public IntegrationTrait.Builder clearCacheKeyParameters()
public IntegrationTrait.Builder putRequestParameter(java.lang.String input, java.lang.String output)
input - Input request expression.output - Output request expression.IntegrationTrait.getRequestParameters()public IntegrationTrait.Builder requestParameters(java.util.Map<java.lang.String,java.lang.String> requestParameters)
requestParameters - Map of parameters to add.IntegrationTrait.getRequestParameters()public IntegrationTrait.Builder removeRequestParameter(java.lang.String expression)
expression - Expression to remove.public IntegrationTrait.Builder putRequestTemplate(java.lang.String mimeType, java.lang.String template)
mimeType - MIME type of the request template to set.template - Request template to set.IntegrationTrait.getRequestTemplates()public IntegrationTrait.Builder requestTemplates(java.util.Map<java.lang.String,java.lang.String> requestTemplates)
requestTemplates - Map of MIME types to the corresponding template.IntegrationTrait.getRequestTemplates()public IntegrationTrait.Builder removeRequestTemplate(java.lang.String mimeType)
mimeType - MIME type to remove.public IntegrationTrait.Builder putResponse(java.lang.String statusCodeRegex, IntegrationResponse integrationResponse)
statusCodeRegex - Status code regular expression.integrationResponse - Integration response to set.IntegrationTrait.getResponses()public IntegrationTrait.Builder responses(java.util.Map<java.lang.String,IntegrationResponse> responses)
responses - Map of regular expressions to responses.IntegrationTrait.getResponses()public IntegrationTrait.Builder removeResponse(java.lang.String statusCodeRegex)
statusCodeRegex - Status code regular expression to remove.