Package com.bandwidth.sdk.model
Class CreateCall
java.lang.Object
com.bandwidth.sdk.model.CreateCall
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.6.0")
public class CreateCall
extends Object
CreateCall
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionanswerFallbackMethod
(CallbackMethodEnum answerFallbackMethod) answerFallbackUrl
(URI answerFallbackUrl) answerMethod
(CallbackMethodEnum answerMethod) applicationId
(String applicationId) callbackTimeout
(Double callbackTimeout) callTimeout
(Double callTimeout) disconnectMethod
(CallbackMethodEnum disconnectMethod) disconnectUrl
(URI disconnectUrl) displayName
(String displayName) boolean
fallbackPassword
(String fallbackPassword) fallbackUsername
(String fallbackUsername) static CreateCall
Create an instance of CreateCall given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Get answerFallbackMethodA fallback url which, if provided, will be used to retry the `answer` webhook delivery in case `answerUrl` fails to respond Must use `https` if specifying `fallbackUsername` and `fallbackPassword`.Get answerMethodThe full URL to send the <a href='/docs/voice/webhooks/answer'>Answer</a> event to when the called party answers.The id of the application associated with the `from` number.This is the timeout (in seconds) to use when delivering webhooks for the call.The timeout (in seconds) for the callee to answer the call after it starts ringing.Get disconnectMethodThe URL to send the <a href='/docs/voice/webhooks/disconnect'>Disconnect</a> event to when the call ends.The caller display name to use when the call is created.Basic auth password.Basic auth username.getFrom()
A Bandwidth phone number on your account the call should come from (must be in E.164 format, like `+15555551212`) even if `privacy` is set to true.Get machineDetectionBasic auth password.The priority of this call over other calls from your account.Hide the calling number.getTag()
A custom string that will be sent with all webhooks for this call unless overwritten by a future <a href='/docs/voice/bxml/tag'>`<Tag>`</a> verb or `tag` attribute on another verb, or cleared.getTo()
The destination to call (must be an E.164 formatted number (e.g.Basic auth username.getUui()
A comma-separated list of 'User-To-User' headers to be sent in the INVITE when calling a SIP URI.int
hashCode()
machineDetection
(MachineDetectionConfiguration machineDetection) putAdditionalProperty
(String key, Object value) Set the additional (undeclared) property with the specified name and value.void
setAnswerFallbackMethod
(CallbackMethodEnum answerFallbackMethod) void
setAnswerFallbackUrl
(URI answerFallbackUrl) void
setAnswerMethod
(CallbackMethodEnum answerMethod) void
setAnswerUrl
(URI answerUrl) void
setApplicationId
(String applicationId) void
setCallbackTimeout
(Double callbackTimeout) void
setCallTimeout
(Double callTimeout) void
setDisconnectMethod
(CallbackMethodEnum disconnectMethod) void
setDisconnectUrl
(URI disconnectUrl) void
setDisplayName
(String displayName) void
setFallbackPassword
(String fallbackPassword) void
setFallbackUsername
(String fallbackUsername) void
void
setMachineDetection
(MachineDetectionConfiguration machineDetection) void
setPassword
(String password) void
setPriority
(Integer priority) void
setPrivacy
(Boolean privacy) void
void
void
setUsername
(String username) void
toJson()
Convert an instance of CreateCall to an JSON stringtoString()
static void
validateJsonElement
(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_TO
- See Also:
-
SERIALIZED_NAME_FROM
- See Also:
-
SERIALIZED_NAME_PRIVACY
- See Also:
-
SERIALIZED_NAME_DISPLAY_NAME
- See Also:
-
SERIALIZED_NAME_UUI
- See Also:
-
SERIALIZED_NAME_APPLICATION_ID
- See Also:
-
SERIALIZED_NAME_ANSWER_URL
- See Also:
-
SERIALIZED_NAME_ANSWER_METHOD
- See Also:
-
SERIALIZED_NAME_USERNAME
- See Also:
-
SERIALIZED_NAME_PASSWORD
- See Also:
-
SERIALIZED_NAME_ANSWER_FALLBACK_URL
- See Also:
-
SERIALIZED_NAME_ANSWER_FALLBACK_METHOD
- See Also:
-
SERIALIZED_NAME_FALLBACK_USERNAME
- See Also:
-
SERIALIZED_NAME_FALLBACK_PASSWORD
- See Also:
-
SERIALIZED_NAME_DISCONNECT_URL
- See Also:
-
SERIALIZED_NAME_DISCONNECT_METHOD
- See Also:
-
SERIALIZED_NAME_CALL_TIMEOUT
- See Also:
-
SERIALIZED_NAME_CALLBACK_TIMEOUT
- See Also:
-
SERIALIZED_NAME_MACHINE_DETECTION
- See Also:
-
SERIALIZED_NAME_PRIORITY
- See Also:
-
SERIALIZED_NAME_TAG
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CreateCall
public CreateCall()
-
-
Method Details
-
to
-
getTo
The destination to call (must be an E.164 formatted number (e.g. `+15555551212`) or a SIP URI (e.g. `sip:[email protected]`)).- Returns:
- to
-
setTo
-
from
-
getFrom
A Bandwidth phone number on your account the call should come from (must be in E.164 format, like `+15555551212`) even if `privacy` is set to true.- Returns:
- from
-
setFrom
-
privacy
-
getPrivacy
Hide the calling number. The `displayName` field can be used to customize the displayed name.- Returns:
- privacy
-
setPrivacy
-
displayName
-
getDisplayName
The caller display name to use when the call is created. May not exceed 256 characters nor contain control characters such as new lines. If `privacy` is true, only the following values are valid: `Restricted`, `Anonymous`, `Private`, or `Unavailable`.- Returns:
- displayName
-
setDisplayName
-
uui
-
getUui
A comma-separated list of 'User-To-User' headers to be sent in the INVITE when calling a SIP URI. Each value must end with an 'encoding' parameter as described in <a href='https://tools.ietf.org/html/rfc7433'>RFC 7433</a>. Only 'jwt' and 'base64' encodings are allowed. The entire value cannot exceed 350 characters, including parameters and separators.- Returns:
- uui
-
setUui
-
applicationId
-
getApplicationId
The id of the application associated with the `from` number.- Returns:
- applicationId
-
setApplicationId
-
answerUrl
-
getAnswerUrl
The full URL to send the <a href='/docs/voice/webhooks/answer'>Answer</a> event to when the called party answers. This endpoint should return the first <a href='/docs/voice/bxml'>BXML document</a> to be executed in the call. Must use `https` if specifying `username` and `password`.- Returns:
- answerUrl
-
setAnswerUrl
-
answerMethod
-
getAnswerMethod
Get answerMethod- Returns:
- answerMethod
-
setAnswerMethod
-
username
-
getUsername
Basic auth username.- Returns:
- username
-
setUsername
-
password
-
getPassword
Basic auth password.- Returns:
- password
-
setPassword
-
answerFallbackUrl
-
getAnswerFallbackUrl
A fallback url which, if provided, will be used to retry the `answer` webhook delivery in case `answerUrl` fails to respond Must use `https` if specifying `fallbackUsername` and `fallbackPassword`.- Returns:
- answerFallbackUrl
-
setAnswerFallbackUrl
-
answerFallbackMethod
-
getAnswerFallbackMethod
Get answerFallbackMethod- Returns:
- answerFallbackMethod
-
setAnswerFallbackMethod
-
fallbackUsername
-
getFallbackUsername
Basic auth username.- Returns:
- fallbackUsername
-
setFallbackUsername
-
fallbackPassword
-
getFallbackPassword
Basic auth password.- Returns:
- fallbackPassword
-
setFallbackPassword
-
disconnectUrl
-
getDisconnectUrl
The URL to send the <a href='/docs/voice/webhooks/disconnect'>Disconnect</a> event to when the call ends. This event does not expect a BXML response.- Returns:
- disconnectUrl
-
setDisconnectUrl
-
disconnectMethod
-
getDisconnectMethod
Get disconnectMethod- Returns:
- disconnectMethod
-
setDisconnectMethod
-
callTimeout
-
getCallTimeout
The timeout (in seconds) for the callee to answer the call after it starts ringing. If the call does not start ringing within 30s, the call will be cancelled regardless of this value. Can be any numeric value (including decimals) between 1 and 300. minimum: 1 maximum: 300- Returns:
- callTimeout
-
setCallTimeout
-
callbackTimeout
-
getCallbackTimeout
This is the timeout (in seconds) to use when delivering webhooks for the call. Can be any numeric value (including decimals) between 1 and 25. minimum: 1 maximum: 25- Returns:
- callbackTimeout
-
setCallbackTimeout
-
machineDetection
-
getMachineDetection
Get machineDetection- Returns:
- machineDetection
-
setMachineDetection
-
priority
-
getPriority
The priority of this call over other calls from your account. For example, if during a call your application needs to place a new call and bridge it with the current call, you might want to create the call with priority 1 so that it will be the next call picked off your queue, ahead of other less time sensitive calls. A lower value means higher priority, so a priority 1 call takes precedence over a priority 2 call. minimum: 1 maximum: 5- Returns:
- priority
-
setPriority
-
tag
-
getTag
A custom string that will be sent with all webhooks for this call unless overwritten by a future <a href='/docs/voice/bxml/tag'>`<Tag>`</a> verb or `tag` attribute on another verb, or cleared. May be cleared by setting `tag=\"\"` Max length 256 characters.- Returns:
- tag
-
setTag
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key
- name of the propertyvalue
- value of the property- Returns:
- the CreateCall instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key
- name of the property- Returns:
- an object
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement
- JSON Element- Throws:
IOException
- if the JSON Element is invalid with respect to CreateCall
-
fromJson
Create an instance of CreateCall given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of CreateCall
- Throws:
IOException
- if the JSON string is invalid with respect to CreateCall
-
toJson
Convert an instance of CreateCall to an JSON string- Returns:
- JSON string
-