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 get_next_token(&self) -> &Option<String>
pub fn get_next_token(&self) -> &Option<String>
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 get_records(&self) -> &Option<Vec<UsageRecord>>
pub fn get_records(&self) -> &Option<Vec<UsageRecord>>
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 get_time_range(&self) -> &Option<TimeRange>
pub fn get_time_range(&self) -> &Option<TimeRange>
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 for GetUsageStatisticsOutputBuilder
impl PartialEq 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 ==
.impl StructuralPartialEq for GetUsageStatisticsOutputBuilder
Auto Trait Implementations§
impl Freeze for GetUsageStatisticsOutputBuilder
impl RefUnwindSafe for GetUsageStatisticsOutputBuilder
impl Send for GetUsageStatisticsOutputBuilder
impl Sync for GetUsageStatisticsOutputBuilder
impl Unpin for GetUsageStatisticsOutputBuilder
impl UnwindSafe for GetUsageStatisticsOutputBuilder
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