#[non_exhaustive]pub struct MetricSourceBuilder { /* private fields */ }
Expand description
A builder for MetricSource
.
Implementations§
source§impl MetricSourceBuilder
impl MetricSourceBuilder
sourcepub fn provider(self, input: MetricSourceProvider) -> Self
pub fn provider(self, input: MetricSourceProvider) -> Self
The name of the metric source provider.
sourcepub fn set_provider(self, input: Option<MetricSourceProvider>) -> Self
pub fn set_provider(self, input: Option<MetricSourceProvider>) -> Self
The name of the metric source provider.
sourcepub fn get_provider(&self) -> &Option<MetricSourceProvider>
pub fn get_provider(&self) -> &Option<MetricSourceProvider>
The name of the metric source provider.
sourcepub fn provider_arn(self, input: impl Into<String>) -> Self
pub fn provider_arn(self, input: impl Into<String>) -> Self
The ARN of the metric source provider.
sourcepub fn set_provider_arn(self, input: Option<String>) -> Self
pub fn set_provider_arn(self, input: Option<String>) -> Self
The ARN of the metric source provider.
sourcepub fn get_provider_arn(&self) -> &Option<String>
pub fn get_provider_arn(&self) -> &Option<String>
The ARN of the metric source provider.
sourcepub fn build(self) -> MetricSource
pub fn build(self) -> MetricSource
Consumes the builder and constructs a MetricSource
.
Trait Implementations§
source§impl Clone for MetricSourceBuilder
impl Clone for MetricSourceBuilder
source§fn clone(&self) -> MetricSourceBuilder
fn clone(&self) -> MetricSourceBuilder
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 MetricSourceBuilder
impl Debug for MetricSourceBuilder
source§impl Default for MetricSourceBuilder
impl Default for MetricSourceBuilder
source§fn default() -> MetricSourceBuilder
fn default() -> MetricSourceBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for MetricSourceBuilder
impl PartialEq for MetricSourceBuilder
source§fn eq(&self, other: &MetricSourceBuilder) -> bool
fn eq(&self, other: &MetricSourceBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MetricSourceBuilder
Auto Trait Implementations§
impl RefUnwindSafe for MetricSourceBuilder
impl Send for MetricSourceBuilder
impl Sync for MetricSourceBuilder
impl Unpin for MetricSourceBuilder
impl UnwindSafe for MetricSourceBuilder
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>
Creates a shared type from an unshared type.