Struct aws_sdk_s3control::types::builders::CloudWatchMetricsBuilder
source · #[non_exhaustive]pub struct CloudWatchMetricsBuilder { /* private fields */ }
Expand description
A builder for CloudWatchMetrics
.
Implementations§
source§impl CloudWatchMetricsBuilder
impl CloudWatchMetricsBuilder
sourcepub fn is_enabled(self, input: bool) -> Self
pub fn is_enabled(self, input: bool) -> Self
A container that indicates whether CloudWatch publishing for S3 Storage Lens metrics is enabled. A value of true
indicates that CloudWatch publishing for S3 Storage Lens metrics is enabled.
sourcepub fn set_is_enabled(self, input: Option<bool>) -> Self
pub fn set_is_enabled(self, input: Option<bool>) -> Self
A container that indicates whether CloudWatch publishing for S3 Storage Lens metrics is enabled. A value of true
indicates that CloudWatch publishing for S3 Storage Lens metrics is enabled.
sourcepub fn get_is_enabled(&self) -> &Option<bool>
pub fn get_is_enabled(&self) -> &Option<bool>
A container that indicates whether CloudWatch publishing for S3 Storage Lens metrics is enabled. A value of true
indicates that CloudWatch publishing for S3 Storage Lens metrics is enabled.
sourcepub fn build(self) -> CloudWatchMetrics
pub fn build(self) -> CloudWatchMetrics
Consumes the builder and constructs a CloudWatchMetrics
.
Trait Implementations§
source§impl Clone for CloudWatchMetricsBuilder
impl Clone for CloudWatchMetricsBuilder
source§fn clone(&self) -> CloudWatchMetricsBuilder
fn clone(&self) -> CloudWatchMetricsBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CloudWatchMetricsBuilder
impl Debug for CloudWatchMetricsBuilder
source§impl Default for CloudWatchMetricsBuilder
impl Default for CloudWatchMetricsBuilder
source§fn default() -> CloudWatchMetricsBuilder
fn default() -> CloudWatchMetricsBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for CloudWatchMetricsBuilder
impl PartialEq for CloudWatchMetricsBuilder
source§fn eq(&self, other: &CloudWatchMetricsBuilder) -> bool
fn eq(&self, other: &CloudWatchMetricsBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CloudWatchMetricsBuilder
Auto Trait Implementations§
impl Freeze for CloudWatchMetricsBuilder
impl RefUnwindSafe for CloudWatchMetricsBuilder
impl Send for CloudWatchMetricsBuilder
impl Sync for CloudWatchMetricsBuilder
impl Unpin for CloudWatchMetricsBuilder
impl UnwindSafe for CloudWatchMetricsBuilder
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.