Struct aws_sdk_macie2::types::builders::UsageRecordBuilder
source · #[non_exhaustive]pub struct UsageRecordBuilder { /* private fields */ }Expand description
A builder for UsageRecord.
Implementations§
source§impl UsageRecordBuilder
impl UsageRecordBuilder
sourcepub fn account_id(self, input: impl Into<String>) -> Self
pub fn account_id(self, input: impl Into<String>) -> Self
The unique identifier for the Amazon Web Services account that the data applies to.
sourcepub fn set_account_id(self, input: Option<String>) -> Self
pub fn set_account_id(self, input: Option<String>) -> Self
The unique identifier for the Amazon Web Services account that the data applies to.
sourcepub fn get_account_id(&self) -> &Option<String>
pub fn get_account_id(&self) -> &Option<String>
The unique identifier for the Amazon Web Services account that the data applies to.
sourcepub fn automated_discovery_free_trial_start_date(self, input: DateTime) -> Self
pub fn automated_discovery_free_trial_start_date(self, input: DateTime) -> Self
The date and time, in UTC and extended ISO 8601 format, when the free trial of automated sensitive data discovery started for the account. If the account is a member account in an organization, this value is the same as the value for the organization's Amazon Macie administrator account.
sourcepub fn set_automated_discovery_free_trial_start_date(
self,
input: Option<DateTime>
) -> Self
pub fn set_automated_discovery_free_trial_start_date( self, input: Option<DateTime> ) -> Self
The date and time, in UTC and extended ISO 8601 format, when the free trial of automated sensitive data discovery started for the account. If the account is a member account in an organization, this value is the same as the value for the organization's Amazon Macie administrator account.
sourcepub fn get_automated_discovery_free_trial_start_date(&self) -> &Option<DateTime>
pub fn get_automated_discovery_free_trial_start_date(&self) -> &Option<DateTime>
The date and time, in UTC and extended ISO 8601 format, when the free trial of automated sensitive data discovery started for the account. If the account is a member account in an organization, this value is the same as the value for the organization's Amazon Macie administrator account.
sourcepub fn free_trial_start_date(self, input: DateTime) -> Self
pub fn free_trial_start_date(self, input: DateTime) -> Self
The date and time, in UTC and extended ISO 8601 format, when the Amazon Macie free trial started for the account.
sourcepub fn set_free_trial_start_date(self, input: Option<DateTime>) -> Self
pub fn set_free_trial_start_date(self, input: Option<DateTime>) -> Self
The date and time, in UTC and extended ISO 8601 format, when the Amazon Macie free trial started for the account.
sourcepub fn get_free_trial_start_date(&self) -> &Option<DateTime>
pub fn get_free_trial_start_date(&self) -> &Option<DateTime>
The date and time, in UTC and extended ISO 8601 format, when the Amazon Macie free trial started for the account.
sourcepub fn usage(self, input: UsageByAccount) -> Self
pub fn usage(self, input: UsageByAccount) -> Self
Appends an item to usage.
To override the contents of this collection use set_usage.
An array of objects that contains usage data and quotas for the account. Each object contains the data for a specific usage metric and the corresponding quota.
sourcepub fn set_usage(self, input: Option<Vec<UsageByAccount>>) -> Self
pub fn set_usage(self, input: Option<Vec<UsageByAccount>>) -> Self
An array of objects that contains usage data and quotas for the account. Each object contains the data for a specific usage metric and the corresponding quota.
sourcepub fn get_usage(&self) -> &Option<Vec<UsageByAccount>>
pub fn get_usage(&self) -> &Option<Vec<UsageByAccount>>
An array of objects that contains usage data and quotas for the account. Each object contains the data for a specific usage metric and the corresponding quota.
sourcepub fn build(self) -> UsageRecord
pub fn build(self) -> UsageRecord
Consumes the builder and constructs a UsageRecord.
Trait Implementations§
source§impl Clone for UsageRecordBuilder
impl Clone for UsageRecordBuilder
source§fn clone(&self) -> UsageRecordBuilder
fn clone(&self) -> UsageRecordBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for UsageRecordBuilder
impl Debug for UsageRecordBuilder
source§impl Default for UsageRecordBuilder
impl Default for UsageRecordBuilder
source§fn default() -> UsageRecordBuilder
fn default() -> UsageRecordBuilder
source§impl PartialEq for UsageRecordBuilder
impl PartialEq for UsageRecordBuilder
source§fn eq(&self, other: &UsageRecordBuilder) -> bool
fn eq(&self, other: &UsageRecordBuilder) -> bool
self and other values to be equal, and is used
by ==.