Package com.bandwidth.sdk.model
Class UpdateCall
java.lang.Object
com.bandwidth.sdk.model.UpdateCall
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.6.0")
public class UpdateCall
extends Object
UpdateCall
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
fallbackPassword
(String fallbackPassword) fallbackUsername
(String fallbackUsername) static UpdateCall
Create an instance of UpdateCall given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Basic auth password.Basic auth username.Basic auth password.Get redirectFallbackMethodA fallback url which, if provided, will be used to retry the redirect callback delivery in case `redirectUrl` fails to respond.Get redirectMethodThe URL to send the [Redirect](/docs/voice/bxml/redirect) event to which will provide new BXML.getState()
Get stategetTag()
A custom string that will be sent with this and all future callbacks unless overwritten by a future `tag` attribute or [`<Tag>`](/docs/voice/bxml/tag) verb, or cleared.Basic auth username.int
hashCode()
putAdditionalProperty
(String key, Object value) Set the additional (undeclared) property with the specified name and value.redirectFallbackMethod
(RedirectMethodEnum redirectFallbackMethod) redirectFallbackUrl
(URI redirectFallbackUrl) redirectMethod
(RedirectMethodEnum redirectMethod) redirectUrl
(URI redirectUrl) void
setFallbackPassword
(String fallbackPassword) void
setFallbackUsername
(String fallbackUsername) void
setPassword
(String password) void
setRedirectFallbackMethod
(RedirectMethodEnum redirectFallbackMethod) void
setRedirectFallbackUrl
(URI redirectFallbackUrl) void
setRedirectMethod
(RedirectMethodEnum redirectMethod) void
setRedirectUrl
(URI redirectUrl) void
setState
(CallStateEnum state) void
void
setUsername
(String username) state
(CallStateEnum state) toJson()
Convert an instance of UpdateCall 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_STATE
- See Also:
-
SERIALIZED_NAME_REDIRECT_URL
- See Also:
-
SERIALIZED_NAME_REDIRECT_METHOD
- See Also:
-
SERIALIZED_NAME_USERNAME
- See Also:
-
SERIALIZED_NAME_PASSWORD
- See Also:
-
SERIALIZED_NAME_REDIRECT_FALLBACK_URL
- See Also:
-
SERIALIZED_NAME_REDIRECT_FALLBACK_METHOD
- See Also:
-
SERIALIZED_NAME_FALLBACK_USERNAME
- See Also:
-
SERIALIZED_NAME_FALLBACK_PASSWORD
- See Also:
-
SERIALIZED_NAME_TAG
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
UpdateCall
public UpdateCall()
-
-
Method Details
-
state
-
getState
Get state- Returns:
- state
-
setState
-
redirectUrl
-
getRedirectUrl
The URL to send the [Redirect](/docs/voice/bxml/redirect) event to which will provide new BXML. Required if `state` is `active`. Not allowed if `state` is `completed`.- Returns:
- redirectUrl
-
setRedirectUrl
-
redirectMethod
-
getRedirectMethod
Get redirectMethod- Returns:
- redirectMethod
-
setRedirectMethod
-
username
-
getUsername
Basic auth username.- Returns:
- username
-
setUsername
-
password
-
getPassword
Basic auth password.- Returns:
- password
-
setPassword
-
redirectFallbackUrl
-
getRedirectFallbackUrl
A fallback url which, if provided, will be used to retry the redirect callback delivery in case `redirectUrl` fails to respond.- Returns:
- redirectFallbackUrl
-
setRedirectFallbackUrl
-
redirectFallbackMethod
-
getRedirectFallbackMethod
Get redirectFallbackMethod- Returns:
- redirectFallbackMethod
-
setRedirectFallbackMethod
-
fallbackUsername
-
getFallbackUsername
Basic auth username.- Returns:
- fallbackUsername
-
setFallbackUsername
-
fallbackPassword
-
getFallbackPassword
Basic auth password.- Returns:
- fallbackPassword
-
setFallbackPassword
-
tag
-
getTag
A custom string that will be sent with this and all future callbacks unless overwritten by a future `tag` attribute or [`<Tag>`](/docs/voice/bxml/tag) verb, or cleared. May be cleared by setting `tag=\"\"`. Max length 256 characters. Not allowed if `state` is `completed`.- 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 UpdateCall 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 UpdateCall
-
fromJson
Create an instance of UpdateCall given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of UpdateCall
- Throws:
IOException
- if the JSON string is invalid with respect to UpdateCall
-
toJson
Convert an instance of UpdateCall to an JSON string- Returns:
- JSON string
-