Class AdvancedInsightRequest

java.lang.Object
com.vonage.client.insight.BaseInsightRequest
com.vonage.client.insight.AdvancedInsightRequest
All Implemented Interfaces:
QueryParamsRequest

  • Method Details

    • builder

      This method is the starting point for constructing an Advanced Insight
      Parameters:
      number - A single phone number that you need insight about in national or international format.
      Returns:
      A new AdvancedInsightRequest.Builder instance.
    • builder

      This method is the starting point for constructing an Advanced Insight Note that the number field must be set.
      Returns:
      A new AdvancedInsightRequest.Builder instance.
    • getRealTimeData

    • getCnam

      public Boolean getCnam()
    • isAsync

      public boolean isAsync()
    • getCallback

      public String getCallback()
    • makeParams

      Description copied from interface: QueryParamsRequest
      Internal method for serializing the fields of this class into query parameters. The Map should be mutable so that subclasses can add fields, otherwise the method or implementing class should be marked as final. Duplicate entries can be handled by mapping the key to a list of the entries.
      Specified by:
      makeParams in interface QueryParamsRequest
      Overrides:
      makeParams in class BaseInsightRequest
      Returns:
      The query parameters as unique key-value pairs.
    • withNumber

      public static AdvancedInsightRequest withNumber(String number)
      Construct an AdvancedInsightRequest with a number.
      Parameters:
      number - A single phone number that you need insight about in national or international format.
      Returns:
      A new AdvancedInsightRequest object.
    • withNumberAndCountry

      public static AdvancedInsightRequest withNumberAndCountry(String number, String country)
      Construct a AdvancedInsightRequest with a number and country.
      Parameters:
      number - A single phone number that you need insight about in national or international format.
      country - If a number does not have a country code, or it is uncertain, set the two-character country code.
      Returns:
      A new AdvancedInsightRequest object.