Struct aws_sdk_iam::types::builders::EntityInfoBuilder
source · #[non_exhaustive]pub struct EntityInfoBuilder { /* private fields */ }Expand description
A builder for EntityInfo.
Implementations§
source§impl EntityInfoBuilder
impl EntityInfoBuilder
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN). ARNs are unique identifiers for Amazon Web Services resources.
For more information about ARNs, go to Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
This field is required.sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN). ARNs are unique identifiers for Amazon Web Services resources.
For more information about ARNs, go to Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
sourcepub fn get_arn(&self) -> &Option<String>
pub fn get_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN). ARNs are unique identifiers for Amazon Web Services resources.
For more information about ARNs, go to Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the entity (user or role).
This field is required.sourcepub fn type(self, input: PolicyOwnerEntityType) -> Self
pub fn type(self, input: PolicyOwnerEntityType) -> Self
The type of entity (user or role).
This field is required.sourcepub fn set_type(self, input: Option<PolicyOwnerEntityType>) -> Self
pub fn set_type(self, input: Option<PolicyOwnerEntityType>) -> Self
The type of entity (user or role).
sourcepub fn get_type(&self) -> &Option<PolicyOwnerEntityType>
pub fn get_type(&self) -> &Option<PolicyOwnerEntityType>
The type of entity (user or role).
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The identifier of the entity (user or role).
This field is required.sourcepub fn set_id(self, input: Option<String>) -> Self
pub fn set_id(self, input: Option<String>) -> Self
The identifier of the entity (user or role).
sourcepub fn path(self, input: impl Into<String>) -> Self
pub fn path(self, input: impl Into<String>) -> Self
The path to the entity (user or role). For more information about paths, see IAM identifiers in the IAM User Guide.
sourcepub fn set_path(self, input: Option<String>) -> Self
pub fn set_path(self, input: Option<String>) -> Self
The path to the entity (user or role). For more information about paths, see IAM identifiers in the IAM User Guide.
sourcepub fn get_path(&self) -> &Option<String>
pub fn get_path(&self) -> &Option<String>
The path to the entity (user or role). For more information about paths, see IAM identifiers in the IAM User Guide.
sourcepub fn build(self) -> Result<EntityInfo, BuildError>
pub fn build(self) -> Result<EntityInfo, BuildError>
Consumes the builder and constructs a EntityInfo.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for EntityInfoBuilder
impl Clone for EntityInfoBuilder
source§fn clone(&self) -> EntityInfoBuilder
fn clone(&self) -> EntityInfoBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for EntityInfoBuilder
impl Debug for EntityInfoBuilder
source§impl Default for EntityInfoBuilder
impl Default for EntityInfoBuilder
source§fn default() -> EntityInfoBuilder
fn default() -> EntityInfoBuilder
source§impl PartialEq for EntityInfoBuilder
impl PartialEq for EntityInfoBuilder
source§fn eq(&self, other: &EntityInfoBuilder) -> bool
fn eq(&self, other: &EntityInfoBuilder) -> bool
self and other values to be equal, and is used
by ==.