Package com.bandwidth.sdk.model
Class LookupResult
java.lang.Object
com.bandwidth.sdk.model.LookupResult
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.6.0")
public class LookupResult
extends Object
Carrier information results for the specified telephone number.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptione164Format
(String e164Format) boolean
static LookupResult
Create an instance of LookupResult given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The country of the telephone number.The telephone number in E.164 format.The formatted version of the telephone number.The messaging service provider of the telephone number.The line type of the telephone number.Message associated with the response code.The first half of the Home Network Identity (HNI).The second half of the HNI.Our vendor's response code.int
hashCode()
lineProvider
(String lineProvider) mobileCountryCode
(String mobileCountryCode) mobileNetworkCode
(String mobileNetworkCode) putAdditionalProperty
(String key, Object value) Set the additional (undeclared) property with the specified name and value.responseCode
(Integer responseCode) void
setCountry
(String country) void
setE164Format
(String e164Format) void
setFormatted
(String formatted) void
setLineProvider
(String lineProvider) void
setLineType
(String lineType) void
setMessage
(String message) void
setMobileCountryCode
(String mobileCountryCode) void
setMobileNetworkCode
(String mobileNetworkCode) void
setResponseCode
(Integer responseCode) toJson()
Convert an instance of LookupResult 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_RESPONSE_CODE
- See Also:
-
SERIALIZED_NAME_MESSAGE
- See Also:
-
SERIALIZED_NAME_E164_FORMAT
- See Also:
-
SERIALIZED_NAME_FORMATTED
- See Also:
-
SERIALIZED_NAME_COUNTRY
- See Also:
-
SERIALIZED_NAME_LINE_TYPE
- See Also:
-
SERIALIZED_NAME_LINE_PROVIDER
- See Also:
-
SERIALIZED_NAME_MOBILE_COUNTRY_CODE
- See Also:
-
SERIALIZED_NAME_MOBILE_NETWORK_CODE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
LookupResult
public LookupResult()
-
-
Method Details
-
responseCode
-
getResponseCode
Our vendor's response code.- Returns:
- responseCode
-
setResponseCode
-
message
-
getMessage
Message associated with the response code.- Returns:
- message
-
setMessage
-
e164Format
-
getE164Format
The telephone number in E.164 format.- Returns:
- e164Format
-
setE164Format
-
formatted
-
getFormatted
The formatted version of the telephone number.- Returns:
- formatted
-
setFormatted
-
country
-
getCountry
The country of the telephone number.- Returns:
- country
-
setCountry
-
lineType
-
getLineType
The line type of the telephone number.- Returns:
- lineType
-
setLineType
-
lineProvider
-
getLineProvider
The messaging service provider of the telephone number.- Returns:
- lineProvider
-
setLineProvider
-
mobileCountryCode
-
getMobileCountryCode
The first half of the Home Network Identity (HNI).- Returns:
- mobileCountryCode
-
setMobileCountryCode
-
mobileNetworkCode
-
getMobileNetworkCode
The second half of the HNI.- Returns:
- mobileNetworkCode
-
setMobileNetworkCode
-
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 LookupResult 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 LookupResult
-
fromJson
Create an instance of LookupResult given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of LookupResult
- Throws:
IOException
- if the JSON string is invalid with respect to LookupResult
-
toJson
Convert an instance of LookupResult to an JSON string- Returns:
- JSON string
-