Class ResponseHeadersXSSProtection.Jsii$Proxy

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

@Stability(Stable) @Internal public static final class ResponseHeadersXSSProtection.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ResponseHeadersXSSProtection
An implementation for ResponseHeadersXSSProtection
  • 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.ResponseHeadersXSSProtection

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

    Constructors
    Modifier
    Constructor
    Description
    protected
    Constructor that initializes the object based on literal property values passed by the ResponseHeadersXSSProtection.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 Boolean
    A Boolean that determines whether CloudFront includes the mode=block directive in the X-XSS-Protection header.
    final Boolean
    A Boolean that determines whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.
    final Boolean
    A Boolean that determines the value of the X-XSS-Protection HTTP response header.
    final String
    A reporting URI, which CloudFront uses as the value of the report directive in the X-XSS-Protection header.
    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(ResponseHeadersXSSProtection.Builder builder)
      Constructor that initializes the object based on literal property values passed by the ResponseHeadersXSSProtection.Builder.
  • Method Details

    • getOverride

      public final Boolean getOverride()
      Description copied from interface: ResponseHeadersXSSProtection
      A Boolean that determines whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.
      Specified by:
      getOverride in interface ResponseHeadersXSSProtection
    • getProtection

      public final Boolean getProtection()
      Description copied from interface: ResponseHeadersXSSProtection
      A Boolean that determines the value of the X-XSS-Protection HTTP response header.

      When this setting is true, the value of the X-XSS-Protection header is 1. When this setting is false, the value of the X-XSS-Protection header is 0.

      Specified by:
      getProtection in interface ResponseHeadersXSSProtection
    • getModeBlock

      public final Boolean getModeBlock()
      Description copied from interface: ResponseHeadersXSSProtection
      A Boolean that determines whether CloudFront includes the mode=block directive in the X-XSS-Protection header.

      Default: false

      Specified by:
      getModeBlock in interface ResponseHeadersXSSProtection
    • getReportUri

      public final String getReportUri()
      Description copied from interface: ResponseHeadersXSSProtection
      A reporting URI, which CloudFront uses as the value of the report directive in the X-XSS-Protection header.

      You cannot specify a ReportUri when ModeBlock is true.

      Default: - no report uri

      Specified by:
      getReportUri in interface ResponseHeadersXSSProtection
    • $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