Struct aws_sdk_ram::types::builders::PrincipalBuilder
source · #[non_exhaustive]pub struct PrincipalBuilder { /* private fields */ }Expand description
A builder for Principal.
Implementations§
source§impl PrincipalBuilder
impl PrincipalBuilder
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The ID of the principal that can be associated with a resource share.
sourcepub fn set_id(self, input: Option<String>) -> Self
pub fn set_id(self, input: Option<String>) -> Self
The ID of the principal that can be associated with a resource share.
sourcepub fn get_id(&self) -> &Option<String>
pub fn get_id(&self) -> &Option<String>
The ID of the principal that can be associated with a resource share.
The Amazon Resource Name (ARN) of a resource share the principal is associated with.
The Amazon Resource Name (ARN) of a resource share the principal is associated with.
The Amazon Resource Name (ARN) of a resource share the principal is associated with.
sourcepub fn creation_time(self, input: DateTime) -> Self
pub fn creation_time(self, input: DateTime) -> Self
The date and time when the principal was associated with the resource share.
sourcepub fn set_creation_time(self, input: Option<DateTime>) -> Self
pub fn set_creation_time(self, input: Option<DateTime>) -> Self
The date and time when the principal was associated with the resource share.
sourcepub fn get_creation_time(&self) -> &Option<DateTime>
pub fn get_creation_time(&self) -> &Option<DateTime>
The date and time when the principal was associated with the resource share.
sourcepub fn last_updated_time(self, input: DateTime) -> Self
pub fn last_updated_time(self, input: DateTime) -> Self
The date and time when the association between the resource share and the principal was last updated.
sourcepub fn set_last_updated_time(self, input: Option<DateTime>) -> Self
pub fn set_last_updated_time(self, input: Option<DateTime>) -> Self
The date and time when the association between the resource share and the principal was last updated.
sourcepub fn get_last_updated_time(&self) -> &Option<DateTime>
pub fn get_last_updated_time(&self) -> &Option<DateTime>
The date and time when the association between the resource share and the principal was last updated.
sourcepub fn external(self, input: bool) -> Self
pub fn external(self, input: bool) -> Self
Indicates the relationship between the Amazon Web Services account the principal belongs to and the account that owns the resource share:
-
True– The two accounts belong to same organization. -
False– The two accounts do not belong to the same organization.
sourcepub fn set_external(self, input: Option<bool>) -> Self
pub fn set_external(self, input: Option<bool>) -> Self
Indicates the relationship between the Amazon Web Services account the principal belongs to and the account that owns the resource share:
-
True– The two accounts belong to same organization. -
False– The two accounts do not belong to the same organization.
sourcepub fn get_external(&self) -> &Option<bool>
pub fn get_external(&self) -> &Option<bool>
Indicates the relationship between the Amazon Web Services account the principal belongs to and the account that owns the resource share:
-
True– The two accounts belong to same organization. -
False– The two accounts do not belong to the same organization.
Trait Implementations§
source§impl Clone for PrincipalBuilder
impl Clone for PrincipalBuilder
source§fn clone(&self) -> PrincipalBuilder
fn clone(&self) -> PrincipalBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for PrincipalBuilder
impl Debug for PrincipalBuilder
source§impl Default for PrincipalBuilder
impl Default for PrincipalBuilder
source§fn default() -> PrincipalBuilder
fn default() -> PrincipalBuilder
source§impl PartialEq for PrincipalBuilder
impl PartialEq for PrincipalBuilder
source§fn eq(&self, other: &PrincipalBuilder) -> bool
fn eq(&self, other: &PrincipalBuilder) -> bool
self and other values to be equal, and is used
by ==.