@Stability(value=Experimental) 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=Experimental) 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=Experimental) public FixedResponseOptions.Builder messageBody(String messageBody)
FixedResponseOptions.getMessageBody()messageBody - The response body.this@Stability(value=Experimental) public FixedResponseOptions build()
build in interface software.amazon.jsii.Builder<FixedResponseOptions>FixedResponseOptionsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.