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.
superceded by ListenerAction.fixedResponse().
(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();
 

  • Method Details

    • getStatusCode

      @Stability(Deprecated) @Deprecated @NotNull String getStatusCode()
      Deprecated.
      (deprecated) The HTTP response code (2XX, 4XX or 5XX).
    • getContentType

      @Stability(Deprecated) @Deprecated @Nullable default ContentType getContentType()
      Deprecated.
      (deprecated) The content type.

      Default: text/plain

    • getMessageBody

      @Stability(Deprecated) @Deprecated @Nullable default String getMessageBody()
      Deprecated.
      (deprecated) The message.

      Default: no message

    • builder

      @Stability(Deprecated) @Deprecated static FixedResponse.Builder builder()
      Deprecated.
      Returns:
      a FixedResponse.Builder of FixedResponse