Interface FixedResponse
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
AddFixedResponseProps
- All Known Implementing Classes:
AddFixedResponseProps.Jsii$Proxy
,FixedResponse.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:44.337Z")
@Stability(Deprecated)
@Deprecated
public interface FixedResponse
extends software.amazon.jsii.JsiiSerializable
Deprecated.
(deprecated) A fixed response.
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.*; FixedResponse fixedResponse = FixedResponse.builder() .statusCode("statusCode") // the properties below are optional .contentType(ContentType.TEXT_PLAIN) .messageBody("messageBody") .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
Deprecated.static final class
Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic FixedResponse.Builder
builder()
Deprecated.default ContentType
Deprecated.default String
Deprecated.Deprecated.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getStatusCode
Deprecated.(deprecated) The HTTP response code (2XX, 4XX or 5XX). -
getContentType
Deprecated.(deprecated) The content type.Default: text/plain
-
getMessageBody
Deprecated.(deprecated) The message.Default: no message
-
builder
Deprecated.- Returns:
- a
FixedResponse.Builder
ofFixedResponse
-
ListenerAction.fixedResponse()
.