@Stability(value=Stable) public static final class FixedResponseOptions.Builder extends Object implements software.amazon.jsii.Builder<FixedResponseOptions>
FixedResponseOptions
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
FixedResponseOptions |
build()
Builds the configured instance.
|
FixedResponseOptions.Builder |
contentType(String contentType)
Sets the value of
FixedResponseOptions.getContentType() |
FixedResponseOptions.Builder |
messageBody(String messageBody)
Sets the value of
FixedResponseOptions.getMessageBody() |
@Stability(value=Stable) public FixedResponseOptions.Builder contentType(String contentType)
FixedResponseOptions.getContentType()
contentType
- Content Type of the response.
Valid Values: text/plain | text/css | text/html | application/javascript | application/jsonthis
@Stability(value=Stable) public FixedResponseOptions.Builder messageBody(String messageBody)
FixedResponseOptions.getMessageBody()
messageBody
- The response body.this
@Stability(value=Stable) public FixedResponseOptions build()
build
in interface software.amazon.jsii.Builder<FixedResponseOptions>
FixedResponseOptions
NullPointerException
- if any required attribute was not providedCopyright © 2023. All rights reserved.