Class ErrorResponse.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.cloudfront.ErrorResponse.Jsii$Proxy
All Implemented Interfaces:
ErrorResponse, software.amazon.jsii.JsiiSerializable
Enclosing interface:
ErrorResponse

@Stability(Stable) @Internal public static final class ErrorResponse.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ErrorResponse
An implementation for ErrorResponse
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode

    Nested classes/interfaces inherited from interface software.amazon.awscdk.services.cloudfront.ErrorResponse

    ErrorResponse.Builder, ErrorResponse.Jsii$Proxy
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Constructor that initializes the object based on literal property values passed by the ErrorResponse.Builder.
    protected
    Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
    Constructor that initializes the object based on values retrieved from the JsiiObject.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.fasterxml.jackson.databind.JsonNode
     
    final boolean
     
    final Number
    The HTTP status code for which you want to specify a custom error page and/or a caching duration.
    final Number
    The HTTP status code that you want CloudFront to return to the viewer along with the custom error page.
    final String
    The path to the custom error page that you want CloudFront to return to a viewer when your origin returns the httpStatus, for example, /4xx-errors/403-forbidden.html.
    final Duration
    The minimum amount of time, in seconds, that you want CloudFront to cache the HTTP status code specified in ErrorCode.
    final int
     

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Jsii$Proxy

      protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
      Parameters:
      objRef - Reference to the JSII managed object.
    • Jsii$Proxy

      protected Jsii$Proxy(ErrorResponse.Builder builder)
      Constructor that initializes the object based on literal property values passed by the ErrorResponse.Builder.
  • Method Details

    • getHttpStatus

      public final Number getHttpStatus()
      Description copied from interface: ErrorResponse
      The HTTP status code for which you want to specify a custom error page and/or a caching duration.
      Specified by:
      getHttpStatus in interface ErrorResponse
    • getResponseHttpStatus

      public final Number getResponseHttpStatus()
      Description copied from interface: ErrorResponse
      The HTTP status code that you want CloudFront to return to the viewer along with the custom error page.

      If you specify a value for responseHttpStatus, you must also specify a value for responsePagePath.

      Default: - the error code will be returned as the response code.

      Specified by:
      getResponseHttpStatus in interface ErrorResponse
    • getResponsePagePath

      public final String getResponsePagePath()
      Description copied from interface: ErrorResponse
      The path to the custom error page that you want CloudFront to return to a viewer when your origin returns the httpStatus, for example, /4xx-errors/403-forbidden.html.

      Default: - the default CloudFront response is shown.

      Specified by:
      getResponsePagePath in interface ErrorResponse
    • getTtl

      public final Duration getTtl()
      Description copied from interface: ErrorResponse
      The minimum amount of time, in seconds, that you want CloudFront to cache the HTTP status code specified in ErrorCode.

      Default: - the default caching TTL behavior applies

      Specified by:
      getTtl in interface ErrorResponse
    • $jsii$toJson

      @Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
      Specified by:
      $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object