#[non_exhaustive]pub struct EntityItemBuilder { /* private fields */ }Expand description
A builder for EntityItem.
Implementations§
source§impl EntityItemBuilder
impl EntityItemBuilder
sourcepub fn identifier(self, input: EntityIdentifier) -> Self
pub fn identifier(self, input: EntityIdentifier) -> Self
The identifier of the entity.
This field is required.sourcepub fn set_identifier(self, input: Option<EntityIdentifier>) -> Self
pub fn set_identifier(self, input: Option<EntityIdentifier>) -> Self
The identifier of the entity.
sourcepub fn get_identifier(&self) -> &Option<EntityIdentifier>
pub fn get_identifier(&self) -> &Option<EntityIdentifier>
The identifier of the entity.
sourcepub fn attributes(self, k: impl Into<String>, v: AttributeValue) -> Self
pub fn attributes(self, k: impl Into<String>, v: AttributeValue) -> Self
Adds a key-value pair to attributes.
To override the contents of this collection use set_attributes.
A list of attributes for the entity.
sourcepub fn set_attributes(
self,
input: Option<HashMap<String, AttributeValue>>,
) -> Self
pub fn set_attributes( self, input: Option<HashMap<String, AttributeValue>>, ) -> Self
A list of attributes for the entity.
sourcepub fn get_attributes(&self) -> &Option<HashMap<String, AttributeValue>>
pub fn get_attributes(&self) -> &Option<HashMap<String, AttributeValue>>
A list of attributes for the entity.
sourcepub fn parents(self, input: EntityIdentifier) -> Self
pub fn parents(self, input: EntityIdentifier) -> Self
Appends an item to parents.
To override the contents of this collection use set_parents.
The parent entities in the hierarchy that contains the entity. A principal or resource entity can be defined with at most 99 transitive parents per authorization request.
A transitive parent is an entity in the hierarchy of entities including all direct parents, and parents of parents. For example, a user can be a member of 91 groups if one of those groups is a member of eight groups, for a total of 100: one entity, 91 entity parents, and eight parents of parents.
sourcepub fn set_parents(self, input: Option<Vec<EntityIdentifier>>) -> Self
pub fn set_parents(self, input: Option<Vec<EntityIdentifier>>) -> Self
The parent entities in the hierarchy that contains the entity. A principal or resource entity can be defined with at most 99 transitive parents per authorization request.
A transitive parent is an entity in the hierarchy of entities including all direct parents, and parents of parents. For example, a user can be a member of 91 groups if one of those groups is a member of eight groups, for a total of 100: one entity, 91 entity parents, and eight parents of parents.
sourcepub fn get_parents(&self) -> &Option<Vec<EntityIdentifier>>
pub fn get_parents(&self) -> &Option<Vec<EntityIdentifier>>
The parent entities in the hierarchy that contains the entity. A principal or resource entity can be defined with at most 99 transitive parents per authorization request.
A transitive parent is an entity in the hierarchy of entities including all direct parents, and parents of parents. For example, a user can be a member of 91 groups if one of those groups is a member of eight groups, for a total of 100: one entity, 91 entity parents, and eight parents of parents.
sourcepub fn build(self) -> EntityItem
pub fn build(self) -> EntityItem
Consumes the builder and constructs a EntityItem.
Trait Implementations§
source§impl Clone for EntityItemBuilder
impl Clone for EntityItemBuilder
source§fn clone(&self) -> EntityItemBuilder
fn clone(&self) -> EntityItemBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for EntityItemBuilder
impl Debug for EntityItemBuilder
source§impl Default for EntityItemBuilder
impl Default for EntityItemBuilder
source§fn default() -> EntityItemBuilder
fn default() -> EntityItemBuilder
source§impl PartialEq for EntityItemBuilder
impl PartialEq for EntityItemBuilder
impl StructuralPartialEq for EntityItemBuilder
Auto Trait Implementations§
impl Freeze for EntityItemBuilder
impl RefUnwindSafe for EntityItemBuilder
impl Send for EntityItemBuilder
impl Sync for EntityItemBuilder
impl Unpin for EntityItemBuilder
impl UnwindSafe for EntityItemBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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