Class Configuration.Builder

java.lang.Object
com.sinch.sdk.models.Configuration.Builder
Enclosing class:
Configuration

public static class Configuration.Builder extends Object
Dedicated Builder
Since:
1.0
  • Method Details

    • setKeyId

      public Configuration.Builder setKeyId(String keyId)
      Set key ID
      Parameters:
      keyId - key ID
      Returns:
      Current builder
      Since:
      1.0
      See Also:
    • setKeySecret

      public Configuration.Builder setKeySecret(String keySecret)
      Set key secret
      Parameters:
      keySecret - key secret
      Returns:
      Current builder
      Since:
      1.0
      See Also:
    • setProjectId

      public Configuration.Builder setProjectId(String projectId)
      Set Project ID
      Parameters:
      projectId - Project ID
      Returns:
      Current builder
      Since:
      1.0
      See Also:
    • setApplicationKey

      public Configuration.Builder setApplicationKey(String applicationKey)
      Set Application key
      Parameters:
      applicationKey - key
      Returns:
      Current builder
      Since:
      1.0
      See Also:
    • setApplicationSecret

      public Configuration.Builder setApplicationSecret(String applicationSecret)
      Set Application secret
      Parameters:
      applicationSecret - key
      Returns:
      Current builder
      Since:
      1.0
      See Also:
    • setOAuthUrl

      public Configuration.Builder setOAuthUrl(String oauthUrl)
      Set OAuth URL
      Parameters:
      oauthUrl - OAuth URL
      Returns:
      Current builder
      Since:
      1.0
    • setNumbersContext

      public Configuration.Builder setNumbersContext(NumbersContext context)
      Set Numbers related context
      Parameters:
      context - getter
      Returns:
      Current builder
      Since:
      1.0
    • setSmsServicePlanId

      public Configuration.Builder setSmsServicePlanId(String servicePlanId)
      Set SMS related service plan ID
      Parameters:
      servicePlanId - getter
      Returns:
      Current builder
      Since:
      1.0
    • setSmsApiToken

      public Configuration.Builder setSmsApiToken(String token)
      Set SMS related service plan token
      Parameters:
      token - getter
      Returns:
      Current builder
      Since:
      1.0
    • setSmsRegion

      public Configuration.Builder setSmsRegion(SMSRegion region)
      Set SMS related region
      Parameters:
      region - getter
      Returns:
      Current builder
      Since:
      1.0
    • setSmsContext

      public Configuration.Builder setSmsContext(SmsContext context)
      Set Sms related context
      Parameters:
      context - getter
      Returns:
      Current builder
      Since:
      1.0
    • setVerificationContext

      public Configuration.Builder setVerificationContext(VerificationContext context)
      Set Verification related context
      Parameters:
      context - getter
      Returns:
      Current builder
      Since:
      1.0
    • setVoiceRegion

      public Configuration.Builder setVoiceRegion(VoiceRegion region)
      Set Voice related region
      Parameters:
      region - getter
      Returns:
      Current builder
      Since:
      1.0
    • setVoiceContext

      public Configuration.Builder setVoiceContext(VoiceContext context)
      Set Voice related context
      Parameters:
      context - getter
      Returns:
      Current builder
      Since:
      1.0
    • setConversationRegion

      public Configuration.Builder setConversationRegion(ConversationRegion conversationRegion)
      Set Conversation Region to be used
      Parameters:
      conversationRegion - Conversation Region
      Returns:
      Current builder
      Since:
      1.0
    • setConversationUrl

      public Configuration.Builder setConversationUrl(String conversationUrl)
      Set Conversation API URL
      Parameters:
      conversationUrl - Conversation API URL
      Returns:
      Current builder
      Since:
      1.0
    • setConversationTemplateManagementUrl

      public Configuration.Builder setConversationTemplateManagementUrl(String conversationTemplateManagementUrl)
      Set Conversation Template Management API URL
      Parameters:
      conversationTemplateManagementUrl - Conversation Template Management URL
      Returns:
      Current builder * @since 1.0
    • setConversationContext

      public Configuration.Builder setConversationContext(ConversationContext context)
      Set Conversation related context
      Parameters:
      context - getter
      Returns:
      Current builder
      Since:
      1.0
    • build

      public Configuration build()
      Build a Configuration instance from builder current state
      Returns:
      Configuration instance build from current builder state
      Since:
      1.0