Share via


SlackChannelProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.botservice.models.SlackChannelProperties

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 SlackChannelProperties class.

Method Summary

Modifier and Type Method and Description
String clientId()

Get the clientId property: The Slack client id.

String clientSecret()

Get the clientSecret property: The Slack client secret.

static SlackChannelProperties fromJson(JsonReader jsonReader)

Reads an instance of SlackChannelProperties from the JsonReader.

boolean isEnabled()

Get the isEnabled property: Whether this channel is enabled for the bot.

Boolean isValidated()

Get the isValidated property: Whether this channel is validated for the bot.

String landingPageUrl()

Get the landingPageUrl property: The Slack landing page Url.

String lastSubmissionId()

Get the lastSubmissionId property: The Sms auth token.

String redirectAction()

Get the redirectAction property: The Slack redirect action.

Boolean registerBeforeOAuthFlow()

Get the registerBeforeOAuthFlow property: Whether to register the settings before OAuth validation is performed.

String scopes()

Get the scopes property: The Slack permission scopes.

String signingSecret()

Get the signingSecret property: The Slack signing secret.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String verificationToken()

Get the verificationToken property: The Slack verification token.

SlackChannelProperties withClientId(String clientId)

Set the clientId property: The Slack client id.

SlackChannelProperties withClientSecret(String clientSecret)

Set the clientSecret property: The Slack client secret.

SlackChannelProperties withIsEnabled(boolean isEnabled)

Set the isEnabled property: Whether this channel is enabled for the bot.

SlackChannelProperties withLandingPageUrl(String landingPageUrl)

Set the landingPageUrl property: The Slack landing page Url.

SlackChannelProperties withScopes(String scopes)

Set the scopes property: The Slack permission scopes.

SlackChannelProperties withSigningSecret(String signingSecret)

Set the signingSecret property: The Slack signing secret.

SlackChannelProperties withVerificationToken(String verificationToken)

Set the verificationToken property: The Slack verification token.

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:

the clientId value.

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:

the clientSecret value.

fromJson

public static SlackChannelProperties fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

isEnabled

public boolean isEnabled()

Get the isEnabled property: Whether this channel is enabled for the bot.

Returns:

the isEnabled value.

isValidated

public Boolean isValidated()

Get the isValidated property: Whether this channel is validated for the bot.

Returns:

the isValidated value.

landingPageUrl

public String landingPageUrl()

Get the landingPageUrl property: The Slack landing page Url.

Returns:

the landingPageUrl value.

lastSubmissionId

public String lastSubmissionId()

Get the lastSubmissionId property: The Sms auth token.

Returns:

the lastSubmissionId value.

redirectAction

public String redirectAction()

Get the redirectAction property: The Slack redirect action.

Returns:

the redirectAction value.

registerBeforeOAuthFlow

public Boolean registerBeforeOAuthFlow()

Get the registerBeforeOAuthFlow property: Whether to register the settings before OAuth validation is performed. Recommended to True.

Returns:

the registerBeforeOAuthFlow value.

scopes

public String scopes()

Get the scopes property: The Slack permission scopes.

Returns:

the scopes value.

signingSecret

public String signingSecret()

Get the signingSecret property: The Slack signing secret.

Returns:

the signingSecret value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

the verificationToken value.

withClientId

public SlackChannelProperties withClientId(String clientId)

Set the clientId property: The Slack client id.

Parameters:

clientId - the clientId value to set.

Returns:

the SlackChannelProperties object itself.

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:

clientSecret - the clientSecret value to set.

Returns:

the SlackChannelProperties object itself.

withIsEnabled

public SlackChannelProperties withIsEnabled(boolean isEnabled)

Set the isEnabled property: Whether this channel is enabled for the bot.

Parameters:

isEnabled - the isEnabled value to set.

Returns:

the SlackChannelProperties object itself.

withLandingPageUrl

public SlackChannelProperties withLandingPageUrl(String landingPageUrl)

Set the landingPageUrl property: The Slack landing page Url.

Parameters:

landingPageUrl - the landingPageUrl value to set.

Returns:

the SlackChannelProperties object itself.

withScopes

public SlackChannelProperties withScopes(String scopes)

Set the scopes property: The Slack permission scopes.

Parameters:

scopes - the scopes value to set.

Returns:

the SlackChannelProperties object itself.

withSigningSecret

public SlackChannelProperties withSigningSecret(String signingSecret)

Set the signingSecret property: The Slack signing secret.

Parameters:

signingSecret - the signingSecret value to set.

Returns:

the SlackChannelProperties object itself.

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:

verificationToken - the verificationToken value to set.

Returns:

the SlackChannelProperties object itself.

Applies to