#[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
impl StructuralPartialEq for MetricSourceBuilder
Auto Trait Implementations§
impl Freeze for MetricSourceBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
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>
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.