public final class MockIntegrationTrait extends AbstractTrait implements ToSmithyBuilder<MockIntegrationTrait>
Modifier and Type | Class and Description |
---|---|
static class |
MockIntegrationTrait.Builder |
static class |
MockIntegrationTrait.Provider |
Modifier and Type | Method and Description |
---|---|
static MockIntegrationTrait.Builder |
builder() |
protected ObjectNode |
createNode()
The result of toNode is used for hashCodes and equality.
|
java.util.Optional<java.lang.String> |
getContentHandling()
Gets the contentHandling property of the integration.
|
java.util.Optional<java.lang.String> |
getPassThroughBehavior()
Gets the pass through behavior of the integration.
|
java.util.Optional<java.lang.String> |
getRequestParameter(java.lang.String expression)
Get a specific request parameter by input expression.
|
java.util.Map<java.lang.String,java.lang.String> |
getRequestParameters()
Gets the request parameter mappings of the integration.
|
java.util.Optional<java.lang.String> |
getRequestTemplate(java.lang.String mimeType)
Gets a specific request template by MIME type.
|
java.util.Map<java.lang.String,java.lang.String> |
getRequestTemplates()
Gets all request templates of the integration.
|
java.util.Optional<IntegrationResponse> |
getResponse(java.lang.String statusCode)
Get a specific integration response by status code expression.
|
java.util.Map<java.lang.String,IntegrationResponse> |
getResponses()
Gets all integration responses.
|
MockIntegrationTrait.Builder |
toBuilder()
Take this object and create a builder that contains all of the
current property values of this object.
|
equals, getSourceLocation, hashCode, setNodeCache, toNode, toShapeId, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
flatMapStream, getIdiomaticTraitName, getIdiomaticTraitName, isSynthetic, makeAbsoluteName, makeAbsoluteName
public static final ShapeId ID
public static MockIntegrationTrait.Builder builder()
public java.util.Optional<java.lang.String> getPassThroughBehavior()
Specifies how a request payload of unmapped content type is passed through the integration request without modification. Supported values are when_no_templates, when_no_match, and never.
public java.util.Map<java.lang.String,java.lang.String> getRequestParameters()
Each key is an expression used to extract a value from the request, and each value is an expression of where to place the value in the downstream request. Supported request parameters are querystring, path, header, and body.
public java.util.Optional<java.lang.String> getRequestParameter(java.lang.String expression)
expression
- Expression to get.public java.util.Map<java.lang.String,java.lang.String> getRequestTemplates()
public java.util.Optional<java.lang.String> getRequestTemplate(java.lang.String mimeType)
mimeType
- MIME type to get.public java.util.Map<java.lang.String,IntegrationResponse> getResponses()
public java.util.Optional<IntegrationResponse> getResponse(java.lang.String statusCode)
statusCode
- Status code regular expression to search for.public java.util.Optional<java.lang.String> getContentHandling()
protected ObjectNode createNode()
AbstractTrait
createNode
in class AbstractTrait
public MockIntegrationTrait.Builder toBuilder()
ToSmithyBuilder
toBuilder
in interface ToSmithyBuilder<MockIntegrationTrait>