Struct aws_sdk_s3::types::builders::MetricsConfigurationBuilder
source · #[non_exhaustive]pub struct MetricsConfigurationBuilder { /* private fields */ }
Expand description
A builder for MetricsConfiguration
.
Implementations§
source§impl MetricsConfigurationBuilder
impl MetricsConfigurationBuilder
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The ID used to identify the metrics configuration. The ID has a 64 character limit and can only contain letters, numbers, periods, dashes, and underscores.
This field is required.sourcepub fn set_id(self, input: Option<String>) -> Self
pub fn set_id(self, input: Option<String>) -> Self
The ID used to identify the metrics configuration. The ID has a 64 character limit and can only contain letters, numbers, periods, dashes, and underscores.
sourcepub fn get_id(&self) -> &Option<String>
pub fn get_id(&self) -> &Option<String>
The ID used to identify the metrics configuration. The ID has a 64 character limit and can only contain letters, numbers, periods, dashes, and underscores.
sourcepub fn filter(self, input: MetricsFilter) -> Self
pub fn filter(self, input: MetricsFilter) -> Self
Specifies a metrics configuration filter. The metrics configuration will only include objects that meet the filter's criteria. A filter must be a prefix, an object tag, an access point ARN, or a conjunction (MetricsAndOperator).
sourcepub fn set_filter(self, input: Option<MetricsFilter>) -> Self
pub fn set_filter(self, input: Option<MetricsFilter>) -> Self
Specifies a metrics configuration filter. The metrics configuration will only include objects that meet the filter's criteria. A filter must be a prefix, an object tag, an access point ARN, or a conjunction (MetricsAndOperator).
sourcepub fn get_filter(&self) -> &Option<MetricsFilter>
pub fn get_filter(&self) -> &Option<MetricsFilter>
Specifies a metrics configuration filter. The metrics configuration will only include objects that meet the filter's criteria. A filter must be a prefix, an object tag, an access point ARN, or a conjunction (MetricsAndOperator).
sourcepub fn build(self) -> Result<MetricsConfiguration, BuildError>
pub fn build(self) -> Result<MetricsConfiguration, BuildError>
Consumes the builder and constructs a MetricsConfiguration
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for MetricsConfigurationBuilder
impl Clone for MetricsConfigurationBuilder
source§fn clone(&self) -> MetricsConfigurationBuilder
fn clone(&self) -> MetricsConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MetricsConfigurationBuilder
impl Debug for MetricsConfigurationBuilder
source§impl Default for MetricsConfigurationBuilder
impl Default for MetricsConfigurationBuilder
source§fn default() -> MetricsConfigurationBuilder
fn default() -> MetricsConfigurationBuilder
impl StructuralPartialEq for MetricsConfigurationBuilder
Auto Trait Implementations§
impl Freeze for MetricsConfigurationBuilder
impl RefUnwindSafe for MetricsConfigurationBuilder
impl Send for MetricsConfigurationBuilder
impl Sync for MetricsConfigurationBuilder
impl Unpin for MetricsConfigurationBuilder
impl UnwindSafe for MetricsConfigurationBuilder
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
)