Class SlackChannelProperties
java.lang.Object
com.azure.resourcemanager.botservice.models.SlackChannelProperties
The parameters to provide for the Slack channel.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclientId()
Get the clientId property: The Slack client id.Get the clientSecret property: The Slack client secret.boolean
Get the isEnabled property: Whether this channel is enabled for the bot.Get the isValidated property: Whether this channel is validated for the bot.Get the landingPageUrl property: The Slack landing page Url.Get the lastSubmissionId property: The Sms auth token.Get the redirectAction property: The Slack redirect action.Get the registerBeforeOAuthFlow property: Whether to register the settings before OAuth validation is performed.scopes()
Get the scopes property: The Slack permission scopes.Get the signingSecret property: The Slack signing secret.void
validate()
Validates the instance.Get the verificationToken property: The Slack verification token.withClientId
(String clientId) Set the clientId property: The Slack client id.withClientSecret
(String clientSecret) Set the clientSecret property: The Slack client secret.withIsEnabled
(boolean isEnabled) Set the isEnabled property: Whether this channel is enabled for the bot.withLandingPageUrl
(String landingPageUrl) Set the landingPageUrl property: The Slack landing page Url.withRegisterBeforeOAuthFlow
(Boolean registerBeforeOAuthFlow) Set the registerBeforeOAuthFlow property: Whether to register the settings before OAuth validation is performed.withScopes
(String scopes) Set the scopes property: The Slack permission scopes.withSigningSecret
(String signingSecret) Set the signingSecret property: The Slack signing secret.withVerificationToken
(String verificationToken) Set the verificationToken property: The Slack verification token.
-
Constructor Details
-
SlackChannelProperties
public SlackChannelProperties()
-
-
Method Details
-
clientId
Get the clientId property: The Slack client id.- Returns:
- the clientId value.
-
withClientId
Set the clientId property: The Slack client id.- Parameters:
clientId
- the clientId value to set.- Returns:
- the SlackChannelProperties object itself.
-
clientSecret
Get the clientSecret property: The Slack client secret. Value only returned through POST to the action Channel List API, otherwise empty.- Returns:
- the clientSecret value.
-
withClientSecret
Set the clientSecret property: The Slack client secret. Value only returned through POST to the action Channel List API, otherwise empty.- Parameters:
clientSecret
- the clientSecret value to set.- Returns:
- the SlackChannelProperties object itself.
-
verificationToken
Get the verificationToken property: The Slack verification token. Value only returned through POST to the action Channel List API, otherwise empty.- Returns:
- the verificationToken value.
-
withVerificationToken
Set the verificationToken property: The Slack verification token. Value only returned through POST to the action Channel List API, otherwise empty.- Parameters:
verificationToken
- the verificationToken value to set.- Returns:
- the SlackChannelProperties object itself.
-
scopes
Get the scopes property: The Slack permission scopes.- Returns:
- the scopes value.
-
withScopes
Set the scopes property: The Slack permission scopes.- Parameters:
scopes
- the scopes value to set.- Returns:
- the SlackChannelProperties object itself.
-
landingPageUrl
Get the landingPageUrl property: The Slack landing page Url.- Returns:
- the landingPageUrl value.
-
withLandingPageUrl
Set the landingPageUrl property: The Slack landing page Url.- Parameters:
landingPageUrl
- the landingPageUrl value to set.- Returns:
- the SlackChannelProperties object itself.
-
redirectAction
Get the redirectAction property: The Slack redirect action.- Returns:
- the redirectAction value.
-
lastSubmissionId
Get the lastSubmissionId property: The Sms auth token.- Returns:
- the lastSubmissionId value.
-
registerBeforeOAuthFlow
Get the registerBeforeOAuthFlow property: Whether to register the settings before OAuth validation is performed. Recommended to True.- Returns:
- the registerBeforeOAuthFlow value.
-
withRegisterBeforeOAuthFlow
Set the registerBeforeOAuthFlow property: Whether to register the settings before OAuth validation is performed. Recommended to True.- Parameters:
registerBeforeOAuthFlow
- the registerBeforeOAuthFlow value to set.- Returns:
- the SlackChannelProperties object itself.
-
isValidated
Get the isValidated property: Whether this channel is validated for the bot.- Returns:
- the isValidated value.
-
signingSecret
Get the signingSecret property: The Slack signing secret.- Returns:
- the signingSecret value.
-
withSigningSecret
Set the signingSecret property: The Slack signing secret.- Parameters:
signingSecret
- the signingSecret value to set.- Returns:
- the SlackChannelProperties object itself.
-
isEnabled
public boolean isEnabled()Get the isEnabled property: Whether this channel is enabled for the bot.- Returns:
- the isEnabled value.
-
withIsEnabled
Set the isEnabled property: Whether this channel is enabled for the bot.- Parameters:
isEnabled
- the isEnabled value to set.- Returns:
- the SlackChannelProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-