Struct aws_sdk_workmail::types::builders::ImpersonationRuleBuilder
source · #[non_exhaustive]pub struct ImpersonationRuleBuilder { /* private fields */ }
Expand description
A builder for ImpersonationRule
.
Implementations§
source§impl ImpersonationRuleBuilder
impl ImpersonationRuleBuilder
sourcepub fn impersonation_rule_id(self, input: impl Into<String>) -> Self
pub fn impersonation_rule_id(self, input: impl Into<String>) -> Self
The identifier of the rule.
This field is required.sourcepub fn set_impersonation_rule_id(self, input: Option<String>) -> Self
pub fn set_impersonation_rule_id(self, input: Option<String>) -> Self
The identifier of the rule.
sourcepub fn get_impersonation_rule_id(&self) -> &Option<String>
pub fn get_impersonation_rule_id(&self) -> &Option<String>
The identifier of the rule.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The rule description.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The rule description.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The rule description.
sourcepub fn effect(self, input: AccessEffect) -> Self
pub fn effect(self, input: AccessEffect) -> Self
The effect of the rule when it matches the input. Allowed effect values are ALLOW
or DENY
.
sourcepub fn set_effect(self, input: Option<AccessEffect>) -> Self
pub fn set_effect(self, input: Option<AccessEffect>) -> Self
The effect of the rule when it matches the input. Allowed effect values are ALLOW
or DENY
.
sourcepub fn get_effect(&self) -> &Option<AccessEffect>
pub fn get_effect(&self) -> &Option<AccessEffect>
The effect of the rule when it matches the input. Allowed effect values are ALLOW
or DENY
.
sourcepub fn target_users(self, input: impl Into<String>) -> Self
pub fn target_users(self, input: impl Into<String>) -> Self
Appends an item to target_users
.
To override the contents of this collection use set_target_users
.
A list of user IDs that match the rule.
sourcepub fn set_target_users(self, input: Option<Vec<String>>) -> Self
pub fn set_target_users(self, input: Option<Vec<String>>) -> Self
A list of user IDs that match the rule.
sourcepub fn get_target_users(&self) -> &Option<Vec<String>>
pub fn get_target_users(&self) -> &Option<Vec<String>>
A list of user IDs that match the rule.
sourcepub fn not_target_users(self, input: impl Into<String>) -> Self
pub fn not_target_users(self, input: impl Into<String>) -> Self
Appends an item to not_target_users
.
To override the contents of this collection use set_not_target_users
.
A list of user IDs that don't match the rule.
sourcepub fn set_not_target_users(self, input: Option<Vec<String>>) -> Self
pub fn set_not_target_users(self, input: Option<Vec<String>>) -> Self
A list of user IDs that don't match the rule.
sourcepub fn get_not_target_users(&self) -> &Option<Vec<String>>
pub fn get_not_target_users(&self) -> &Option<Vec<String>>
A list of user IDs that don't match the rule.
sourcepub fn build(self) -> Result<ImpersonationRule, BuildError>
pub fn build(self) -> Result<ImpersonationRule, BuildError>
Consumes the builder and constructs a ImpersonationRule
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ImpersonationRuleBuilder
impl Clone for ImpersonationRuleBuilder
source§fn clone(&self) -> ImpersonationRuleBuilder
fn clone(&self) -> ImpersonationRuleBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ImpersonationRuleBuilder
impl Debug for ImpersonationRuleBuilder
source§impl Default for ImpersonationRuleBuilder
impl Default for ImpersonationRuleBuilder
source§fn default() -> ImpersonationRuleBuilder
fn default() -> ImpersonationRuleBuilder
source§impl PartialEq for ImpersonationRuleBuilder
impl PartialEq for ImpersonationRuleBuilder
source§fn eq(&self, other: &ImpersonationRuleBuilder) -> bool
fn eq(&self, other: &ImpersonationRuleBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ImpersonationRuleBuilder
Auto Trait Implementations§
impl Freeze for ImpersonationRuleBuilder
impl RefUnwindSafe for ImpersonationRuleBuilder
impl Send for ImpersonationRuleBuilder
impl Sync for ImpersonationRuleBuilder
impl Unpin for ImpersonationRuleBuilder
impl UnwindSafe for ImpersonationRuleBuilder
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