Class OriginOptions.Jsii$Proxy

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

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

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

    Constructors
    Modifier
    Constructor
    Description
    protected
    Constructor that initializes the object based on literal property values passed by the OriginOptions.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 number of times that CloudFront attempts to connect to the origin;
    final Duration
    The number of seconds that CloudFront waits when trying to establish a connection to the origin.
    A list of HTTP header names and values that CloudFront adds to requests it sends to the origin.
    final String
    When you enable Origin Shield in the AWS Region that has the lowest latency to your origin, you can get better network performance.
    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(OriginOptions.Builder builder)
      Constructor that initializes the object based on literal property values passed by the OriginOptions.Builder.
  • Method Details

    • getConnectionAttempts

      public final Number getConnectionAttempts()
      Description copied from interface: OriginOptions
      The number of times that CloudFront attempts to connect to the origin;

      valid values are 1, 2, or 3 attempts.

      Default: 3

      Specified by:
      getConnectionAttempts in interface OriginOptions
    • getConnectionTimeout

      public final Duration getConnectionTimeout()
      Description copied from interface: OriginOptions
      The number of seconds that CloudFront waits when trying to establish a connection to the origin.

      Valid values are 1-10 seconds, inclusive.

      Default: Duration.seconds(10)

      Specified by:
      getConnectionTimeout in interface OriginOptions
    • getCustomHeaders

      public final Map<String,String> getCustomHeaders()
      Description copied from interface: OriginOptions
      A list of HTTP header names and values that CloudFront adds to requests it sends to the origin.

      Default: {}

      Specified by:
      getCustomHeaders in interface OriginOptions
    • getOriginShieldRegion

      public final String getOriginShieldRegion()
      Description copied from interface: OriginOptions
      When you enable Origin Shield in the AWS Region that has the lowest latency to your origin, you can get better network performance.

      Default: - origin shield not enabled

      Specified by:
      getOriginShieldRegion in interface OriginOptions
      See Also:
    • $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