Struct aws_sdk_grafana::types::builders::UpdateInstructionBuilder
source · #[non_exhaustive]pub struct UpdateInstructionBuilder { /* private fields */ }Expand description
A builder for UpdateInstruction.
Implementations§
source§impl UpdateInstructionBuilder
impl UpdateInstructionBuilder
sourcepub fn action(self, input: UpdateAction) -> Self
pub fn action(self, input: UpdateAction) -> Self
Specifies whether this update is to add or revoke role permissions.
This field is required.sourcepub fn set_action(self, input: Option<UpdateAction>) -> Self
pub fn set_action(self, input: Option<UpdateAction>) -> Self
Specifies whether this update is to add or revoke role permissions.
sourcepub fn get_action(&self) -> &Option<UpdateAction>
pub fn get_action(&self) -> &Option<UpdateAction>
Specifies whether this update is to add or revoke role permissions.
sourcepub fn role(self, input: Role) -> Self
pub fn role(self, input: Role) -> Self
The role to add or revoke for the user or the group specified in users.
sourcepub fn set_role(self, input: Option<Role>) -> Self
pub fn set_role(self, input: Option<Role>) -> Self
The role to add or revoke for the user or the group specified in users.
sourcepub fn get_role(&self) -> &Option<Role>
pub fn get_role(&self) -> &Option<Role>
The role to add or revoke for the user or the group specified in users.
sourcepub fn users(self, input: User) -> Self
pub fn users(self, input: User) -> Self
Appends an item to users.
To override the contents of this collection use set_users.
A structure that specifies the user or group to add or revoke the role for.
sourcepub fn set_users(self, input: Option<Vec<User>>) -> Self
pub fn set_users(self, input: Option<Vec<User>>) -> Self
A structure that specifies the user or group to add or revoke the role for.
sourcepub fn get_users(&self) -> &Option<Vec<User>>
pub fn get_users(&self) -> &Option<Vec<User>>
A structure that specifies the user or group to add or revoke the role for.
sourcepub fn build(self) -> Result<UpdateInstruction, BuildError>
pub fn build(self) -> Result<UpdateInstruction, BuildError>
Consumes the builder and constructs a UpdateInstruction.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for UpdateInstructionBuilder
impl Clone for UpdateInstructionBuilder
source§fn clone(&self) -> UpdateInstructionBuilder
fn clone(&self) -> UpdateInstructionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for UpdateInstructionBuilder
impl Debug for UpdateInstructionBuilder
source§impl Default for UpdateInstructionBuilder
impl Default for UpdateInstructionBuilder
source§fn default() -> UpdateInstructionBuilder
fn default() -> UpdateInstructionBuilder
source§impl PartialEq for UpdateInstructionBuilder
impl PartialEq for UpdateInstructionBuilder
source§fn eq(&self, other: &UpdateInstructionBuilder) -> bool
fn eq(&self, other: &UpdateInstructionBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for UpdateInstructionBuilder
Auto Trait Implementations§
impl Freeze for UpdateInstructionBuilder
impl RefUnwindSafe for UpdateInstructionBuilder
impl Send for UpdateInstructionBuilder
impl Sync for UpdateInstructionBuilder
impl Unpin for UpdateInstructionBuilder
impl UnwindSafe for UpdateInstructionBuilder
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
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>
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>
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 more