public static final class CfnBucket.RedirectRuleProperty.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnBucket.RedirectRuleProperty
CfnBucket.RedirectRuleProperty
CfnBucket.RedirectRuleProperty.Builder, CfnBucket.RedirectRuleProperty.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getHostName()
The host name to use in the redirect request.
|
java.lang.String |
getHttpRedirectCode()
The HTTP redirect code to use on the response.
|
java.lang.String |
getProtocol()
Protocol to use when redirecting requests.
|
java.lang.String |
getReplaceKeyPrefixWith()
The object key prefix to use in the redirect request.
|
java.lang.String |
getReplaceKeyWith()
The specific object key to use in the redirect request.
|
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
builder
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef
- Reference to the JSII managed object.public final java.lang.String getHostName()
CfnBucket.RedirectRuleProperty
getHostName
in interface CfnBucket.RedirectRuleProperty
public final java.lang.String getHttpRedirectCode()
CfnBucket.RedirectRuleProperty
Not required if one of the siblings is present.
getHttpRedirectCode
in interface CfnBucket.RedirectRuleProperty
public final java.lang.String getProtocol()
CfnBucket.RedirectRuleProperty
The default is the protocol that is used in the original request.
getProtocol
in interface CfnBucket.RedirectRuleProperty
public final java.lang.String getReplaceKeyPrefixWith()
CfnBucket.RedirectRuleProperty
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 .
getReplaceKeyPrefixWith
in interface CfnBucket.RedirectRuleProperty
public final java.lang.String getReplaceKeyWith()
CfnBucket.RedirectRuleProperty
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 .
getReplaceKeyWith
in interface CfnBucket.RedirectRuleProperty
public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
public final boolean equals(java.lang.Object o)
public final int hashCode()