public static final class CfnListener.FixedResponseConfigProperty.Builder
extends java.lang.Object
CfnListener.FixedResponseConfigProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnListener.FixedResponseConfigProperty |
build()
Builds the configured instance.
|
CfnListener.FixedResponseConfigProperty.Builder |
contentType(java.lang.String contentType)
Sets the value of
CfnListener.FixedResponseConfigProperty.getContentType() |
CfnListener.FixedResponseConfigProperty.Builder |
messageBody(java.lang.String messageBody)
Sets the value of
CfnListener.FixedResponseConfigProperty.getMessageBody() |
CfnListener.FixedResponseConfigProperty.Builder |
statusCode(java.lang.String statusCode)
Sets the value of
CfnListener.FixedResponseConfigProperty.getStatusCode() |
public CfnListener.FixedResponseConfigProperty.Builder statusCode(java.lang.String statusCode)
CfnListener.FixedResponseConfigProperty.getStatusCode()
statusCode
- The HTTP response code (2XX, 4XX, or 5XX). This parameter is required.this
public CfnListener.FixedResponseConfigProperty.Builder contentType(java.lang.String contentType)
CfnListener.FixedResponseConfigProperty.getContentType()
contentType
- The content type.
Valid Values: text/plain | text/css | text/html | application/javascript | application/jsonthis
public CfnListener.FixedResponseConfigProperty.Builder messageBody(java.lang.String messageBody)
CfnListener.FixedResponseConfigProperty.getMessageBody()
messageBody
- The message.this
public CfnListener.FixedResponseConfigProperty build()
CfnListener.FixedResponseConfigProperty
java.lang.NullPointerException
- if any required attribute was not provided