Package com.bandwidth.sdk.model
Class Error
java.lang.Object
com.bandwidth.sdk.model.Error
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.10.0")
public class Error
extends Object
Error
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddTelephoneNumbersItem
(TelephoneNumber telephoneNumbersItem) description
(String description) boolean
static Error
Create an instance of Error given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.getCode()
Get codeGet descriptionGet telephoneNumbersint
hashCode()
putAdditionalProperty
(String key, Object value) Set the additional (undeclared) property with the specified name and value.void
void
setDescription
(String description) void
setTelephoneNumbers
(List<TelephoneNumber> telephoneNumbers) telephoneNumbers
(List<TelephoneNumber> telephoneNumbers) toJson()
Convert an instance of Error 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_CODE
- See Also:
-
SERIALIZED_NAME_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_TELEPHONE_NUMBERS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Error
public Error()
-
-
Method Details
-
code
-
getCode
Get code- Returns:
- code
-
setCode
-
description
-
getDescription
Get description- Returns:
- description
-
setDescription
-
telephoneNumbers
-
addTelephoneNumbersItem
-
getTelephoneNumbers
Get telephoneNumbers- Returns:
- telephoneNumbers
-
setTelephoneNumbers
-
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 Error 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 Error
-
fromJson
Create an instance of Error given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of Error
- Throws:
IOException
- if the JSON string is invalid with respect to Error
-
toJson
Convert an instance of Error to an JSON string- Returns:
- JSON string
-