Struct aws_sdk_iam::types::builders::PolicyRoleBuilder
source · #[non_exhaustive]pub struct PolicyRoleBuilder { /* private fields */ }
Expand description
A builder for PolicyRole
.
Implementations§
source§impl PolicyRoleBuilder
impl PolicyRoleBuilder
sourcepub fn role_name(self, input: impl Into<String>) -> Self
pub fn role_name(self, input: impl Into<String>) -> Self
The name (friendly name, not ARN) identifying the role.
sourcepub fn set_role_name(self, input: Option<String>) -> Self
pub fn set_role_name(self, input: Option<String>) -> Self
The name (friendly name, not ARN) identifying the role.
sourcepub fn get_role_name(&self) -> &Option<String>
pub fn get_role_name(&self) -> &Option<String>
The name (friendly name, not ARN) identifying the role.
sourcepub fn role_id(self, input: impl Into<String>) -> Self
pub fn role_id(self, input: impl Into<String>) -> Self
The stable and unique string identifying the role. For more information about IDs, see IAM identifiers in the IAM User Guide.
sourcepub fn set_role_id(self, input: Option<String>) -> Self
pub fn set_role_id(self, input: Option<String>) -> Self
The stable and unique string identifying the role. For more information about IDs, see IAM identifiers in the IAM User Guide.
sourcepub fn get_role_id(&self) -> &Option<String>
pub fn get_role_id(&self) -> &Option<String>
The stable and unique string identifying the role. For more information about IDs, see IAM identifiers in the IAM User Guide.
sourcepub fn build(self) -> PolicyRole
pub fn build(self) -> PolicyRole
Consumes the builder and constructs a PolicyRole
.
Trait Implementations§
source§impl Clone for PolicyRoleBuilder
impl Clone for PolicyRoleBuilder
source§fn clone(&self) -> PolicyRoleBuilder
fn clone(&self) -> PolicyRoleBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PolicyRoleBuilder
impl Debug for PolicyRoleBuilder
source§impl Default for PolicyRoleBuilder
impl Default for PolicyRoleBuilder
source§fn default() -> PolicyRoleBuilder
fn default() -> PolicyRoleBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for PolicyRoleBuilder
impl PartialEq for PolicyRoleBuilder
source§fn eq(&self, other: &PolicyRoleBuilder) -> bool
fn eq(&self, other: &PolicyRoleBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PolicyRoleBuilder
Auto Trait Implementations§
impl RefUnwindSafe for PolicyRoleBuilder
impl Send for PolicyRoleBuilder
impl Sync for PolicyRoleBuilder
impl Unpin for PolicyRoleBuilder
impl UnwindSafe for PolicyRoleBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.