Package com.bandwidth.sdk.model
Class CreateCallResponse
java.lang.Object
com.bandwidth.sdk.model.CreateCallResponse
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.6.0")
public class CreateCallResponse
extends Object
CreateCallResponse
-
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) enqueuedTime
(OffsetDateTime enqueuedTime) boolean
fallbackPassword
(String fallbackPassword) fallbackUsername
(String fallbackUsername) static CreateCallResponse
Create an instance of CreateCallResponse given an JSON stringThe bandwidth account ID associated with the call.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Get answerFallbackMethodFallback URL to deliver the `answer` event webhook.Get answerMethodURL to deliver the `answer` event webhook.The id of the application associated with the `from` number.This is the timeout (in seconds) to use when delivering webhooks for the call.Programmable Voice API Call ID.The timeout (in seconds) for the callee to answer the call after it starts ringing.The URL to update this call's state.Get disconnectMethodURL to deliver the `disconnect` event webhook.The time at which the call was accepted into the queue.Basic auth password.Basic auth username.getFrom()
Phone number that created the outbound call.Basic auth password.The priority of this call over other calls from your account.getTag()
Custom tag value.getTo()
Recipient of the outgoing call.Basic auth username.int
hashCode()
putAdditionalProperty
(String key, Object value) Set the additional (undeclared) property with the specified name and value.void
setAccountId
(String accountId) 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
void
setCallTimeout
(Double callTimeout) void
setCallUrl
(URI callUrl) void
setDisconnectMethod
(CallbackMethodEnum disconnectMethod) void
setDisconnectUrl
(URI disconnectUrl) void
setEnqueuedTime
(OffsetDateTime enqueuedTime) void
setFallbackPassword
(String fallbackPassword) void
setFallbackUsername
(String fallbackUsername) void
void
setPassword
(String password) void
setPriority
(Integer priority) void
void
void
setUsername
(String username) toJson()
Convert an instance of CreateCallResponse 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_APPLICATION_ID
- See Also:
-
SERIALIZED_NAME_ACCOUNT_ID
- See Also:
-
SERIALIZED_NAME_CALL_ID
- See Also:
-
SERIALIZED_NAME_TO
- See Also:
-
SERIALIZED_NAME_FROM
- See Also:
-
SERIALIZED_NAME_ENQUEUED_TIME
- See Also:
-
SERIALIZED_NAME_CALL_URL
- See Also:
-
SERIALIZED_NAME_CALL_TIMEOUT
- See Also:
-
SERIALIZED_NAME_CALLBACK_TIMEOUT
- See Also:
-
SERIALIZED_NAME_TAG
- See Also:
-
SERIALIZED_NAME_ANSWER_METHOD
- See Also:
-
SERIALIZED_NAME_ANSWER_URL
- See Also:
-
SERIALIZED_NAME_ANSWER_FALLBACK_METHOD
- See Also:
-
SERIALIZED_NAME_ANSWER_FALLBACK_URL
- See Also:
-
SERIALIZED_NAME_DISCONNECT_METHOD
- See Also:
-
SERIALIZED_NAME_DISCONNECT_URL
- See Also:
-
SERIALIZED_NAME_USERNAME
- See Also:
-
SERIALIZED_NAME_PASSWORD
- See Also:
-
SERIALIZED_NAME_FALLBACK_USERNAME
- See Also:
-
SERIALIZED_NAME_FALLBACK_PASSWORD
- See Also:
-
SERIALIZED_NAME_PRIORITY
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CreateCallResponse
public CreateCallResponse()
-
-
Method Details
-
applicationId
-
getApplicationId
The id of the application associated with the `from` number.- Returns:
- applicationId
-
setApplicationId
-
accountId
-
getAccountId
The bandwidth account ID associated with the call.- Returns:
- accountId
-
setAccountId
-
callId
-
getCallId
Programmable Voice API Call ID.- Returns:
- callId
-
setCallId
-
to
-
getTo
Recipient of the outgoing call.- Returns:
- to
-
setTo
-
from
-
getFrom
Phone number that created the outbound call.- Returns:
- from
-
setFrom
-
enqueuedTime
-
getEnqueuedTime
The time at which the call was accepted into the queue.- Returns:
- enqueuedTime
-
setEnqueuedTime
-
callUrl
-
getCallUrl
The URL to update this call's state.- Returns:
- callUrl
-
setCallUrl
-
callTimeout
-
getCallTimeout
The timeout (in seconds) for the callee to answer the call after it starts ringing.- Returns:
- callTimeout
-
setCallTimeout
-
callbackTimeout
-
getCallbackTimeout
This is the timeout (in seconds) to use when delivering webhooks for the call.- Returns:
- callbackTimeout
-
setCallbackTimeout
-
tag
-
getTag
Custom tag value.- Returns:
- tag
-
setTag
-
answerMethod
-
getAnswerMethod
Get answerMethod- Returns:
- answerMethod
-
setAnswerMethod
-
answerUrl
-
getAnswerUrl
URL to deliver the `answer` event webhook.- Returns:
- answerUrl
-
setAnswerUrl
-
answerFallbackMethod
-
getAnswerFallbackMethod
Get answerFallbackMethod- Returns:
- answerFallbackMethod
-
setAnswerFallbackMethod
-
answerFallbackUrl
-
getAnswerFallbackUrl
Fallback URL to deliver the `answer` event webhook.- Returns:
- answerFallbackUrl
-
setAnswerFallbackUrl
-
disconnectMethod
-
getDisconnectMethod
Get disconnectMethod- Returns:
- disconnectMethod
-
setDisconnectMethod
-
disconnectUrl
-
getDisconnectUrl
URL to deliver the `disconnect` event webhook.- Returns:
- disconnectUrl
-
setDisconnectUrl
-
username
-
getUsername
Basic auth username.- Returns:
- username
-
setUsername
-
password
-
getPassword
Basic auth password.- Returns:
- password
-
setPassword
-
fallbackUsername
-
getFallbackUsername
Basic auth username.- Returns:
- fallbackUsername
-
setFallbackUsername
-
fallbackPassword
-
getFallbackPassword
Basic auth password.- Returns:
- fallbackPassword
-
setFallbackPassword
-
priority
-
getPriority
The priority of this call over other calls from your account.- Returns:
- priority
-
setPriority
-
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 CreateCallResponse 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 CreateCallResponse
-
fromJson
Create an instance of CreateCallResponse given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of CreateCallResponse
- Throws:
IOException
- if the JSON string is invalid with respect to CreateCallResponse
-
toJson
Convert an instance of CreateCallResponse to an JSON string- Returns:
- JSON string
-