Struct bonsaidb::keystorage::s3::aws_sdk_s3::types::builders::RedirectBuilder
#[non_exhaustive]pub struct RedirectBuilder { /* private fields */ }
Expand description
A builder for Redirect
.
Implementations§
§impl RedirectBuilder
impl RedirectBuilder
pub fn host_name(self, input: impl Into<String>) -> RedirectBuilder
pub fn host_name(self, input: impl Into<String>) -> RedirectBuilder
The host name to use in the redirect request.
pub fn set_host_name(self, input: Option<String>) -> RedirectBuilder
pub fn set_host_name(self, input: Option<String>) -> RedirectBuilder
The host name to use in the redirect request.
pub fn get_host_name(&self) -> &Option<String>
pub fn get_host_name(&self) -> &Option<String>
The host name to use in the redirect request.
pub fn http_redirect_code(self, input: impl Into<String>) -> RedirectBuilder
pub fn http_redirect_code(self, input: impl Into<String>) -> RedirectBuilder
The HTTP redirect code to use on the response. Not required if one of the siblings is present.
pub fn set_http_redirect_code(self, input: Option<String>) -> RedirectBuilder
pub fn set_http_redirect_code(self, input: Option<String>) -> RedirectBuilder
The HTTP redirect code to use on the response. Not required if one of the siblings is present.
pub fn get_http_redirect_code(&self) -> &Option<String>
pub fn get_http_redirect_code(&self) -> &Option<String>
The HTTP redirect code to use on the response. Not required if one of the siblings is present.
pub fn protocol(self, input: Protocol) -> RedirectBuilder
pub fn protocol(self, input: Protocol) -> RedirectBuilder
Protocol to use when redirecting requests. The default is the protocol that is used in the original request.
pub fn set_protocol(self, input: Option<Protocol>) -> RedirectBuilder
pub fn set_protocol(self, input: Option<Protocol>) -> RedirectBuilder
Protocol to use when redirecting requests. The default is the protocol that is used in the original request.
pub fn get_protocol(&self) -> &Option<Protocol>
pub fn get_protocol(&self) -> &Option<Protocol>
Protocol to use when redirecting requests. The default is the protocol that is used in the original request.
pub fn replace_key_prefix_with(
self,
input: impl Into<String>
) -> RedirectBuilder
pub fn replace_key_prefix_with( self, input: impl Into<String> ) -> RedirectBuilder
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.
pub fn set_replace_key_prefix_with(
self,
input: Option<String>
) -> RedirectBuilder
pub fn set_replace_key_prefix_with( self, input: Option<String> ) -> RedirectBuilder
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.
pub fn get_replace_key_prefix_with(&self) -> &Option<String>
pub fn get_replace_key_prefix_with(&self) -> &Option<String>
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.
pub fn replace_key_with(self, input: impl Into<String>) -> RedirectBuilder
pub fn replace_key_with(self, input: impl Into<String>) -> RedirectBuilder
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.
pub fn set_replace_key_with(self, input: Option<String>) -> RedirectBuilder
pub fn set_replace_key_with(self, input: Option<String>) -> RedirectBuilder
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.
pub fn get_replace_key_with(&self) -> &Option<String>
pub fn get_replace_key_with(&self) -> &Option<String>
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.
Trait Implementations§
§impl Clone for RedirectBuilder
impl Clone for RedirectBuilder
§fn clone(&self) -> RedirectBuilder
fn clone(&self) -> RedirectBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for RedirectBuilder
impl Debug for RedirectBuilder
§impl Default for RedirectBuilder
impl Default for RedirectBuilder
§fn default() -> RedirectBuilder
fn default() -> RedirectBuilder
§impl PartialEq for RedirectBuilder
impl PartialEq for RedirectBuilder
§fn eq(&self, other: &RedirectBuilder) -> bool
fn eq(&self, other: &RedirectBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.