CopyableBuilder<Redirect.Builder,Redirect>
, SdkBuilder<Redirect.Builder,Redirect>
public static interface Redirect.Builder extends CopyableBuilder<Redirect.Builder,Redirect>
Modifier and Type | Method | Description |
---|---|---|
Redirect.Builder |
hostName(String hostName) |
The host name to use in the redirect request.
|
Redirect.Builder |
httpRedirectCode(String httpRedirectCode) |
The HTTP redirect code to use on the response.
|
Redirect.Builder |
protocol(String protocol) |
Protocol to use (http, https) when redirecting requests.
|
Redirect.Builder |
protocol(Protocol protocol) |
Protocol to use (http, https) when redirecting requests.
|
Redirect.Builder |
replaceKeyPrefixWith(String replaceKeyPrefixWith) |
The object key prefix to use in the redirect request.
|
Redirect.Builder |
replaceKeyWith(String replaceKeyWith) |
The specific object key to use in the redirect request.
|
copy
apply, build
Redirect.Builder hostName(String hostName)
hostName
- The host name to use in the redirect request.Redirect.Builder httpRedirectCode(String httpRedirectCode)
httpRedirectCode
- The HTTP redirect code to use on the response. Not required if one of the siblings is present.Redirect.Builder protocol(String protocol)
protocol
- Protocol to use (http, https) when redirecting requests. The default is the protocol that is used in
the original request.Protocol
Redirect.Builder protocol(Protocol protocol)
protocol
- Protocol to use (http, https) when redirecting requests. The default is the protocol that is used in
the original request.Protocol
Redirect.Builder replaceKeyPrefixWith(String replaceKeyPrefixWith)
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.Redirect.Builder replaceKeyWith(String replaceKeyWith)
replaceKeyWith
- The specific object key to use in the redirect request. For example, redirect request to error.html.
Not required if one of the sibling is present. Can be present only if ReplaceKeyPrefixWith is not
provided.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.