@Stability(value=Stable)
public static interface CfnListener.FixedResponseConfigProperty
extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.elasticloadbalancingv2.*;
FixedResponseConfigProperty fixedResponseConfigProperty = FixedResponseConfigProperty.builder()
.statusCode("statusCode")
// the properties below are optional
.contentType("contentType")
.messageBody("messageBody")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnListener.FixedResponseConfigProperty.Builder
A builder for
CfnListener.FixedResponseConfigProperty |
static class |
CfnListener.FixedResponseConfigProperty.Jsii$Proxy
An implementation for
CfnListener.FixedResponseConfigProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnListener.FixedResponseConfigProperty.Builder |
builder() |
default String |
getContentType()
The content type.
|
default String |
getMessageBody()
The message.
|
String |
getStatusCode()
The HTTP response code (2XX, 4XX, or 5XX).
|
@Stability(value=Stable) @NotNull String getStatusCode()
@Stability(value=Stable) @Nullable default String getContentType()
Valid Values: text/plain | text/css | text/html | application/javascript | application/json
@Stability(value=Stable) @Nullable default String getMessageBody()
@Stability(value=Stable) static CfnListener.FixedResponseConfigProperty.Builder builder()
Copyright © 2022. All rights reserved.