Interface SlackChannelConfiguration.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<SlackChannelConfiguration.Builder,SlackChannelConfiguration>,SdkBuilder<SlackChannelConfiguration.Builder,SlackChannelConfiguration>,SdkPojo
- Enclosing class:
- SlackChannelConfiguration
public static interface SlackChannelConfiguration.Builder extends SdkPojo, CopyableBuilder<SlackChannelConfiguration.Builder,SlackChannelConfiguration>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SlackChannelConfiguration.BuilderchatConfigurationArn(String chatConfigurationArn)The Amazon Resource Name (ARN) of the SlackChannelConfiguration.SlackChannelConfiguration.BuilderconfigurationName(String configurationName)The name of the configuration.SlackChannelConfiguration.BuilderguardrailPolicyArns(String... guardrailPolicyArns)The list of IAM policy ARNs that are applied as channel guardrails.SlackChannelConfiguration.BuilderguardrailPolicyArns(Collection<String> guardrailPolicyArns)The list of IAM policy ARNs that are applied as channel guardrails.SlackChannelConfiguration.BuilderiamRoleArn(String iamRoleArn)A user-defined role that AWS Chatbot assumes.SlackChannelConfiguration.BuilderloggingLevel(String loggingLevel)Logging levels includeERROR,INFO, orNONE.SlackChannelConfiguration.BuilderslackChannelId(String slackChannelId)The ID of the Slack channel.SlackChannelConfiguration.BuilderslackChannelName(String slackChannelName)The name of the Slack channel.SlackChannelConfiguration.BuilderslackTeamId(String slackTeamId)The ID of the Slack workspace authorized with Amazon Chime.SlackChannelConfiguration.BuilderslackTeamName(String slackTeamName)Name of the Slack workspace.SlackChannelConfiguration.BuildersnsTopicArns(String... snsTopicArns)The ARNs of the SNS topics that deliver notifications to AWS Chatbot.SlackChannelConfiguration.BuildersnsTopicArns(Collection<String> snsTopicArns)The ARNs of the SNS topics that deliver notifications to AWS Chatbot.SlackChannelConfiguration.Builderstate(String state)EitherENABLEDorDISABLED.SlackChannelConfiguration.BuilderstateReason(String stateReason)Provided if State isDISABLED.SlackChannelConfiguration.Buildertags(Collection<Tag> tags)A map of tags assigned to a resource.SlackChannelConfiguration.Buildertags(Consumer<Tag.Builder>... tags)A map of tags assigned to a resource.SlackChannelConfiguration.Buildertags(Tag... tags)A map of tags assigned to a resource.SlackChannelConfiguration.BuilderuserAuthorizationRequired(Boolean userAuthorizationRequired)Enables use of a user role requirement in your chat configuration.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
slackTeamName
SlackChannelConfiguration.Builder slackTeamName(String slackTeamName)
Name of the Slack workspace.
- Parameters:
slackTeamName- Name of the Slack workspace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
slackTeamId
SlackChannelConfiguration.Builder slackTeamId(String slackTeamId)
The ID of the Slack workspace authorized with Amazon Chime.
- Parameters:
slackTeamId- The ID of the Slack workspace authorized with Amazon Chime.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
slackChannelId
SlackChannelConfiguration.Builder slackChannelId(String slackChannelId)
The ID of the Slack channel.
To get this ID, open Slack, right click on the channel name in the left pane, then choose Copy Link. The channel ID is the 9-character string at the end of the URL. For example, ABCBBLZZZ.
- Parameters:
slackChannelId- The ID of the Slack channel.To get this ID, open Slack, right click on the channel name in the left pane, then choose Copy Link. The channel ID is the 9-character string at the end of the URL. For example, ABCBBLZZZ.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
slackChannelName
SlackChannelConfiguration.Builder slackChannelName(String slackChannelName)
The name of the Slack channel.
- Parameters:
slackChannelName- The name of the Slack channel.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
chatConfigurationArn
SlackChannelConfiguration.Builder chatConfigurationArn(String chatConfigurationArn)
The Amazon Resource Name (ARN) of the SlackChannelConfiguration.
- Parameters:
chatConfigurationArn- The Amazon Resource Name (ARN) of the SlackChannelConfiguration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
iamRoleArn
SlackChannelConfiguration.Builder iamRoleArn(String iamRoleArn)
A user-defined role that AWS Chatbot assumes. This is not the service-linked role.
For more information, see IAM policies for AWS Chatbot in the AWS Chatbot Administrator Guide.
- Parameters:
iamRoleArn- A user-defined role that AWS Chatbot assumes. This is not the service-linked role.For more information, see IAM policies for AWS Chatbot in the AWS Chatbot Administrator Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snsTopicArns
SlackChannelConfiguration.Builder snsTopicArns(Collection<String> snsTopicArns)
The ARNs of the SNS topics that deliver notifications to AWS Chatbot.
- Parameters:
snsTopicArns- The ARNs of the SNS topics that deliver notifications to AWS Chatbot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snsTopicArns
SlackChannelConfiguration.Builder snsTopicArns(String... snsTopicArns)
The ARNs of the SNS topics that deliver notifications to AWS Chatbot.
- Parameters:
snsTopicArns- The ARNs of the SNS topics that deliver notifications to AWS Chatbot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configurationName
SlackChannelConfiguration.Builder configurationName(String configurationName)
The name of the configuration.
- Parameters:
configurationName- The name of the configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
loggingLevel
SlackChannelConfiguration.Builder loggingLevel(String loggingLevel)
Logging levels include
ERROR,INFO, orNONE.- Parameters:
loggingLevel- Logging levels includeERROR,INFO, orNONE.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
guardrailPolicyArns
SlackChannelConfiguration.Builder guardrailPolicyArns(Collection<String> guardrailPolicyArns)
The list of IAM policy ARNs that are applied as channel guardrails. The AWS managed
AdministratorAccesspolicy is applied by default if this is not set.- Parameters:
guardrailPolicyArns- The list of IAM policy ARNs that are applied as channel guardrails. The AWS managedAdministratorAccesspolicy is applied by default if this is not set.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
guardrailPolicyArns
SlackChannelConfiguration.Builder guardrailPolicyArns(String... guardrailPolicyArns)
The list of IAM policy ARNs that are applied as channel guardrails. The AWS managed
AdministratorAccesspolicy is applied by default if this is not set.- Parameters:
guardrailPolicyArns- The list of IAM policy ARNs that are applied as channel guardrails. The AWS managedAdministratorAccesspolicy is applied by default if this is not set.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userAuthorizationRequired
SlackChannelConfiguration.Builder userAuthorizationRequired(Boolean userAuthorizationRequired)
Enables use of a user role requirement in your chat configuration.
- Parameters:
userAuthorizationRequired- Enables use of a user role requirement in your chat configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
SlackChannelConfiguration.Builder tags(Collection<Tag> tags)
A map of tags assigned to a resource. A tag is a string-to-string map of key-value pairs.
- Parameters:
tags- A map of tags assigned to a resource. A tag is a string-to-string map of key-value pairs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
SlackChannelConfiguration.Builder tags(Tag... tags)
A map of tags assigned to a resource. A tag is a string-to-string map of key-value pairs.
- Parameters:
tags- A map of tags assigned to a resource. A tag is a string-to-string map of key-value pairs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
SlackChannelConfiguration.Builder tags(Consumer<Tag.Builder>... tags)
A map of tags assigned to a resource. A tag is a string-to-string map of key-value pairs.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tags(java.util.Collection)
-
state
SlackChannelConfiguration.Builder state(String state)
Either
ENABLEDorDISABLED. The resource returnsDISABLEDif the organization's AWS Chatbot policy has explicitly denied that configuration. For example, if Amazon Chime is disabled.- Parameters:
state- EitherENABLEDorDISABLED. The resource returnsDISABLEDif the organization's AWS Chatbot policy has explicitly denied that configuration. For example, if Amazon Chime is disabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stateReason
SlackChannelConfiguration.Builder stateReason(String stateReason)
Provided if State is
DISABLED. Provides context as to why the resource is disabled.- Parameters:
stateReason- Provided if State isDISABLED. Provides context as to why the resource is disabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-