Class SlackChannelProperties

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

public final class SlackChannelProperties extends Object
The parameters to provide for the Slack channel.
  • Constructor Details

    • SlackChannelProperties

      public SlackChannelProperties()
  • Method Details

    • clientId

      public String clientId()
      Get the clientId property: The Slack client id.
      Returns:
      the clientId 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • scopes

      public String scopes()
      Get the scopes property: The Slack permission scopes.
      Returns:
      the scopes value.
    • 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.
    • landingPageUrl

      public String landingPageUrl()
      Get the landingPageUrl property: The Slack landing page Url.
      Returns:
      the landingPageUrl value.
    • 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.
    • redirectAction

      public String redirectAction()
      Get the redirectAction property: The Slack redirect action.
      Returns:
      the redirectAction value.
    • lastSubmissionId

      public String lastSubmissionId()
      Get the lastSubmissionId property: The Sms auth token.
      Returns:
      the lastSubmissionId 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.
    • withRegisterBeforeOAuthFlow

      public SlackChannelProperties withRegisterBeforeOAuthFlow(Boolean registerBeforeOAuthFlow)
      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

      public Boolean isValidated()
      Get the isValidated property: Whether this channel is validated for the bot.
      Returns:
      the isValidated value.
    • signingSecret

      public String signingSecret()
      Get the signingSecret property: The Slack signing secret.
      Returns:
      the signingSecret value.
    • 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.
    • isEnabled

      public boolean isEnabled()
      Get the isEnabled property: Whether this channel is enabled for the bot.
      Returns:
      the isEnabled value.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.