Struct aws_sdk_waf::types::builders::SampledHttpRequestBuilder
source · #[non_exhaustive]pub struct SampledHttpRequestBuilder { /* private fields */ }
Expand description
A builder for SampledHttpRequest
.
Implementations§
source§impl SampledHttpRequestBuilder
impl SampledHttpRequestBuilder
sourcepub fn request(self, input: HttpRequest) -> Self
pub fn request(self, input: HttpRequest) -> Self
A complex type that contains detailed information about the request.
This field is required.sourcepub fn set_request(self, input: Option<HttpRequest>) -> Self
pub fn set_request(self, input: Option<HttpRequest>) -> Self
A complex type that contains detailed information about the request.
sourcepub fn get_request(&self) -> &Option<HttpRequest>
pub fn get_request(&self) -> &Option<HttpRequest>
A complex type that contains detailed information about the request.
sourcepub fn weight(self, input: i64) -> Self
pub fn weight(self, input: i64) -> Self
A value that indicates how one result in the response relates proportionally to other results in the response. A result that has a weight of 2
represents roughly twice as many CloudFront web requests as a result that has a weight of 1
.
sourcepub fn set_weight(self, input: Option<i64>) -> Self
pub fn set_weight(self, input: Option<i64>) -> Self
A value that indicates how one result in the response relates proportionally to other results in the response. A result that has a weight of 2
represents roughly twice as many CloudFront web requests as a result that has a weight of 1
.
sourcepub fn get_weight(&self) -> &Option<i64>
pub fn get_weight(&self) -> &Option<i64>
A value that indicates how one result in the response relates proportionally to other results in the response. A result that has a weight of 2
represents roughly twice as many CloudFront web requests as a result that has a weight of 1
.
sourcepub fn timestamp(self, input: DateTime) -> Self
pub fn timestamp(self, input: DateTime) -> Self
The time at which AWS WAF received the request from your AWS resource, in Unix time format (in seconds).
sourcepub fn set_timestamp(self, input: Option<DateTime>) -> Self
pub fn set_timestamp(self, input: Option<DateTime>) -> Self
The time at which AWS WAF received the request from your AWS resource, in Unix time format (in seconds).
sourcepub fn get_timestamp(&self) -> &Option<DateTime>
pub fn get_timestamp(&self) -> &Option<DateTime>
The time at which AWS WAF received the request from your AWS resource, in Unix time format (in seconds).
sourcepub fn action(self, input: impl Into<String>) -> Self
pub fn action(self, input: impl Into<String>) -> Self
The action for the Rule
that the request matched: ALLOW
, BLOCK
, or COUNT
.
sourcepub fn set_action(self, input: Option<String>) -> Self
pub fn set_action(self, input: Option<String>) -> Self
The action for the Rule
that the request matched: ALLOW
, BLOCK
, or COUNT
.
sourcepub fn get_action(&self) -> &Option<String>
pub fn get_action(&self) -> &Option<String>
The action for the Rule
that the request matched: ALLOW
, BLOCK
, or COUNT
.
sourcepub fn rule_within_rule_group(self, input: impl Into<String>) -> Self
pub fn rule_within_rule_group(self, input: impl Into<String>) -> Self
This value is returned if the GetSampledRequests
request specifies the ID of a RuleGroup
rather than the ID of an individual rule. RuleWithinRuleGroup
is the rule within the specified RuleGroup
that matched the request listed in the response.
sourcepub fn set_rule_within_rule_group(self, input: Option<String>) -> Self
pub fn set_rule_within_rule_group(self, input: Option<String>) -> Self
This value is returned if the GetSampledRequests
request specifies the ID of a RuleGroup
rather than the ID of an individual rule. RuleWithinRuleGroup
is the rule within the specified RuleGroup
that matched the request listed in the response.
sourcepub fn get_rule_within_rule_group(&self) -> &Option<String>
pub fn get_rule_within_rule_group(&self) -> &Option<String>
This value is returned if the GetSampledRequests
request specifies the ID of a RuleGroup
rather than the ID of an individual rule. RuleWithinRuleGroup
is the rule within the specified RuleGroup
that matched the request listed in the response.
sourcepub fn build(self) -> SampledHttpRequest
pub fn build(self) -> SampledHttpRequest
Consumes the builder and constructs a SampledHttpRequest
.
Trait Implementations§
source§impl Clone for SampledHttpRequestBuilder
impl Clone for SampledHttpRequestBuilder
source§fn clone(&self) -> SampledHttpRequestBuilder
fn clone(&self) -> SampledHttpRequestBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SampledHttpRequestBuilder
impl Debug for SampledHttpRequestBuilder
source§impl Default for SampledHttpRequestBuilder
impl Default for SampledHttpRequestBuilder
source§fn default() -> SampledHttpRequestBuilder
fn default() -> SampledHttpRequestBuilder
source§impl PartialEq for SampledHttpRequestBuilder
impl PartialEq for SampledHttpRequestBuilder
source§fn eq(&self, other: &SampledHttpRequestBuilder) -> bool
fn eq(&self, other: &SampledHttpRequestBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SampledHttpRequestBuilder
Auto Trait Implementations§
impl Freeze for SampledHttpRequestBuilder
impl RefUnwindSafe for SampledHttpRequestBuilder
impl Send for SampledHttpRequestBuilder
impl Sync for SampledHttpRequestBuilder
impl Unpin for SampledHttpRequestBuilder
impl UnwindSafe for SampledHttpRequestBuilder
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> 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