Struct aws_sdk_s3::types::builders::RedirectBuilder
source · #[non_exhaustive]pub struct RedirectBuilder { /* private fields */ }
Expand description
A builder for Redirect
.
Implementations§
source§impl RedirectBuilder
impl RedirectBuilder
sourcepub fn host_name(self, input: impl Into<String>) -> Self
pub fn host_name(self, input: impl Into<String>) -> Self
The host name to use in the redirect request.
sourcepub fn set_host_name(self, input: Option<String>) -> Self
pub fn set_host_name(self, input: Option<String>) -> Self
The host name to use in the redirect request.
sourcepub fn get_host_name(&self) -> &Option<String>
pub fn get_host_name(&self) -> &Option<String>
The host name to use in the redirect request.
sourcepub fn http_redirect_code(self, input: impl Into<String>) -> Self
pub fn http_redirect_code(self, input: impl Into<String>) -> Self
The HTTP redirect code to use on the response. Not required if one of the siblings is present.
sourcepub fn set_http_redirect_code(self, input: Option<String>) -> Self
pub fn set_http_redirect_code(self, input: Option<String>) -> Self
The HTTP redirect code to use on the response. Not required if one of the siblings is present.
sourcepub 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.
sourcepub fn protocol(self, input: Protocol) -> Self
pub fn protocol(self, input: Protocol) -> Self
Protocol to use when redirecting requests. The default is the protocol that is used in the original request.
sourcepub fn set_protocol(self, input: Option<Protocol>) -> Self
pub fn set_protocol(self, input: Option<Protocol>) -> Self
Protocol to use when redirecting requests. The default is the protocol that is used in the original request.
sourcepub 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.
sourcepub fn replace_key_prefix_with(self, input: impl Into<String>) -> Self
pub fn replace_key_prefix_with(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_replace_key_prefix_with(self, input: Option<String>) -> Self
pub fn set_replace_key_prefix_with(self, input: Option<String>) -> Self
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.
sourcepub 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.
sourcepub fn replace_key_with(self, input: impl Into<String>) -> Self
pub fn replace_key_with(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_replace_key_with(self, input: Option<String>) -> Self
pub fn set_replace_key_with(self, input: Option<String>) -> Self
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.
sourcepub 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§
source§impl Clone for RedirectBuilder
impl Clone for RedirectBuilder
source§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 moresource§impl Debug for RedirectBuilder
impl Debug for RedirectBuilder
source§impl Default for RedirectBuilder
impl Default for RedirectBuilder
source§fn default() -> RedirectBuilder
fn default() -> RedirectBuilder
source§impl PartialEq for RedirectBuilder
impl PartialEq for RedirectBuilder
source§fn eq(&self, other: &RedirectBuilder) -> bool
fn eq(&self, other: &RedirectBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RedirectBuilder
Auto Trait Implementations§
impl Freeze for RedirectBuilder
impl RefUnwindSafe for RedirectBuilder
impl Send for RedirectBuilder
impl Sync for RedirectBuilder
impl Unpin for RedirectBuilder
impl UnwindSafe for RedirectBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more