Struct aws_sdk_xray::types::builders::SamplingTargetDocumentBuilder
source · #[non_exhaustive]pub struct SamplingTargetDocumentBuilder { /* private fields */ }
Expand description
A builder for SamplingTargetDocument
.
Implementations§
source§impl SamplingTargetDocumentBuilder
impl SamplingTargetDocumentBuilder
sourcepub fn set_rule_name(self, input: Option<String>) -> Self
pub fn set_rule_name(self, input: Option<String>) -> Self
The name of the sampling rule.
sourcepub fn get_rule_name(&self) -> &Option<String>
pub fn get_rule_name(&self) -> &Option<String>
The name of the sampling rule.
sourcepub fn fixed_rate(self, input: f64) -> Self
pub fn fixed_rate(self, input: f64) -> Self
The percentage of matching requests to instrument, after the reservoir is exhausted.
sourcepub fn set_fixed_rate(self, input: Option<f64>) -> Self
pub fn set_fixed_rate(self, input: Option<f64>) -> Self
The percentage of matching requests to instrument, after the reservoir is exhausted.
sourcepub fn get_fixed_rate(&self) -> &Option<f64>
pub fn get_fixed_rate(&self) -> &Option<f64>
The percentage of matching requests to instrument, after the reservoir is exhausted.
sourcepub fn reservoir_quota(self, input: i32) -> Self
pub fn reservoir_quota(self, input: i32) -> Self
The number of requests per second that X-Ray allocated for this service.
sourcepub fn set_reservoir_quota(self, input: Option<i32>) -> Self
pub fn set_reservoir_quota(self, input: Option<i32>) -> Self
The number of requests per second that X-Ray allocated for this service.
sourcepub fn get_reservoir_quota(&self) -> &Option<i32>
pub fn get_reservoir_quota(&self) -> &Option<i32>
The number of requests per second that X-Ray allocated for this service.
sourcepub fn reservoir_quota_ttl(self, input: DateTime) -> Self
pub fn reservoir_quota_ttl(self, input: DateTime) -> Self
When the reservoir quota expires.
sourcepub fn set_reservoir_quota_ttl(self, input: Option<DateTime>) -> Self
pub fn set_reservoir_quota_ttl(self, input: Option<DateTime>) -> Self
When the reservoir quota expires.
sourcepub fn get_reservoir_quota_ttl(&self) -> &Option<DateTime>
pub fn get_reservoir_quota_ttl(&self) -> &Option<DateTime>
When the reservoir quota expires.
sourcepub fn interval(self, input: i32) -> Self
pub fn interval(self, input: i32) -> Self
The number of seconds for the service to wait before getting sampling targets again.
sourcepub fn set_interval(self, input: Option<i32>) -> Self
pub fn set_interval(self, input: Option<i32>) -> Self
The number of seconds for the service to wait before getting sampling targets again.
sourcepub fn get_interval(&self) -> &Option<i32>
pub fn get_interval(&self) -> &Option<i32>
The number of seconds for the service to wait before getting sampling targets again.
sourcepub fn build(self) -> SamplingTargetDocument
pub fn build(self) -> SamplingTargetDocument
Consumes the builder and constructs a SamplingTargetDocument
.
Trait Implementations§
source§impl Clone for SamplingTargetDocumentBuilder
impl Clone for SamplingTargetDocumentBuilder
source§fn clone(&self) -> SamplingTargetDocumentBuilder
fn clone(&self) -> SamplingTargetDocumentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for SamplingTargetDocumentBuilder
impl Default for SamplingTargetDocumentBuilder
source§fn default() -> SamplingTargetDocumentBuilder
fn default() -> SamplingTargetDocumentBuilder
source§impl PartialEq for SamplingTargetDocumentBuilder
impl PartialEq for SamplingTargetDocumentBuilder
source§fn eq(&self, other: &SamplingTargetDocumentBuilder) -> bool
fn eq(&self, other: &SamplingTargetDocumentBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for SamplingTargetDocumentBuilder
Auto Trait Implementations§
impl Freeze for SamplingTargetDocumentBuilder
impl RefUnwindSafe for SamplingTargetDocumentBuilder
impl Send for SamplingTargetDocumentBuilder
impl Sync for SamplingTargetDocumentBuilder
impl Unpin for SamplingTargetDocumentBuilder
impl UnwindSafe for SamplingTargetDocumentBuilder
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
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>
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>
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 more