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.
  • Field Details

  • Constructor Details

    • LookupResult

      public LookupResult()
  • Method Details

    • responseCode

      public LookupResult responseCode(Integer responseCode)
    • getResponseCode

      @Nullable public Integer getResponseCode()
      Our vendor's response code.
      Returns:
      responseCode
    • setResponseCode

      public void setResponseCode(Integer responseCode)
    • message

      public LookupResult message(String message)
    • getMessage

      @Nullable public String getMessage()
      Message associated with the response code.
      Returns:
      message
    • setMessage

      public void setMessage(String message)
    • e164Format

      public LookupResult e164Format(String e164Format)
    • getE164Format

      @Nullable public String getE164Format()
      The telephone number in E.164 format.
      Returns:
      e164Format
    • setE164Format

      public void setE164Format(String e164Format)
    • formatted

      public LookupResult formatted(String formatted)
    • getFormatted

      @Nullable public String getFormatted()
      The formatted version of the telephone number.
      Returns:
      formatted
    • setFormatted

      public void setFormatted(String formatted)
    • country

      public LookupResult country(String country)
    • getCountry

      @Nullable public String getCountry()
      The country of the telephone number.
      Returns:
      country
    • setCountry

      public void setCountry(String country)
    • lineType

      public LookupResult lineType(String lineType)
    • getLineType

      @Nullable public String getLineType()
      The line type of the telephone number.
      Returns:
      lineType
    • setLineType

      public void setLineType(String lineType)
    • lineProvider

      public LookupResult lineProvider(String lineProvider)
    • getLineProvider

      @Nullable public String getLineProvider()
      The messaging service provider of the telephone number.
      Returns:
      lineProvider
    • setLineProvider

      public void setLineProvider(String lineProvider)
    • mobileCountryCode

      public LookupResult mobileCountryCode(String mobileCountryCode)
    • getMobileCountryCode

      @Nullable public String getMobileCountryCode()
      The first half of the Home Network Identity (HNI).
      Returns:
      mobileCountryCode
    • setMobileCountryCode

      public void setMobileCountryCode(String mobileCountryCode)
    • mobileNetworkCode

      public LookupResult mobileNetworkCode(String mobileNetworkCode)
    • getMobileNetworkCode

      @Nullable public String getMobileNetworkCode()
      The second half of the HNI.
      Returns:
      mobileNetworkCode
    • setMobileNetworkCode

      public void setMobileNetworkCode(String mobileNetworkCode)
    • putAdditionalProperty

      public LookupResult putAdditionalProperty(String key, Object value)
      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 property
      value - value of the property
      Returns:
      the LookupResult instance itself
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      a map of objects
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - name of the property
      Returns:
      an object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      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

      public static LookupResult fromJson(String jsonString) throws IOException
      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

      public String toJson()
      Convert an instance of LookupResult to an JSON string
      Returns:
      JSON string