Class SlackChannelProperties
java.lang.Object
com.azure.resourcemanager.botservice.models.SlackChannelProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SlackChannelProperties>
public final class SlackChannelProperties
extends Object
implements com.azure.json.JsonSerializable<SlackChannelProperties>
The parameters to provide for the Slack channel.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of SlackChannelProperties class. -
Method Summary
Modifier and TypeMethodDescriptionclientId()Get the clientId property: The Slack client id.Get the clientSecret property: The Slack client secret.static SlackChannelPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SlackChannelProperties from the JsonReader.booleanGet 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.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()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.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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
SlackChannelProperties
public SlackChannelProperties()Creates an instance of SlackChannelProperties class.
-
-
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.
-
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SlackChannelProperties>- Throws:
IOException
-
fromJson
public static SlackChannelProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of SlackChannelProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SlackChannelProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the SlackChannelProperties.
-