@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SlackChannelConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
Constructor and Description |
---|
SlackChannelConfiguration() |
Modifier and Type | Method and Description |
---|---|
SlackChannelConfiguration |
clone() |
boolean |
equals(Object obj) |
String |
getChatConfigurationArn()
The ARN of the SlackChannelConfiguration.
|
String |
getConfigurationName()
The name of the configuration.
|
List<String> |
getGuardrailPolicyArns()
The list of IAM policy ARNs that are applied as channel guardrails.
|
String |
getIamRoleArn()
The ARN of the IAM role that defines the permissions for AWS Chatbot.
|
String |
getLoggingLevel()
Logging levels include ERROR, INFO, or NONE.
|
String |
getSlackChannelId()
The ID of the Slack channel.
|
String |
getSlackChannelName()
The name of the Slack Channel.
|
String |
getSlackTeamId()
The ID of the Slack workspace authorized with AWS Chatbot.
|
String |
getSlackTeamName()
Name of the Slack Workspace.
|
List<String> |
getSnsTopicArns()
The ARNs of the SNS topics that deliver notifications to AWS Chatbot.
|
List<Tag> |
getTags()
A list of tags applied to the configuration.
|
Boolean |
getUserAuthorizationRequired()
Enables use of a user role requirement in your chat configuration.
|
int |
hashCode() |
Boolean |
isUserAuthorizationRequired()
Enables use of a user role requirement in your chat configuration.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setChatConfigurationArn(String chatConfigurationArn)
The ARN of the SlackChannelConfiguration.
|
void |
setConfigurationName(String configurationName)
The name of the configuration.
|
void |
setGuardrailPolicyArns(Collection<String> guardrailPolicyArns)
The list of IAM policy ARNs that are applied as channel guardrails.
|
void |
setIamRoleArn(String iamRoleArn)
The ARN of the IAM role that defines the permissions for AWS Chatbot.
|
void |
setLoggingLevel(String loggingLevel)
Logging levels include ERROR, INFO, or NONE.
|
void |
setSlackChannelId(String slackChannelId)
The ID of the Slack channel.
|
void |
setSlackChannelName(String slackChannelName)
The name of the Slack Channel.
|
void |
setSlackTeamId(String slackTeamId)
The ID of the Slack workspace authorized with AWS Chatbot.
|
void |
setSlackTeamName(String slackTeamName)
Name of the Slack Workspace.
|
void |
setSnsTopicArns(Collection<String> snsTopicArns)
The ARNs of the SNS topics that deliver notifications to AWS Chatbot.
|
void |
setTags(Collection<Tag> tags)
A list of tags applied to the configuration.
|
void |
setUserAuthorizationRequired(Boolean userAuthorizationRequired)
Enables use of a user role requirement in your chat configuration.
|
String |
toString()
Returns a string representation of this object.
|
SlackChannelConfiguration |
withChatConfigurationArn(String chatConfigurationArn)
The ARN of the SlackChannelConfiguration.
|
SlackChannelConfiguration |
withConfigurationName(String configurationName)
The name of the configuration.
|
SlackChannelConfiguration |
withGuardrailPolicyArns(Collection<String> guardrailPolicyArns)
The list of IAM policy ARNs that are applied as channel guardrails.
|
SlackChannelConfiguration |
withGuardrailPolicyArns(String... guardrailPolicyArns)
The list of IAM policy ARNs that are applied as channel guardrails.
|
SlackChannelConfiguration |
withIamRoleArn(String iamRoleArn)
The ARN of the IAM role that defines the permissions for AWS Chatbot.
|
SlackChannelConfiguration |
withLoggingLevel(String loggingLevel)
Logging levels include ERROR, INFO, or NONE.
|
SlackChannelConfiguration |
withSlackChannelId(String slackChannelId)
The ID of the Slack channel.
|
SlackChannelConfiguration |
withSlackChannelName(String slackChannelName)
The name of the Slack Channel.
|
SlackChannelConfiguration |
withSlackTeamId(String slackTeamId)
The ID of the Slack workspace authorized with AWS Chatbot.
|
SlackChannelConfiguration |
withSlackTeamName(String slackTeamName)
Name of the Slack Workspace.
|
SlackChannelConfiguration |
withSnsTopicArns(Collection<String> snsTopicArns)
The ARNs of the SNS topics that deliver notifications to AWS Chatbot.
|
SlackChannelConfiguration |
withSnsTopicArns(String... snsTopicArns)
The ARNs of the SNS topics that deliver notifications to AWS Chatbot.
|
SlackChannelConfiguration |
withTags(Collection<Tag> tags)
A list of tags applied to the configuration.
|
SlackChannelConfiguration |
withTags(Tag... tags)
A list of tags applied to the configuration.
|
SlackChannelConfiguration |
withUserAuthorizationRequired(Boolean userAuthorizationRequired)
Enables use of a user role requirement in your chat configuration.
|
public void setSlackTeamName(String slackTeamName)
slackTeamName
- Name of the Slack Workspace.public String getSlackTeamName()
public SlackChannelConfiguration withSlackTeamName(String slackTeamName)
slackTeamName
- Name of the Slack Workspace.public void setSlackTeamId(String slackTeamId)
slackTeamId
- The ID of the Slack workspace authorized with AWS Chatbot.public String getSlackTeamId()
public SlackChannelConfiguration withSlackTeamId(String slackTeamId)
slackTeamId
- The ID of the Slack workspace authorized with AWS Chatbot.public void setSlackChannelId(String slackChannelId)
slackChannelId
- The ID of the Slack channel. To get the 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.public String getSlackChannelId()
public SlackChannelConfiguration withSlackChannelId(String slackChannelId)
slackChannelId
- The ID of the Slack channel. To get the 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.public void setSlackChannelName(String slackChannelName)
slackChannelName
- The name of the Slack Channel.public String getSlackChannelName()
public SlackChannelConfiguration withSlackChannelName(String slackChannelName)
slackChannelName
- The name of the Slack Channel.public void setChatConfigurationArn(String chatConfigurationArn)
chatConfigurationArn
- The ARN of the SlackChannelConfiguration.public String getChatConfigurationArn()
public SlackChannelConfiguration withChatConfigurationArn(String chatConfigurationArn)
chatConfigurationArn
- The ARN of the SlackChannelConfiguration.public void setIamRoleArn(String iamRoleArn)
iamRoleArn
- 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.public String getIamRoleArn()
public SlackChannelConfiguration withIamRoleArn(String iamRoleArn)
iamRoleArn
- 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.public List<String> getSnsTopicArns()
public void setSnsTopicArns(Collection<String> snsTopicArns)
snsTopicArns
- The ARNs of the SNS topics that deliver notifications to AWS Chatbot.public SlackChannelConfiguration withSnsTopicArns(String... snsTopicArns)
NOTE: This method appends the values to the existing list (if any). Use
setSnsTopicArns(java.util.Collection)
or withSnsTopicArns(java.util.Collection)
if you want to
override the existing values.
snsTopicArns
- The ARNs of the SNS topics that deliver notifications to AWS Chatbot.public SlackChannelConfiguration withSnsTopicArns(Collection<String> snsTopicArns)
snsTopicArns
- The ARNs of the SNS topics that deliver notifications to AWS Chatbot.public void setConfigurationName(String configurationName)
configurationName
- The name of the configuration.public String getConfigurationName()
public SlackChannelConfiguration withConfigurationName(String configurationName)
configurationName
- The name of the configuration.public void setLoggingLevel(String loggingLevel)
loggingLevel
- Logging levels include ERROR, INFO, or NONE.public String getLoggingLevel()
public SlackChannelConfiguration withLoggingLevel(String loggingLevel)
loggingLevel
- Logging levels include ERROR, INFO, or NONE.public List<String> getGuardrailPolicyArns()
public void setGuardrailPolicyArns(Collection<String> guardrailPolicyArns)
guardrailPolicyArns
- The list of IAM policy ARNs that are applied as channel guardrails. The AWS managed 'AdministratorAccess'
policy is applied by default if this is not set.public SlackChannelConfiguration withGuardrailPolicyArns(String... guardrailPolicyArns)
NOTE: This method appends the values to the existing list (if any). Use
setGuardrailPolicyArns(java.util.Collection)
or withGuardrailPolicyArns(java.util.Collection)
if you want to override the existing values.
guardrailPolicyArns
- The list of IAM policy ARNs that are applied as channel guardrails. The AWS managed 'AdministratorAccess'
policy is applied by default if this is not set.public SlackChannelConfiguration withGuardrailPolicyArns(Collection<String> guardrailPolicyArns)
guardrailPolicyArns
- The list of IAM policy ARNs that are applied as channel guardrails. The AWS managed 'AdministratorAccess'
policy is applied by default if this is not set.public void setUserAuthorizationRequired(Boolean userAuthorizationRequired)
userAuthorizationRequired
- Enables use of a user role requirement in your chat configuration.public Boolean getUserAuthorizationRequired()
public SlackChannelConfiguration withUserAuthorizationRequired(Boolean userAuthorizationRequired)
userAuthorizationRequired
- Enables use of a user role requirement in your chat configuration.public Boolean isUserAuthorizationRequired()
public List<Tag> getTags()
public void setTags(Collection<Tag> tags)
tags
- A list of tags applied to the configuration.public SlackChannelConfiguration withTags(Tag... tags)
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- A list of tags applied to the configuration.public SlackChannelConfiguration withTags(Collection<Tag> tags)
tags
- A list of tags applied to the configuration.public String toString()
toString
in class Object
Object.toString()
public SlackChannelConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.