Package com.bandwidth.sdk.model
Class LookupStatus
java.lang.Object
com.bandwidth.sdk.model.LookupStatus
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.6.0")
public class LookupStatus
extends Object
If requestId exists, the result for that request is returned. See the Examples for details on the various responses that you can receive. Generally, if you see a Response Code of 0 in a result for a TN, information will be available for it. Any other Response Code will indicate no information was available for the TN.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddFailedTelephoneNumbersItem
(String failedTelephoneNumbersItem) addResultItem
(LookupResult resultItem) boolean
failedTelephoneNumbers
(List<String> failedTelephoneNumbers) static LookupStatus
Create an instance of LookupStatus given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The telephone numbers whose lookup failed.The requestId.The carrier information results for the specified telephone number.Get statusint
hashCode()
putAdditionalProperty
(String key, Object value) Set the additional (undeclared) property with the specified name and value.result
(List<LookupResult> result) void
setFailedTelephoneNumbers
(List<String> failedTelephoneNumbers) void
setRequestId
(String requestId) void
setResult
(List<LookupResult> result) void
setStatus
(LookupStatusEnum status) status
(LookupStatusEnum status) toJson()
Convert an instance of LookupStatus 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_REQUEST_ID
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_RESULT
- See Also:
-
SERIALIZED_NAME_FAILED_TELEPHONE_NUMBERS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
LookupStatus
public LookupStatus()
-
-
Method Details
-
requestId
-
getRequestId
The requestId.- Returns:
- requestId
-
setRequestId
-
status
-
getStatus
Get status- Returns:
- status
-
setStatus
-
result
-
addResultItem
-
getResult
The carrier information results for the specified telephone number.- Returns:
- result
-
setResult
-
failedTelephoneNumbers
-
addFailedTelephoneNumbersItem
-
getFailedTelephoneNumbers
The telephone numbers whose lookup failed.- Returns:
- failedTelephoneNumbers
-
setFailedTelephoneNumbers
-
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 LookupStatus 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 LookupStatus
-
fromJson
Create an instance of LookupStatus given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of LookupStatus
- Throws:
IOException
- if the JSON string is invalid with respect to LookupStatus
-
toJson
Convert an instance of LookupStatus to an JSON string- Returns:
- JSON string
-