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 ==
.