Struct aws_sdk_iam::types::builders::RoleUsageTypeBuilder
source · #[non_exhaustive]pub struct RoleUsageTypeBuilder { /* private fields */ }
Expand description
A builder for RoleUsageType
.
Implementations§
source§impl RoleUsageTypeBuilder
impl RoleUsageTypeBuilder
sourcepub fn region(self, input: impl Into<String>) -> Self
pub fn region(self, input: impl Into<String>) -> Self
The name of the Region where the service-linked role is being used.
sourcepub fn set_region(self, input: Option<String>) -> Self
pub fn set_region(self, input: Option<String>) -> Self
The name of the Region where the service-linked role is being used.
sourcepub fn get_region(&self) -> &Option<String>
pub fn get_region(&self) -> &Option<String>
The name of the Region where the service-linked role is being used.
sourcepub fn resources(self, input: impl Into<String>) -> Self
pub fn resources(self, input: impl Into<String>) -> Self
Appends an item to resources
.
To override the contents of this collection use set_resources
.
The name of the resource that is using the service-linked role.
sourcepub fn set_resources(self, input: Option<Vec<String>>) -> Self
pub fn set_resources(self, input: Option<Vec<String>>) -> Self
The name of the resource that is using the service-linked role.
sourcepub fn get_resources(&self) -> &Option<Vec<String>>
pub fn get_resources(&self) -> &Option<Vec<String>>
The name of the resource that is using the service-linked role.
sourcepub fn build(self) -> RoleUsageType
pub fn build(self) -> RoleUsageType
Consumes the builder and constructs a RoleUsageType
.
Trait Implementations§
source§impl Clone for RoleUsageTypeBuilder
impl Clone for RoleUsageTypeBuilder
source§fn clone(&self) -> RoleUsageTypeBuilder
fn clone(&self) -> RoleUsageTypeBuilder
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 RoleUsageTypeBuilder
impl Debug for RoleUsageTypeBuilder
source§impl Default for RoleUsageTypeBuilder
impl Default for RoleUsageTypeBuilder
source§fn default() -> RoleUsageTypeBuilder
fn default() -> RoleUsageTypeBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for RoleUsageTypeBuilder
impl PartialEq for RoleUsageTypeBuilder
source§fn eq(&self, other: &RoleUsageTypeBuilder) -> bool
fn eq(&self, other: &RoleUsageTypeBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RoleUsageTypeBuilder
Auto Trait Implementations§
impl Freeze for RoleUsageTypeBuilder
impl RefUnwindSafe for RoleUsageTypeBuilder
impl Send for RoleUsageTypeBuilder
impl Sync for RoleUsageTypeBuilder
impl Unpin for RoleUsageTypeBuilder
impl UnwindSafe for RoleUsageTypeBuilder
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.