Class Configuration

java.lang.Object
com.sinch.sdk.models.Configuration

public class Configuration extends Object
Configuration used by Sinch Client
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getUnifiedCredentials

      public Optional<UnifiedCredentials> getUnifiedCredentials()
      Get Sinch unified credentials
      Returns:
      Credentials
      Since:
      1.0
      See Also:
    • getSmsServicePlanCredentials

      public Optional<SmsServicePlanCredentials> getSmsServicePlanCredentials()
      Get SMS service plan ID credentials
      Returns:
      Credentials
      Since:
      1.0
    • getOAuthServer

      public ServerConfiguration getOAuthServer()
      OAuth server
      Returns:
      OAuth Server configuration to be used
      Since:
      1.0
    • getOAuthUrl

      public String getOAuthUrl()
      OAuth URL
      Returns:
      OAuth Server URL
      Since:
      1.0
    • getNumbersContext

      public Optional<NumbersContext> getNumbersContext()
      Get Numbers domain related execution context
      Returns:
      Current Numbers context
      Since:
      1.0
    • getSmsContext

      public Optional<SmsContext> getSmsContext()
      Get SMS domain related execution context
      Returns:
      Current SMS context
      Since:
      1.0
    • getVerificationContext

      public Optional<VerificationContext> getVerificationContext()
      Get Verification domain related execution context
      Returns:
      Current Verification context
      Since:
      1.0
    • getVoiceContext

      public Optional<VoiceContext> getVoiceContext()
      Get Voice domain related execution context
      Returns:
      Current Voice context
      Since:
      1.0
    • getApplicationCredentials

      public Optional<ApplicationCredentials> getApplicationCredentials()
      Credentials to be used for Verification and Voice services
      Returns:
      Application credentials
      Since:
      1.0
      See Also:
    • getConversationContext

      public Optional<ConversationContext> getConversationContext()
      Get Voice domain related execution context
      Returns:
      Current Voice context
      Since:
      1.0
    • builder

      public static Configuration.Builder builder()
      Getting Builder
      Returns:
      New Builder instance
      Since:
      1.0
    • builder

      public static Configuration.Builder builder(Configuration configuration)
      Getting Builder
      Parameters:
      configuration - Source configuration to fill initial builder state
      Returns:
      New Builder instance
      Since:
      1.0