Struct aws_sdk_xray::types::builders::SamplingRuleUpdateBuilder
source · #[non_exhaustive]pub struct SamplingRuleUpdateBuilder { /* private fields */ }
Expand description
A builder for SamplingRuleUpdate
.
Implementations§
source§impl SamplingRuleUpdateBuilder
impl SamplingRuleUpdateBuilder
sourcepub fn rule_name(self, input: impl Into<String>) -> Self
pub fn rule_name(self, input: impl Into<String>) -> Self
The name of the sampling rule. Specify a rule by either name or ARN, but not both.
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. Specify a rule by either name or ARN, but not both.
sourcepub fn get_rule_name(&self) -> &Option<String>
pub fn get_rule_name(&self) -> &Option<String>
The name of the sampling rule. Specify a rule by either name or ARN, but not both.
sourcepub fn rule_arn(self, input: impl Into<String>) -> Self
pub fn rule_arn(self, input: impl Into<String>) -> Self
The ARN of the sampling rule. Specify a rule by either name or ARN, but not both.
sourcepub fn set_rule_arn(self, input: Option<String>) -> Self
pub fn set_rule_arn(self, input: Option<String>) -> Self
The ARN of the sampling rule. Specify a rule by either name or ARN, but not both.
sourcepub fn get_rule_arn(&self) -> &Option<String>
pub fn get_rule_arn(&self) -> &Option<String>
The ARN of the sampling rule. Specify a rule by either name or ARN, but not both.
sourcepub fn resource_arn(self, input: impl Into<String>) -> Self
pub fn resource_arn(self, input: impl Into<String>) -> Self
Matches the ARN of the Amazon Web Services resource on which the service runs.
sourcepub fn set_resource_arn(self, input: Option<String>) -> Self
pub fn set_resource_arn(self, input: Option<String>) -> Self
Matches the ARN of the Amazon Web Services resource on which the service runs.
sourcepub fn get_resource_arn(&self) -> &Option<String>
pub fn get_resource_arn(&self) -> &Option<String>
Matches the ARN of the Amazon Web Services resource on which the service runs.
sourcepub fn set_priority(self, input: Option<i32>) -> Self
pub fn set_priority(self, input: Option<i32>) -> Self
The priority of the sampling rule.
sourcepub fn get_priority(&self) -> &Option<i32>
pub fn get_priority(&self) -> &Option<i32>
The priority 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_size(self, input: i32) -> Self
pub fn reservoir_size(self, input: i32) -> Self
A fixed number of matching requests to instrument per second, prior to applying the fixed rate. The reservoir is not used directly by services, but applies to all services using the rule collectively.
sourcepub fn set_reservoir_size(self, input: Option<i32>) -> Self
pub fn set_reservoir_size(self, input: Option<i32>) -> Self
A fixed number of matching requests to instrument per second, prior to applying the fixed rate. The reservoir is not used directly by services, but applies to all services using the rule collectively.
sourcepub fn get_reservoir_size(&self) -> &Option<i32>
pub fn get_reservoir_size(&self) -> &Option<i32>
A fixed number of matching requests to instrument per second, prior to applying the fixed rate. The reservoir is not used directly by services, but applies to all services using the rule collectively.
sourcepub fn service_name(self, input: impl Into<String>) -> Self
pub fn service_name(self, input: impl Into<String>) -> Self
Matches the name
that the service uses to identify itself in segments.
sourcepub fn set_service_name(self, input: Option<String>) -> Self
pub fn set_service_name(self, input: Option<String>) -> Self
Matches the name
that the service uses to identify itself in segments.
sourcepub fn get_service_name(&self) -> &Option<String>
pub fn get_service_name(&self) -> &Option<String>
Matches the name
that the service uses to identify itself in segments.
sourcepub fn service_type(self, input: impl Into<String>) -> Self
pub fn service_type(self, input: impl Into<String>) -> Self
Matches the origin
that the service uses to identify its type in segments.
sourcepub fn set_service_type(self, input: Option<String>) -> Self
pub fn set_service_type(self, input: Option<String>) -> Self
Matches the origin
that the service uses to identify its type in segments.
sourcepub fn get_service_type(&self) -> &Option<String>
pub fn get_service_type(&self) -> &Option<String>
Matches the origin
that the service uses to identify its type in segments.
sourcepub fn http_method(self, input: impl Into<String>) -> Self
pub fn http_method(self, input: impl Into<String>) -> Self
Matches the HTTP method of a request.
sourcepub fn set_http_method(self, input: Option<String>) -> Self
pub fn set_http_method(self, input: Option<String>) -> Self
Matches the HTTP method of a request.
sourcepub fn get_http_method(&self) -> &Option<String>
pub fn get_http_method(&self) -> &Option<String>
Matches the HTTP method of a request.
sourcepub fn set_url_path(self, input: Option<String>) -> Self
pub fn set_url_path(self, input: Option<String>) -> Self
Matches the path from a request URL.
sourcepub fn get_url_path(&self) -> &Option<String>
pub fn get_url_path(&self) -> &Option<String>
Matches the path from a request URL.
sourcepub fn attributes(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn attributes(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to attributes
.
To override the contents of this collection use set_attributes
.
Matches attributes derived from the request.
sourcepub fn set_attributes(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_attributes(self, input: Option<HashMap<String, String>>) -> Self
Matches attributes derived from the request.
sourcepub fn get_attributes(&self) -> &Option<HashMap<String, String>>
pub fn get_attributes(&self) -> &Option<HashMap<String, String>>
Matches attributes derived from the request.
sourcepub fn build(self) -> SamplingRuleUpdate
pub fn build(self) -> SamplingRuleUpdate
Consumes the builder and constructs a SamplingRuleUpdate
.
Trait Implementations§
source§impl Clone for SamplingRuleUpdateBuilder
impl Clone for SamplingRuleUpdateBuilder
source§fn clone(&self) -> SamplingRuleUpdateBuilder
fn clone(&self) -> SamplingRuleUpdateBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SamplingRuleUpdateBuilder
impl Debug for SamplingRuleUpdateBuilder
source§impl Default for SamplingRuleUpdateBuilder
impl Default for SamplingRuleUpdateBuilder
source§fn default() -> SamplingRuleUpdateBuilder
fn default() -> SamplingRuleUpdateBuilder
impl StructuralPartialEq for SamplingRuleUpdateBuilder
Auto Trait Implementations§
impl Freeze for SamplingRuleUpdateBuilder
impl RefUnwindSafe for SamplingRuleUpdateBuilder
impl Send for SamplingRuleUpdateBuilder
impl Sync for SamplingRuleUpdateBuilder
impl Unpin for SamplingRuleUpdateBuilder
impl UnwindSafe for SamplingRuleUpdateBuilder
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