Struct aws_sdk_iam::types::builders::RoleLastUsedBuilder
source · #[non_exhaustive]pub struct RoleLastUsedBuilder { /* private fields */ }Expand description
A builder for RoleLastUsed.
Implementations§
source§impl RoleLastUsedBuilder
impl RoleLastUsedBuilder
sourcepub fn last_used_date(self, input: DateTime) -> Self
pub fn last_used_date(self, input: DateTime) -> Self
The date and time, in ISO 8601 date-time format that the role was last used.
This field is null if the role has not been used within the IAM tracking period. For more information about the tracking period, see Regions where data is tracked in the IAM User Guide.
sourcepub fn set_last_used_date(self, input: Option<DateTime>) -> Self
pub fn set_last_used_date(self, input: Option<DateTime>) -> Self
The date and time, in ISO 8601 date-time format that the role was last used.
This field is null if the role has not been used within the IAM tracking period. For more information about the tracking period, see Regions where data is tracked in the IAM User Guide.
sourcepub fn get_last_used_date(&self) -> &Option<DateTime>
pub fn get_last_used_date(&self) -> &Option<DateTime>
The date and time, in ISO 8601 date-time format that the role was last used.
This field is null if the role has not been used within the IAM tracking period. For more information about the tracking period, see Regions where data is tracked in the IAM User Guide.
sourcepub fn region(self, input: impl Into<String>) -> Self
pub fn region(self, input: impl Into<String>) -> Self
The name of the Amazon Web Services Region in which the role was last used.
sourcepub fn set_region(self, input: Option<String>) -> Self
pub fn set_region(self, input: Option<String>) -> Self
The name of the Amazon Web Services Region in which the role was last used.
sourcepub fn get_region(&self) -> &Option<String>
pub fn get_region(&self) -> &Option<String>
The name of the Amazon Web Services Region in which the role was last used.
sourcepub fn build(self) -> RoleLastUsed
pub fn build(self) -> RoleLastUsed
Consumes the builder and constructs a RoleLastUsed.
Trait Implementations§
source§impl Clone for RoleLastUsedBuilder
impl Clone for RoleLastUsedBuilder
source§fn clone(&self) -> RoleLastUsedBuilder
fn clone(&self) -> RoleLastUsedBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for RoleLastUsedBuilder
impl Debug for RoleLastUsedBuilder
source§impl Default for RoleLastUsedBuilder
impl Default for RoleLastUsedBuilder
source§fn default() -> RoleLastUsedBuilder
fn default() -> RoleLastUsedBuilder
source§impl PartialEq for RoleLastUsedBuilder
impl PartialEq for RoleLastUsedBuilder
source§fn eq(&self, other: &RoleLastUsedBuilder) -> bool
fn eq(&self, other: &RoleLastUsedBuilder) -> bool
self and other values to be equal, and is used
by ==.