Struct aws_sdk_xray::types::builders::SamplingStrategyBuilder
source · #[non_exhaustive]pub struct SamplingStrategyBuilder { /* private fields */ }
Expand description
A builder for SamplingStrategy
.
Implementations§
source§impl SamplingStrategyBuilder
impl SamplingStrategyBuilder
sourcepub fn name(self, input: SamplingStrategyName) -> Self
pub fn name(self, input: SamplingStrategyName) -> Self
The name of a sampling rule.
sourcepub fn set_name(self, input: Option<SamplingStrategyName>) -> Self
pub fn set_name(self, input: Option<SamplingStrategyName>) -> Self
The name of a sampling rule.
sourcepub fn get_name(&self) -> &Option<SamplingStrategyName>
pub fn get_name(&self) -> &Option<SamplingStrategyName>
The name of a sampling rule.
sourcepub fn build(self) -> SamplingStrategy
pub fn build(self) -> SamplingStrategy
Consumes the builder and constructs a SamplingStrategy
.
Trait Implementations§
source§impl Clone for SamplingStrategyBuilder
impl Clone for SamplingStrategyBuilder
source§fn clone(&self) -> SamplingStrategyBuilder
fn clone(&self) -> SamplingStrategyBuilder
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 SamplingStrategyBuilder
impl Debug for SamplingStrategyBuilder
source§impl Default for SamplingStrategyBuilder
impl Default for SamplingStrategyBuilder
source§fn default() -> SamplingStrategyBuilder
fn default() -> SamplingStrategyBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for SamplingStrategyBuilder
impl PartialEq for SamplingStrategyBuilder
source§fn eq(&self, other: &SamplingStrategyBuilder) -> bool
fn eq(&self, other: &SamplingStrategyBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SamplingStrategyBuilder
Auto Trait Implementations§
impl RefUnwindSafe for SamplingStrategyBuilder
impl Send for SamplingStrategyBuilder
impl Sync for SamplingStrategyBuilder
impl Unpin for SamplingStrategyBuilder
impl UnwindSafe for SamplingStrategyBuilder
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.