Package com.bandwidth.sdk.model
Class FailureWebhook
java.lang.Object
com.bandwidth.sdk.model.FailureWebhook
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.10.0")
public class FailureWebhook
extends Object
FailureWebhook
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddErrorsItem
(String errorsItem) boolean
errorDescription
(String errorDescription) static FailureWebhook
Create an instance of FailureWebhook given an JSON stringUser's account ID.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.An error code indicating what error was encountered.A description of the error that was encountered.Details of the errors that were encountered when processing the request.Unique identifier (UUID) generated by Bandwidth to assist in tracking the verification status of a toll-free number.Toll-free telephone number in E.164 format.int
hashCode()
internalTicketNumber
(UUID internalTicketNumber) phoneNumber
(String phoneNumber) putAdditionalProperty
(String key, Object value) Set the additional (undeclared) property with the specified name and value.void
setAccountId
(String accountId) void
setErrorCode
(String errorCode) void
setErrorDescription
(String errorDescription) void
void
setInternalTicketNumber
(UUID internalTicketNumber) void
setPhoneNumber
(String phoneNumber) toJson()
Convert an instance of FailureWebhook 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_ACCOUNT_ID
- See Also:
-
SERIALIZED_NAME_PHONE_NUMBER
- See Also:
-
SERIALIZED_NAME_ERROR_CODE
- See Also:
-
SERIALIZED_NAME_ERROR_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_ERRORS
- See Also:
-
SERIALIZED_NAME_INTERNAL_TICKET_NUMBER
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
FailureWebhook
public FailureWebhook()
-
-
Method Details
-
accountId
-
getAccountId
User's account ID.- Returns:
- accountId
-
setAccountId
-
phoneNumber
-
getPhoneNumber
Toll-free telephone number in E.164 format.- Returns:
- phoneNumber
-
setPhoneNumber
-
errorCode
-
getErrorCode
An error code indicating what error was encountered. This code can be interpreted as an HTTP status code in regards to the error that was encountered.- Returns:
- errorCode
-
setErrorCode
-
errorDescription
-
getErrorDescription
A description of the error that was encountered.- Returns:
- errorDescription
-
setErrorDescription
-
errors
-
addErrorsItem
-
getErrors
Details of the errors that were encountered when processing the request.- Returns:
- errors
-
setErrors
-
internalTicketNumber
-
getInternalTicketNumber
Unique identifier (UUID) generated by Bandwidth to assist in tracking the verification status of a toll-free number.- Returns:
- internalTicketNumber
-
setInternalTicketNumber
-
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 FailureWebhook 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 FailureWebhook
-
fromJson
Create an instance of FailureWebhook given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of FailureWebhook
- Throws:
IOException
- if the JSON string is invalid with respect to FailureWebhook
-
toJson
Convert an instance of FailureWebhook to an JSON string- Returns:
- JSON string
-