Struct aws_sdk_workmail::model::impersonation_rule::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for ImpersonationRule
.
Implementations§
source§impl Builder
impl Builder
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.
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 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 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 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 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 build(self) -> ImpersonationRule
pub fn build(self) -> ImpersonationRule
Consumes the builder and constructs a ImpersonationRule
.