Class FixedResponseOptions.Builder
java.lang.Object
software.amazon.awscdk.services.elasticloadbalancingv2.FixedResponseOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<FixedResponseOptions>
- Enclosing interface:
FixedResponseOptions
@Stability(Stable)
public static final class FixedResponseOptions.Builder
extends Object
implements software.amazon.jsii.Builder<FixedResponseOptions>
A builder for
FixedResponseOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.contentType
(String contentType) Sets the value ofFixedResponseOptions.getContentType()
messageBody
(String messageBody) Sets the value ofFixedResponseOptions.getMessageBody()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
contentType
Sets the value ofFixedResponseOptions.getContentType()
- Parameters:
contentType
- Content Type of the response. Valid Values: text/plain | text/css | text/html | application/javascript | application/json- Returns:
this
-
messageBody
Sets the value ofFixedResponseOptions.getMessageBody()
- Parameters:
messageBody
- The response body.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<FixedResponseOptions>
- Returns:
- a new instance of
FixedResponseOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-