Struct aws_sdk_codegurusecurity::operation::list_findings_metrics::builders::ListFindingsMetricsFluentBuilder
source · pub struct ListFindingsMetricsFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to ListFindingsMetrics
.
Returns metrics about all findings in an account within a specified time range.
Implementations§
source§impl ListFindingsMetricsFluentBuilder
impl ListFindingsMetricsFluentBuilder
sourcepub fn as_input(&self) -> &ListFindingsMetricsInputBuilder
pub fn as_input(&self) -> &ListFindingsMetricsInputBuilder
Access the ListFindingsMetrics as a reference.
sourcepub async fn send(
self
) -> Result<ListFindingsMetricsOutput, SdkError<ListFindingsMetricsError, HttpResponse>>
pub async fn send( self ) -> Result<ListFindingsMetricsOutput, SdkError<ListFindingsMetricsError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<ListFindingsMetricsOutput, ListFindingsMetricsError, Self>, SdkError<ListFindingsMetricsError>>
pub async fn customize( self ) -> Result<CustomizableOperation<ListFindingsMetricsOutput, ListFindingsMetricsError, Self>, SdkError<ListFindingsMetricsError>>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn into_paginator(self) -> ListFindingsMetricsPaginator
pub fn into_paginator(self) -> ListFindingsMetricsPaginator
Create a paginator for this request
Paginators are used by calling send().await
which returns a Stream
.
sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request. For subsequent calls, use the nextToken
value returned from the previous request to continue listing results after the first page.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request. For subsequent calls, use the nextToken
value returned from the previous request to continue listing results after the first page.
sourcepub fn get_next_token(&self) -> &Option<String>
pub fn get_next_token(&self) -> &Option<String>
A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request. For subsequent calls, use the nextToken
value returned from the previous request to continue listing results after the first page.
sourcepub fn max_results(self, input: i32) -> Self
pub fn max_results(self, input: i32) -> Self
The maximum number of results to return in the response. Use this parameter when paginating results. If additional results exist beyond the number you specify, the nextToken
element is returned in the response. Use nextToken
in a subsequent request to retrieve additional results.
sourcepub fn set_max_results(self, input: Option<i32>) -> Self
pub fn set_max_results(self, input: Option<i32>) -> Self
The maximum number of results to return in the response. Use this parameter when paginating results. If additional results exist beyond the number you specify, the nextToken
element is returned in the response. Use nextToken
in a subsequent request to retrieve additional results.
sourcepub fn get_max_results(&self) -> &Option<i32>
pub fn get_max_results(&self) -> &Option<i32>
The maximum number of results to return in the response. Use this parameter when paginating results. If additional results exist beyond the number you specify, the nextToken
element is returned in the response. Use nextToken
in a subsequent request to retrieve additional results.
sourcepub fn start_date(self, input: DateTime) -> Self
pub fn start_date(self, input: DateTime) -> Self
The start date of the interval which you want to retrieve metrics from.
sourcepub fn set_start_date(self, input: Option<DateTime>) -> Self
pub fn set_start_date(self, input: Option<DateTime>) -> Self
The start date of the interval which you want to retrieve metrics from.
sourcepub fn get_start_date(&self) -> &Option<DateTime>
pub fn get_start_date(&self) -> &Option<DateTime>
The start date of the interval which you want to retrieve metrics from.
sourcepub fn end_date(self, input: DateTime) -> Self
pub fn end_date(self, input: DateTime) -> Self
The end date of the interval which you want to retrieve metrics from.
sourcepub fn set_end_date(self, input: Option<DateTime>) -> Self
pub fn set_end_date(self, input: Option<DateTime>) -> Self
The end date of the interval which you want to retrieve metrics from.
sourcepub fn get_end_date(&self) -> &Option<DateTime>
pub fn get_end_date(&self) -> &Option<DateTime>
The end date of the interval which you want to retrieve metrics from.
Trait Implementations§
source§impl Clone for ListFindingsMetricsFluentBuilder
impl Clone for ListFindingsMetricsFluentBuilder
source§fn clone(&self) -> ListFindingsMetricsFluentBuilder
fn clone(&self) -> ListFindingsMetricsFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more