Class LookupStatus


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               date="2023-02-21T09:43:53.001100-05:00[America/New_York]")
    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.
    • Constructor Detail

      • LookupStatus

        public LookupStatus()
    • Method Detail

      • getRequestId

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

        public void setRequestId​(String requestId)
      • getStatus

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

        @Nullable
        public List<LookupResult> getResult()
        The carrier information results for the specified telephone number.
        Returns:
        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)
      • hashCode

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

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        Throws:
        IOException - if the JSON Object 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