#[non_exhaustive]pub struct ResourceShareAssociationBuilder { /* private fields */ }Expand description
A builder for ResourceShareAssociation.
Implementations§
The Amazon Resource Name (ARN) of the resource share.
The Amazon Resource Name (ARN) of the resource share.
The Amazon Resource Name (ARN) of the resource share.
The name of the resource share.
The name of the resource share.
The name of the resource share.
sourcepub fn associated_entity(self, input: impl Into<String>) -> Self
pub fn associated_entity(self, input: impl Into<String>) -> Self
The associated entity. This can be either of the following:
-
For a resource association, this is the Amazon Resource Name (ARN) of the resource.
-
For principal associations, this is one of the following:
-
The ID of an Amazon Web Services account
-
The Amazon Resource Name (ARN) of an organization in Organizations
-
The ARN of an organizational unit (OU) in Organizations
-
The ARN of an IAM role
-
The ARN of an IAM user
-
sourcepub fn set_associated_entity(self, input: Option<String>) -> Self
pub fn set_associated_entity(self, input: Option<String>) -> Self
The associated entity. This can be either of the following:
-
For a resource association, this is the Amazon Resource Name (ARN) of the resource.
-
For principal associations, this is one of the following:
-
The ID of an Amazon Web Services account
-
The Amazon Resource Name (ARN) of an organization in Organizations
-
The ARN of an organizational unit (OU) in Organizations
-
The ARN of an IAM role
-
The ARN of an IAM user
-
sourcepub fn get_associated_entity(&self) -> &Option<String>
pub fn get_associated_entity(&self) -> &Option<String>
The associated entity. This can be either of the following:
-
For a resource association, this is the Amazon Resource Name (ARN) of the resource.
-
For principal associations, this is one of the following:
-
The ID of an Amazon Web Services account
-
The Amazon Resource Name (ARN) of an organization in Organizations
-
The ARN of an organizational unit (OU) in Organizations
-
The ARN of an IAM role
-
The ARN of an IAM user
-
sourcepub fn association_type(self, input: ResourceShareAssociationType) -> Self
pub fn association_type(self, input: ResourceShareAssociationType) -> Self
The type of entity included in this association.
sourcepub fn set_association_type(
self,
input: Option<ResourceShareAssociationType>
) -> Self
pub fn set_association_type( self, input: Option<ResourceShareAssociationType> ) -> Self
The type of entity included in this association.
sourcepub fn get_association_type(&self) -> &Option<ResourceShareAssociationType>
pub fn get_association_type(&self) -> &Option<ResourceShareAssociationType>
The type of entity included in this association.
sourcepub fn status(self, input: ResourceShareAssociationStatus) -> Self
pub fn status(self, input: ResourceShareAssociationStatus) -> Self
The current status of the association.
sourcepub fn set_status(self, input: Option<ResourceShareAssociationStatus>) -> Self
pub fn set_status(self, input: Option<ResourceShareAssociationStatus>) -> Self
The current status of the association.
sourcepub fn get_status(&self) -> &Option<ResourceShareAssociationStatus>
pub fn get_status(&self) -> &Option<ResourceShareAssociationStatus>
The current status of the association.
sourcepub fn status_message(self, input: impl Into<String>) -> Self
pub fn status_message(self, input: impl Into<String>) -> Self
A message about the status of the association.
sourcepub fn set_status_message(self, input: Option<String>) -> Self
pub fn set_status_message(self, input: Option<String>) -> Self
A message about the status of the association.
sourcepub fn get_status_message(&self) -> &Option<String>
pub fn get_status_message(&self) -> &Option<String>
A message about the status of the association.
sourcepub fn creation_time(self, input: DateTime) -> Self
pub fn creation_time(self, input: DateTime) -> Self
The date and time when the association was created.
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 association was created.
sourcepub fn get_creation_time(&self) -> &Option<DateTime>
pub fn get_creation_time(&self) -> &Option<DateTime>
The date and time when the association was created.
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 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 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 was last updated.
sourcepub fn external(self, input: bool) -> Self
pub fn external(self, input: bool) -> Self
Indicates whether the principal belongs to the same organization in Organizations as the Amazon Web Services account that owns the resource share.
sourcepub fn set_external(self, input: Option<bool>) -> Self
pub fn set_external(self, input: Option<bool>) -> Self
Indicates whether the principal belongs to the same organization in Organizations as the Amazon Web Services account that owns the resource share.
sourcepub fn get_external(&self) -> &Option<bool>
pub fn get_external(&self) -> &Option<bool>
Indicates whether the principal belongs to the same organization in Organizations as the Amazon Web Services account that owns the resource share.
sourcepub fn build(self) -> ResourceShareAssociation
pub fn build(self) -> ResourceShareAssociation
Consumes the builder and constructs a ResourceShareAssociation.
Trait Implementations§
source§fn clone(&self) -> ResourceShareAssociationBuilder
fn clone(&self) -> ResourceShareAssociationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§fn default() -> ResourceShareAssociationBuilder
fn default() -> ResourceShareAssociationBuilder
source§fn eq(&self, other: &ResourceShareAssociationBuilder) -> bool
fn eq(&self, other: &ResourceShareAssociationBuilder) -> bool
self and other values to be equal, and is used
by ==.