Struct aws_sdk_iot::types::builders::AuthInfoBuilder
source · #[non_exhaustive]pub struct AuthInfoBuilder { /* private fields */ }
Expand description
A builder for AuthInfo
.
Implementations§
source§impl AuthInfoBuilder
impl AuthInfoBuilder
sourcepub fn action_type(self, input: ActionType) -> Self
pub fn action_type(self, input: ActionType) -> Self
The type of action for which the principal is being authorized.
sourcepub fn set_action_type(self, input: Option<ActionType>) -> Self
pub fn set_action_type(self, input: Option<ActionType>) -> Self
The type of action for which the principal is being authorized.
sourcepub fn get_action_type(&self) -> &Option<ActionType>
pub fn get_action_type(&self) -> &Option<ActionType>
The type of action for which the principal is being authorized.
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 resources for which the principal is being authorized to perform the specified action.
sourcepub fn set_resources(self, input: Option<Vec<String>>) -> Self
pub fn set_resources(self, input: Option<Vec<String>>) -> Self
The resources for which the principal is being authorized to perform the specified action.
sourcepub fn get_resources(&self) -> &Option<Vec<String>>
pub fn get_resources(&self) -> &Option<Vec<String>>
The resources for which the principal is being authorized to perform the specified action.
Trait Implementations§
source§impl Clone for AuthInfoBuilder
impl Clone for AuthInfoBuilder
source§fn clone(&self) -> AuthInfoBuilder
fn clone(&self) -> AuthInfoBuilder
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 AuthInfoBuilder
impl Debug for AuthInfoBuilder
source§impl Default for AuthInfoBuilder
impl Default for AuthInfoBuilder
source§fn default() -> AuthInfoBuilder
fn default() -> AuthInfoBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for AuthInfoBuilder
impl PartialEq for AuthInfoBuilder
source§fn eq(&self, other: &AuthInfoBuilder) -> bool
fn eq(&self, other: &AuthInfoBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AuthInfoBuilder
Auto Trait Implementations§
impl Freeze for AuthInfoBuilder
impl RefUnwindSafe for AuthInfoBuilder
impl Send for AuthInfoBuilder
impl Sync for AuthInfoBuilder
impl Unpin for AuthInfoBuilder
impl UnwindSafe for AuthInfoBuilder
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>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.