SlackChannelProperties Class
- java.
lang. Object - com.
azure. resourcemanager. botservice. models. SlackChannelProperties
- com.
Implements
public final class SlackChannelProperties
implements JsonSerializable<SlackChannelProperties>
The parameters to provide for the Slack channel.
Constructor Summary
| Constructor | Description |
|---|---|
| SlackChannelProperties() |
Creates an instance of Slack |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
clientId()
Get the client |
| String |
clientSecret()
Get the client |
|
static
Slack |
fromJson(JsonReader jsonReader)
Reads an instance of Slack |
| boolean |
isEnabled()
Get the is |
| Boolean |
isValidated()
Get the is |
| String |
landingPageUrl()
Get the landing |
| String |
lastSubmissionId()
Get the last |
| String |
redirectAction()
Get the redirect |
| Boolean |
registerBeforeOAuthFlow()
Get the register |
| String |
scopes()
Get the scopes property: The Slack permission scopes. |
| String |
signingSecret()
Get the signing |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
| String |
verificationToken()
Get the verification |
|
Slack |
withClientId(String clientId)
Set the client |
|
Slack |
withClientSecret(String clientSecret)
Set the client |
|
Slack |
withIsEnabled(boolean isEnabled)
Set the is |
|
Slack |
withLandingPageUrl(String landingPageUrl)
Set the landing |
|
Slack |
withScopes(String scopes)
Set the scopes property: The Slack permission scopes. |
|
Slack |
withSigningSecret(String signingSecret)
Set the signing |
|
Slack |
withVerificationToken(String verificationToken)
Set the verification |
Methods inherited from java.lang.Object
Constructor Details
SlackChannelProperties
public SlackChannelProperties()
Creates an instance of SlackChannelProperties class.
Method Details
clientId
public String clientId()
Get the clientId property: The Slack client id.
Returns:
clientSecret
public String clientSecret()
Get the clientSecret property: The Slack client secret. Value only returned through POST to the action Channel List API, otherwise empty.
Returns:
fromJson
public static SlackChannelProperties fromJson(JsonReader jsonReader)
Reads an instance of SlackChannelProperties from the JsonReader.
Parameters:
Returns:
Throws:
isEnabled
public boolean isEnabled()
Get the isEnabled property: Whether this channel is enabled for the bot.
Returns:
isValidated
public Boolean isValidated()
Get the isValidated property: Whether this channel is validated for the bot.
Returns:
landingPageUrl
public String landingPageUrl()
Get the landingPageUrl property: The Slack landing page Url.
Returns:
lastSubmissionId
public String lastSubmissionId()
Get the lastSubmissionId property: The Sms auth token.
Returns:
redirectAction
public String redirectAction()
Get the redirectAction property: The Slack redirect action.
Returns:
registerBeforeOAuthFlow
public Boolean registerBeforeOAuthFlow()
Get the registerBeforeOAuthFlow property: Whether to register the settings before OAuth validation is performed. Recommended to True.
Returns:
scopes
public String scopes()
Get the scopes property: The Slack permission scopes.
Returns:
signingSecret
public String signingSecret()
Get the signingSecret property: The Slack signing secret.
Returns:
toJson
validate
public void validate()
Validates the instance.
verificationToken
public String verificationToken()
Get the verificationToken property: The Slack verification token. Value only returned through POST to the action Channel List API, otherwise empty.
Returns:
withClientId
public SlackChannelProperties withClientId(String clientId)
Set the clientId property: The Slack client id.
Parameters:
Returns:
withClientSecret
public SlackChannelProperties withClientSecret(String clientSecret)
Set the clientSecret property: The Slack client secret. Value only returned through POST to the action Channel List API, otherwise empty.
Parameters:
Returns:
withIsEnabled
public SlackChannelProperties withIsEnabled(boolean isEnabled)
Set the isEnabled property: Whether this channel is enabled for the bot.
Parameters:
Returns:
withLandingPageUrl
public SlackChannelProperties withLandingPageUrl(String landingPageUrl)
Set the landingPageUrl property: The Slack landing page Url.
Parameters:
Returns:
withScopes
public SlackChannelProperties withScopes(String scopes)
Set the scopes property: The Slack permission scopes.
Parameters:
Returns:
withSigningSecret
public SlackChannelProperties withSigningSecret(String signingSecret)
Set the signingSecret property: The Slack signing secret.
Parameters:
Returns:
withVerificationToken
public SlackChannelProperties withVerificationToken(String verificationToken)
Set the verificationToken property: The Slack verification token. Value only returned through POST to the action Channel List API, otherwise empty.
Parameters:
Returns: