Class FixedResponse.Builder
java.lang.Object
software.amazon.awscdk.services.elasticloadbalancingv2.FixedResponse.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<FixedResponse>
- Enclosing interface:
- FixedResponse
@Stability(Deprecated)
@Deprecated
public static final class FixedResponse.Builder
extends Object
implements software.amazon.jsii.Builder<FixedResponse>
Deprecated.
A builder for
FixedResponse-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Deprecated.contentType(ContentType contentType) Deprecated.messageBody(String messageBody) Deprecated.statusCode(String statusCode) Deprecated.
-
Constructor Details
-
Builder
public Builder()Deprecated.
-
-
Method Details
-
statusCode
Deprecated.Sets the value ofFixedResponse.getStatusCode()- Parameters:
statusCode- The HTTP response code (2XX, 4XX or 5XX). This parameter is required.- Returns:
this
-
contentType
@Stability(Deprecated) @Deprecated public FixedResponse.Builder contentType(ContentType contentType) Deprecated.Sets the value ofFixedResponse.getContentType()- Parameters:
contentType- The content type.- Returns:
this
-
messageBody
Deprecated.Sets the value ofFixedResponse.getMessageBody()- Parameters:
messageBody- The message.- Returns:
this
-
build
Deprecated.Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<FixedResponse>- Returns:
- a new instance of
FixedResponse - Throws:
NullPointerException- if any required attribute was not provided
-