#[non_exhaustive]pub struct DomainUnitPolicyGrantPrincipalBuilder { /* private fields */ }Expand description
A builder for DomainUnitPolicyGrantPrincipal.
Implementations§
source§impl DomainUnitPolicyGrantPrincipalBuilder
impl DomainUnitPolicyGrantPrincipalBuilder
sourcepub fn domain_unit_designation(self, input: DomainUnitDesignation) -> Self
pub fn domain_unit_designation(self, input: DomainUnitDesignation) -> Self
Specifes the designation of the domain unit users.
This field is required.sourcepub fn set_domain_unit_designation(
self,
input: Option<DomainUnitDesignation>,
) -> Self
pub fn set_domain_unit_designation( self, input: Option<DomainUnitDesignation>, ) -> Self
Specifes the designation of the domain unit users.
sourcepub fn get_domain_unit_designation(&self) -> &Option<DomainUnitDesignation>
pub fn get_domain_unit_designation(&self) -> &Option<DomainUnitDesignation>
Specifes the designation of the domain unit users.
sourcepub fn domain_unit_identifier(self, input: impl Into<String>) -> Self
pub fn domain_unit_identifier(self, input: impl Into<String>) -> Self
The ID of the domain unit.
sourcepub fn set_domain_unit_identifier(self, input: Option<String>) -> Self
pub fn set_domain_unit_identifier(self, input: Option<String>) -> Self
The ID of the domain unit.
sourcepub fn get_domain_unit_identifier(&self) -> &Option<String>
pub fn get_domain_unit_identifier(&self) -> &Option<String>
The ID of the domain unit.
sourcepub fn domain_unit_grant_filter(self, input: DomainUnitGrantFilter) -> Self
pub fn domain_unit_grant_filter(self, input: DomainUnitGrantFilter) -> Self
The grant filter for the domain unit.
sourcepub fn set_domain_unit_grant_filter(
self,
input: Option<DomainUnitGrantFilter>,
) -> Self
pub fn set_domain_unit_grant_filter( self, input: Option<DomainUnitGrantFilter>, ) -> Self
The grant filter for the domain unit.
sourcepub fn get_domain_unit_grant_filter(&self) -> &Option<DomainUnitGrantFilter>
pub fn get_domain_unit_grant_filter(&self) -> &Option<DomainUnitGrantFilter>
The grant filter for the domain unit.
sourcepub fn build(self) -> Result<DomainUnitPolicyGrantPrincipal, BuildError>
pub fn build(self) -> Result<DomainUnitPolicyGrantPrincipal, BuildError>
Consumes the builder and constructs a DomainUnitPolicyGrantPrincipal.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for DomainUnitPolicyGrantPrincipalBuilder
impl Clone for DomainUnitPolicyGrantPrincipalBuilder
source§fn clone(&self) -> DomainUnitPolicyGrantPrincipalBuilder
fn clone(&self) -> DomainUnitPolicyGrantPrincipalBuilder
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 Default for DomainUnitPolicyGrantPrincipalBuilder
impl Default for DomainUnitPolicyGrantPrincipalBuilder
source§fn default() -> DomainUnitPolicyGrantPrincipalBuilder
fn default() -> DomainUnitPolicyGrantPrincipalBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for DomainUnitPolicyGrantPrincipalBuilder
impl PartialEq for DomainUnitPolicyGrantPrincipalBuilder
source§fn eq(&self, other: &DomainUnitPolicyGrantPrincipalBuilder) -> bool
fn eq(&self, other: &DomainUnitPolicyGrantPrincipalBuilder) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DomainUnitPolicyGrantPrincipalBuilder
Auto Trait Implementations§
impl Freeze for DomainUnitPolicyGrantPrincipalBuilder
impl RefUnwindSafe for DomainUnitPolicyGrantPrincipalBuilder
impl Send for DomainUnitPolicyGrantPrincipalBuilder
impl Sync for DomainUnitPolicyGrantPrincipalBuilder
impl Unpin for DomainUnitPolicyGrantPrincipalBuilder
impl UnwindSafe for DomainUnitPolicyGrantPrincipalBuilder
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> 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)
🔬This is a nightly-only experimental API. (
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>
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.