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

  • Constructor Details

    • LookupStatus

      public LookupStatus()
  • Method Details

    • requestId

      public LookupStatus requestId(String requestId)
    • getRequestId

      @Nullable public String getRequestId()
      The requestId.
      Returns:
      requestId
    • setRequestId

      public void setRequestId(String requestId)
    • status

      public LookupStatus status(LookupStatusEnum status)
    • getStatus

      @Nullable public LookupStatusEnum getStatus()
      Get status
      Returns:
      status
    • setStatus

      public void setStatus(LookupStatusEnum status)
    • result

      public LookupStatus result(List<LookupResult> result)
    • addResultItem

      public LookupStatus addResultItem(LookupResult resultItem)
    • getResult

      @Nullable public List<LookupResult> getResult()
      The carrier information results for the specified telephone number.
      Returns:
      result
    • setResult

      public void setResult(List<LookupResult> result)
    • failedTelephoneNumbers

      public LookupStatus failedTelephoneNumbers(List<String> failedTelephoneNumbers)
    • addFailedTelephoneNumbersItem

      public LookupStatus addFailedTelephoneNumbersItem(String failedTelephoneNumbersItem)
    • getFailedTelephoneNumbers

      @Nullable public List<String> getFailedTelephoneNumbers()
      The telephone numbers whose lookup failed.
      Returns:
      failedTelephoneNumbers
    • setFailedTelephoneNumbers

      public void setFailedTelephoneNumbers(List<String> failedTelephoneNumbers)
    • putAdditionalProperty

      public LookupStatus 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 LookupStatus 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 LookupStatus
    • fromJson

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

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