#[non_exhaustive]pub struct S3ConfigurationBuilder { /* private fields */ }
Expand description
A builder for S3Configuration
.
Implementations§
source§impl S3ConfigurationBuilder
impl S3ConfigurationBuilder
sourcepub fn bucket_name(self, input: impl Into<String>) -> Self
pub fn bucket_name(self, input: impl Into<String>) -> Self
Name of the S3 bucket under which error reports will be created.
This field is required.sourcepub fn set_bucket_name(self, input: Option<String>) -> Self
pub fn set_bucket_name(self, input: Option<String>) -> Self
Name of the S3 bucket under which error reports will be created.
sourcepub fn get_bucket_name(&self) -> &Option<String>
pub fn get_bucket_name(&self) -> &Option<String>
Name of the S3 bucket under which error reports will be created.
sourcepub fn object_key_prefix(self, input: impl Into<String>) -> Self
pub fn object_key_prefix(self, input: impl Into<String>) -> Self
Prefix for the error report key. Timestream by default adds the following prefix to the error report path.
sourcepub fn set_object_key_prefix(self, input: Option<String>) -> Self
pub fn set_object_key_prefix(self, input: Option<String>) -> Self
Prefix for the error report key. Timestream by default adds the following prefix to the error report path.
sourcepub fn get_object_key_prefix(&self) -> &Option<String>
pub fn get_object_key_prefix(&self) -> &Option<String>
Prefix for the error report key. Timestream by default adds the following prefix to the error report path.
sourcepub fn encryption_option(self, input: S3EncryptionOption) -> Self
pub fn encryption_option(self, input: S3EncryptionOption) -> Self
Encryption at rest options for the error reports. If no encryption option is specified, Timestream will choose SSE_S3 as default.
sourcepub fn set_encryption_option(self, input: Option<S3EncryptionOption>) -> Self
pub fn set_encryption_option(self, input: Option<S3EncryptionOption>) -> Self
Encryption at rest options for the error reports. If no encryption option is specified, Timestream will choose SSE_S3 as default.
sourcepub fn get_encryption_option(&self) -> &Option<S3EncryptionOption>
pub fn get_encryption_option(&self) -> &Option<S3EncryptionOption>
Encryption at rest options for the error reports. If no encryption option is specified, Timestream will choose SSE_S3 as default.
sourcepub fn build(self) -> Result<S3Configuration, BuildError>
pub fn build(self) -> Result<S3Configuration, BuildError>
Consumes the builder and constructs a S3Configuration
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for S3ConfigurationBuilder
impl Clone for S3ConfigurationBuilder
source§fn clone(&self) -> S3ConfigurationBuilder
fn clone(&self) -> S3ConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for S3ConfigurationBuilder
impl Debug for S3ConfigurationBuilder
source§impl Default for S3ConfigurationBuilder
impl Default for S3ConfigurationBuilder
source§fn default() -> S3ConfigurationBuilder
fn default() -> S3ConfigurationBuilder
source§impl PartialEq for S3ConfigurationBuilder
impl PartialEq for S3ConfigurationBuilder
source§fn eq(&self, other: &S3ConfigurationBuilder) -> bool
fn eq(&self, other: &S3ConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for S3ConfigurationBuilder
Auto Trait Implementations§
impl Freeze for S3ConfigurationBuilder
impl RefUnwindSafe for S3ConfigurationBuilder
impl Send for S3ConfigurationBuilder
impl Sync for S3ConfigurationBuilder
impl Unpin for S3ConfigurationBuilder
impl UnwindSafe for S3ConfigurationBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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