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<SamplingTargetDocumentBuilder> for SamplingTargetDocumentBuilder
impl PartialEq<SamplingTargetDocumentBuilder> 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 ==
.