Class CfnBucket.RedirectRuleProperty.Jsii$Proxy

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

@Stability(Stable) @Internal public static final class CfnBucket.RedirectRuleProperty.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnBucket.RedirectRuleProperty
An implementation for CfnBucket.RedirectRuleProperty
  • 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(CfnBucket.RedirectRuleProperty.Builder builder)
      Constructor that initializes the object based on literal property values passed by the CfnBucket.RedirectRuleProperty.Builder.
  • Method Details

    • getHostName

      public final String getHostName()
      Description copied from interface: CfnBucket.RedirectRuleProperty
      The host name to use in the redirect request.
      Specified by:
      getHostName in interface CfnBucket.RedirectRuleProperty
    • getHttpRedirectCode

      public final String getHttpRedirectCode()
      Description copied from interface: CfnBucket.RedirectRuleProperty
      The HTTP redirect code to use on the response.

      Not required if one of the siblings is present.

      Specified by:
      getHttpRedirectCode in interface CfnBucket.RedirectRuleProperty
    • getProtocol

      public final String getProtocol()
      Description copied from interface: CfnBucket.RedirectRuleProperty
      Protocol to use when redirecting requests.

      The default is the protocol that is used in the original request.

      Specified by:
      getProtocol in interface CfnBucket.RedirectRuleProperty
    • getReplaceKeyPrefixWith

      public final String getReplaceKeyPrefixWith()
      Description copied from interface: CfnBucket.RedirectRuleProperty
      The object key prefix to use in the redirect request.

      For example, to redirect requests for all pages with prefix docs/ (objects in the docs/ folder) to documents/ , you can set a condition block with KeyPrefixEquals set to docs/ and in the Redirect set ReplaceKeyPrefixWith to /documents . Not required if one of the siblings is present. Can be present only if ReplaceKeyWith is not provided.

      Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests. For more information, see XML related object key constraints .

      Specified by:
      getReplaceKeyPrefixWith in interface CfnBucket.RedirectRuleProperty
    • getReplaceKeyWith

      public final String getReplaceKeyWith()
      Description copied from interface: CfnBucket.RedirectRuleProperty
      The specific object key to use in the redirect request.

      For example, redirect request to error.html . Not required if one of the siblings is present. Can be present only if ReplaceKeyPrefixWith is not provided.

      Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests. For more information, see XML related object key constraints .

      Specified by:
      getReplaceKeyWith in interface CfnBucket.RedirectRuleProperty
    • $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