Class BasicInsightRequest

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

  • Method Details

    • withNumber

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

      public static BasicInsightRequest withNumberAndCountry(String number, String country)
      Construct a BasicInsightRequest 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 BasicInsightRequest object.
    • builder

      public static BasicInsightRequest.Builder builder(String number)
      This method is the starting point for constructing a Basic Insight request.
      Parameters:
      number - A single phone number that you need insight about in national or international format.
      Returns:
      A new BasicInsightRequest.Builder instance.
    • builder

      This method is the starting point for constructing a Basic Insight request. Note that the number field must be set.
      Returns:
      A new BasicInsightRequest.Builder instance.