@Stability(value=Stable) public static final class CfnBucket.RedirectRuleProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnBucket.RedirectRuleProperty>
CfnBucket.RedirectRuleProperty| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnBucket.RedirectRuleProperty |
build()
Builds the configured instance.
|
CfnBucket.RedirectRuleProperty.Builder |
hostName(String hostName)
Sets the value of
CfnBucket.RedirectRuleProperty.getHostName() |
CfnBucket.RedirectRuleProperty.Builder |
httpRedirectCode(String httpRedirectCode)
Sets the value of
CfnBucket.RedirectRuleProperty.getHttpRedirectCode() |
CfnBucket.RedirectRuleProperty.Builder |
protocol(String protocol)
Sets the value of
CfnBucket.RedirectRuleProperty.getProtocol() |
CfnBucket.RedirectRuleProperty.Builder |
replaceKeyPrefixWith(String replaceKeyPrefixWith)
Sets the value of
CfnBucket.RedirectRuleProperty.getReplaceKeyPrefixWith() |
CfnBucket.RedirectRuleProperty.Builder |
replaceKeyWith(String replaceKeyWith)
Sets the value of
CfnBucket.RedirectRuleProperty.getReplaceKeyWith() |
@Stability(value=Stable) public CfnBucket.RedirectRuleProperty.Builder hostName(String hostName)
CfnBucket.RedirectRuleProperty.getHostName()hostName - The host name to use in the redirect request.this@Stability(value=Stable) public CfnBucket.RedirectRuleProperty.Builder httpRedirectCode(String httpRedirectCode)
CfnBucket.RedirectRuleProperty.getHttpRedirectCode()httpRedirectCode - The HTTP redirect code to use on the response.
Not required if one of the siblings is present.this@Stability(value=Stable) public CfnBucket.RedirectRuleProperty.Builder protocol(String protocol)
CfnBucket.RedirectRuleProperty.getProtocol()protocol - Protocol to use when redirecting requests.
The default is the protocol that is used in the original request.this@Stability(value=Stable) public CfnBucket.RedirectRuleProperty.Builder replaceKeyPrefixWith(String replaceKeyPrefixWith)
CfnBucket.RedirectRuleProperty.getReplaceKeyPrefixWith()replaceKeyPrefixWith - 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 .
this@Stability(value=Stable) public CfnBucket.RedirectRuleProperty.Builder replaceKeyWith(String replaceKeyWith)
CfnBucket.RedirectRuleProperty.getReplaceKeyWith()replaceKeyWith - 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 .
this@Stability(value=Stable) public CfnBucket.RedirectRuleProperty build()
build in interface software.amazon.jsii.Builder<CfnBucket.RedirectRuleProperty>CfnBucket.RedirectRulePropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.