Struct aws_sdk_macie2::operation::get_usage_statistics::builders::GetUsageStatisticsOutputBuilder
source · #[non_exhaustive]pub struct GetUsageStatisticsOutputBuilder { /* private fields */ }
Expand description
A builder for GetUsageStatisticsOutput
.
Implementations§
source§impl GetUsageStatisticsOutputBuilder
impl GetUsageStatisticsOutputBuilder
sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.
sourcepub fn records(self, input: UsageRecord) -> Self
pub fn records(self, input: UsageRecord) -> Self
Appends an item to records
.
To override the contents of this collection use set_records
.
An array of objects that contains the results of the query. Each object contains the data for an account that matches the filter criteria specified in the request.
sourcepub fn set_records(self, input: Option<Vec<UsageRecord>>) -> Self
pub fn set_records(self, input: Option<Vec<UsageRecord>>) -> Self
An array of objects that contains the results of the query. Each object contains the data for an account that matches the filter criteria specified in the request.
sourcepub fn time_range(self, input: TimeRange) -> Self
pub fn time_range(self, input: TimeRange) -> Self
The inclusive time period that the usage data applies to. Possible values are: MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, for the preceding 30 days.
sourcepub fn set_time_range(self, input: Option<TimeRange>) -> Self
pub fn set_time_range(self, input: Option<TimeRange>) -> Self
The inclusive time period that the usage data applies to. Possible values are: MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, for the preceding 30 days.
sourcepub fn build(self) -> GetUsageStatisticsOutput
pub fn build(self) -> GetUsageStatisticsOutput
Consumes the builder and constructs a GetUsageStatisticsOutput
.
Trait Implementations§
source§impl Clone for GetUsageStatisticsOutputBuilder
impl Clone for GetUsageStatisticsOutputBuilder
source§fn clone(&self) -> GetUsageStatisticsOutputBuilder
fn clone(&self) -> GetUsageStatisticsOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for GetUsageStatisticsOutputBuilder
impl Default for GetUsageStatisticsOutputBuilder
source§fn default() -> GetUsageStatisticsOutputBuilder
fn default() -> GetUsageStatisticsOutputBuilder
source§impl PartialEq<GetUsageStatisticsOutputBuilder> for GetUsageStatisticsOutputBuilder
impl PartialEq<GetUsageStatisticsOutputBuilder> for GetUsageStatisticsOutputBuilder
source§fn eq(&self, other: &GetUsageStatisticsOutputBuilder) -> bool
fn eq(&self, other: &GetUsageStatisticsOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.