Struct aws_sdk_wafv2::operation::get_sampled_requests::builders::GetSampledRequestsOutputBuilder
source · #[non_exhaustive]pub struct GetSampledRequestsOutputBuilder { /* private fields */ }
Expand description
A builder for GetSampledRequestsOutput
.
Implementations§
source§impl GetSampledRequestsOutputBuilder
impl GetSampledRequestsOutputBuilder
sourcepub fn sampled_requests(self, input: SampledHttpRequest) -> Self
pub fn sampled_requests(self, input: SampledHttpRequest) -> Self
Appends an item to sampled_requests
.
To override the contents of this collection use set_sampled_requests
.
A complex type that contains detailed information about each of the requests in the sample.
sourcepub fn set_sampled_requests(
self,
input: Option<Vec<SampledHttpRequest>>
) -> Self
pub fn set_sampled_requests( self, input: Option<Vec<SampledHttpRequest>> ) -> Self
A complex type that contains detailed information about each of the requests in the sample.
sourcepub fn get_sampled_requests(&self) -> &Option<Vec<SampledHttpRequest>>
pub fn get_sampled_requests(&self) -> &Option<Vec<SampledHttpRequest>>
A complex type that contains detailed information about each of the requests in the sample.
sourcepub fn population_size(self, input: i64) -> Self
pub fn population_size(self, input: i64) -> Self
The total number of requests from which GetSampledRequests
got a sample of MaxItems
requests. If PopulationSize
is less than MaxItems
, the sample includes every request that your Amazon Web Services resource received during the specified time range.
sourcepub fn set_population_size(self, input: Option<i64>) -> Self
pub fn set_population_size(self, input: Option<i64>) -> Self
The total number of requests from which GetSampledRequests
got a sample of MaxItems
requests. If PopulationSize
is less than MaxItems
, the sample includes every request that your Amazon Web Services resource received during the specified time range.
sourcepub fn get_population_size(&self) -> &Option<i64>
pub fn get_population_size(&self) -> &Option<i64>
The total number of requests from which GetSampledRequests
got a sample of MaxItems
requests. If PopulationSize
is less than MaxItems
, the sample includes every request that your Amazon Web Services resource received during the specified time range.
sourcepub fn time_window(self, input: TimeWindow) -> Self
pub fn time_window(self, input: TimeWindow) -> Self
Usually, TimeWindow
is the time range that you specified in the GetSampledRequests
request. However, if your Amazon Web Services resource received more than 5,000 requests during the time range that you specified in the request, GetSampledRequests
returns the time range for the first 5,000 requests. Times are in Coordinated Universal Time (UTC) format.
sourcepub fn set_time_window(self, input: Option<TimeWindow>) -> Self
pub fn set_time_window(self, input: Option<TimeWindow>) -> Self
Usually, TimeWindow
is the time range that you specified in the GetSampledRequests
request. However, if your Amazon Web Services resource received more than 5,000 requests during the time range that you specified in the request, GetSampledRequests
returns the time range for the first 5,000 requests. Times are in Coordinated Universal Time (UTC) format.
sourcepub fn get_time_window(&self) -> &Option<TimeWindow>
pub fn get_time_window(&self) -> &Option<TimeWindow>
Usually, TimeWindow
is the time range that you specified in the GetSampledRequests
request. However, if your Amazon Web Services resource received more than 5,000 requests during the time range that you specified in the request, GetSampledRequests
returns the time range for the first 5,000 requests. Times are in Coordinated Universal Time (UTC) format.
sourcepub fn build(self) -> GetSampledRequestsOutput
pub fn build(self) -> GetSampledRequestsOutput
Consumes the builder and constructs a GetSampledRequestsOutput
.
Trait Implementations§
source§impl Clone for GetSampledRequestsOutputBuilder
impl Clone for GetSampledRequestsOutputBuilder
source§fn clone(&self) -> GetSampledRequestsOutputBuilder
fn clone(&self) -> GetSampledRequestsOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for GetSampledRequestsOutputBuilder
impl Default for GetSampledRequestsOutputBuilder
source§fn default() -> GetSampledRequestsOutputBuilder
fn default() -> GetSampledRequestsOutputBuilder
source§impl PartialEq for GetSampledRequestsOutputBuilder
impl PartialEq for GetSampledRequestsOutputBuilder
source§fn eq(&self, other: &GetSampledRequestsOutputBuilder) -> bool
fn eq(&self, other: &GetSampledRequestsOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.