Struct aws_sdk_grafana::types::builders::PermissionEntryBuilder
source · #[non_exhaustive]pub struct PermissionEntryBuilder { /* private fields */ }
Expand description
A builder for PermissionEntry
.
Implementations§
source§impl PermissionEntryBuilder
impl PermissionEntryBuilder
sourcepub fn user(self, input: User) -> Self
pub fn user(self, input: User) -> Self
A structure with the ID of the user or group with this role.
sourcepub fn set_user(self, input: Option<User>) -> Self
pub fn set_user(self, input: Option<User>) -> Self
A structure with the ID of the user or group with this role.
sourcepub fn get_user(&self) -> &Option<User>
pub fn get_user(&self) -> &Option<User>
A structure with the ID of the user or group with this role.
sourcepub fn role(self, input: Role) -> Self
pub fn role(self, input: Role) -> Self
Specifies whether the user or group has the Admin
, Editor
, or Viewer
role.
sourcepub fn set_role(self, input: Option<Role>) -> Self
pub fn set_role(self, input: Option<Role>) -> Self
Specifies whether the user or group has the Admin
, Editor
, or Viewer
role.
sourcepub fn get_role(&self) -> &Option<Role>
pub fn get_role(&self) -> &Option<Role>
Specifies whether the user or group has the Admin
, Editor
, or Viewer
role.
sourcepub fn build(self) -> PermissionEntry
pub fn build(self) -> PermissionEntry
Consumes the builder and constructs a PermissionEntry
.
Trait Implementations§
source§impl Clone for PermissionEntryBuilder
impl Clone for PermissionEntryBuilder
source§fn clone(&self) -> PermissionEntryBuilder
fn clone(&self) -> PermissionEntryBuilder
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 PermissionEntryBuilder
impl Debug for PermissionEntryBuilder
source§impl Default for PermissionEntryBuilder
impl Default for PermissionEntryBuilder
source§fn default() -> PermissionEntryBuilder
fn default() -> PermissionEntryBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<PermissionEntryBuilder> for PermissionEntryBuilder
impl PartialEq<PermissionEntryBuilder> for PermissionEntryBuilder
source§fn eq(&self, other: &PermissionEntryBuilder) -> bool
fn eq(&self, other: &PermissionEntryBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PermissionEntryBuilder
Auto Trait Implementations§
impl RefUnwindSafe for PermissionEntryBuilder
impl Send for PermissionEntryBuilder
impl Sync for PermissionEntryBuilder
impl Unpin for PermissionEntryBuilder
impl UnwindSafe for PermissionEntryBuilder
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