Struct aws_sdk_chatbot::types::builders::SlackUserIdentityBuilder
source · #[non_exhaustive]pub struct SlackUserIdentityBuilder { /* private fields */ }Expand description
A builder for SlackUserIdentity.
Implementations§
source§impl SlackUserIdentityBuilder
impl SlackUserIdentityBuilder
sourcepub fn iam_role_arn(self, input: impl Into<String>) -> Self
pub fn iam_role_arn(self, input: impl Into<String>) -> Self
The ARN of the IAM role that defines the permissions for AWS Chatbot. This is a user-defined role that AWS Chatbot will assume. This is not the service-linked role. For more information, see IAM Policies for AWS Chatbot. This field is required.
sourcepub fn set_iam_role_arn(self, input: Option<String>) -> Self
pub fn set_iam_role_arn(self, input: Option<String>) -> Self
The ARN of the IAM role that defines the permissions for AWS Chatbot. This is a user-defined role that AWS Chatbot will assume. This is not the service-linked role. For more information, see IAM Policies for AWS Chatbot.
sourcepub fn get_iam_role_arn(&self) -> &Option<String>
pub fn get_iam_role_arn(&self) -> &Option<String>
The ARN of the IAM role that defines the permissions for AWS Chatbot. This is a user-defined role that AWS Chatbot will assume. This is not the service-linked role. For more information, see IAM Policies for AWS Chatbot.
sourcepub fn chat_configuration_arn(self, input: impl Into<String>) -> Self
pub fn chat_configuration_arn(self, input: impl Into<String>) -> Self
The ARN of the SlackChannelConfiguration associated with the user identity. This field is required.
sourcepub fn set_chat_configuration_arn(self, input: Option<String>) -> Self
pub fn set_chat_configuration_arn(self, input: Option<String>) -> Self
The ARN of the SlackChannelConfiguration associated with the user identity.
sourcepub fn get_chat_configuration_arn(&self) -> &Option<String>
pub fn get_chat_configuration_arn(&self) -> &Option<String>
The ARN of the SlackChannelConfiguration associated with the user identity.
sourcepub fn slack_team_id(self, input: impl Into<String>) -> Self
pub fn slack_team_id(self, input: impl Into<String>) -> Self
The ID of the Slack workspace authorized with AWS Chatbot. This field is required.
sourcepub fn set_slack_team_id(self, input: Option<String>) -> Self
pub fn set_slack_team_id(self, input: Option<String>) -> Self
The ID of the Slack workspace authorized with AWS Chatbot.
sourcepub fn get_slack_team_id(&self) -> &Option<String>
pub fn get_slack_team_id(&self) -> &Option<String>
The ID of the Slack workspace authorized with AWS Chatbot.
sourcepub fn slack_user_id(self, input: impl Into<String>) -> Self
pub fn slack_user_id(self, input: impl Into<String>) -> Self
The ID of the user in Slack. This field is required.
sourcepub fn set_slack_user_id(self, input: Option<String>) -> Self
pub fn set_slack_user_id(self, input: Option<String>) -> Self
The ID of the user in Slack.
sourcepub fn get_slack_user_id(&self) -> &Option<String>
pub fn get_slack_user_id(&self) -> &Option<String>
The ID of the user in Slack.
sourcepub fn aws_user_identity(self, input: impl Into<String>) -> Self
pub fn aws_user_identity(self, input: impl Into<String>) -> Self
The AWS user identity ARN used to associate a Slack User Identity with an IAM Role.
sourcepub fn set_aws_user_identity(self, input: Option<String>) -> Self
pub fn set_aws_user_identity(self, input: Option<String>) -> Self
The AWS user identity ARN used to associate a Slack User Identity with an IAM Role.
sourcepub fn get_aws_user_identity(&self) -> &Option<String>
pub fn get_aws_user_identity(&self) -> &Option<String>
The AWS user identity ARN used to associate a Slack User Identity with an IAM Role.
sourcepub fn build(self) -> Result<SlackUserIdentity, BuildError>
pub fn build(self) -> Result<SlackUserIdentity, BuildError>
Consumes the builder and constructs a SlackUserIdentity.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for SlackUserIdentityBuilder
impl Clone for SlackUserIdentityBuilder
source§fn clone(&self) -> SlackUserIdentityBuilder
fn clone(&self) -> SlackUserIdentityBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for SlackUserIdentityBuilder
impl Debug for SlackUserIdentityBuilder
source§impl Default for SlackUserIdentityBuilder
impl Default for SlackUserIdentityBuilder
source§fn default() -> SlackUserIdentityBuilder
fn default() -> SlackUserIdentityBuilder
source§impl PartialEq for SlackUserIdentityBuilder
impl PartialEq for SlackUserIdentityBuilder
source§fn eq(&self, other: &SlackUserIdentityBuilder) -> bool
fn eq(&self, other: &SlackUserIdentityBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for SlackUserIdentityBuilder
Auto Trait Implementations§
impl Freeze for SlackUserIdentityBuilder
impl RefUnwindSafe for SlackUserIdentityBuilder
impl Send for SlackUserIdentityBuilder
impl Sync for SlackUserIdentityBuilder
impl Unpin for SlackUserIdentityBuilder
impl UnwindSafe for SlackUserIdentityBuilder
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default 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