Package com.sinch.sdk.models
Class Configuration.Builder
java.lang.Object
com.sinch.sdk.models.Configuration.Builder
- Enclosing class:
Configuration
Dedicated Builder
- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build a Configuration instance from builder current statesetApplicationKey
(String applicationKey) Set Application keysetApplicationSecret
(String applicationSecret) Set Application secretSet Conversation related contextsetConversationRegion
(ConversationRegion conversationRegion) Set Conversation Region to be usedsetConversationTemplateManagementUrl
(String conversationTemplateManagementUrl) Set Conversation Template Management API URLsetConversationUrl
(String conversationUrl) Set Conversation API URLSet key IDsetKeySecret
(String keySecret) Set key secretsetNumbersContext
(NumbersContext context) Set Numbers related contextsetOAuthUrl
(String oauthUrl) Set OAuth URLsetProjectId
(String projectId) Set Project IDsetSmsApiToken
(String token) Set SMS related service plan tokensetSmsContext
(SmsContext context) Set Sms related contextsetSmsRegion
(SMSRegion region) Set SMS related regionsetSmsServicePlanId
(String servicePlanId) Set SMS related service plan IDSet Verification related contextsetVoiceContext
(VoiceContext context) Set Voice related contextsetVoiceRegion
(VoiceRegion region) Set Voice related region
-
Method Details
-
setKeyId
Set key ID- Parameters:
keyId
- key ID- Returns:
- Current builder
- Since:
- 1.0
- See Also:
-
setKeySecret
Set key secret- Parameters:
keySecret
- key secret- Returns:
- Current builder
- Since:
- 1.0
- See Also:
-
setProjectId
Set Project ID- Parameters:
projectId
- Project ID- Returns:
- Current builder
- Since:
- 1.0
- See Also:
-
setApplicationKey
Set Application key- Parameters:
applicationKey
- key- Returns:
- Current builder
- Since:
- 1.0
- See Also:
-
setApplicationSecret
Set Application secret- Parameters:
applicationSecret
- key- Returns:
- Current builder
- Since:
- 1.0
- See Also:
-
setOAuthUrl
Set OAuth URL- Parameters:
oauthUrl
- OAuth URL- Returns:
- Current builder
- Since:
- 1.0
-
setNumbersContext
Set Numbers related context- Parameters:
context
-getter
- Returns:
- Current builder
- Since:
- 1.0
-
setSmsServicePlanId
Set SMS related service plan ID- Parameters:
servicePlanId
-getter
- Returns:
- Current builder
- Since:
- 1.0
-
setSmsApiToken
Set SMS related service plan token- Parameters:
token
-getter
- Returns:
- Current builder
- Since:
- 1.0
-
setSmsRegion
Set SMS related region- Parameters:
region
-getter
- Returns:
- Current builder
- Since:
- 1.0
-
setSmsContext
Set Sms related context- Parameters:
context
-getter
- Returns:
- Current builder
- Since:
- 1.0
-
setVerificationContext
Set Verification related context- Parameters:
context
-getter
- Returns:
- Current builder
- Since:
- 1.0
-
setVoiceRegion
Set Voice related region- Parameters:
region
-getter
- Returns:
- Current builder
- Since:
- 1.0
-
setVoiceContext
Set Voice related context- Parameters:
context
-getter
- Returns:
- Current builder
- Since:
- 1.0
-
setConversationRegion
Set Conversation Region to be used- Parameters:
conversationRegion
- Conversation Region- Returns:
- Current builder
- Since:
- 1.0
-
setConversationUrl
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
Set Conversation related context- Parameters:
context
-getter
- Returns:
- Current builder
- Since:
- 1.0
-
build
Build a Configuration instance from builder current state- Returns:
- Configuration instance build from current builder state
- Since:
- 1.0
-