Package com.vonage.client.insight
Class BasicInsightRequest
java.lang.Object
com.vonage.client.insight.BaseInsightRequest
com.vonage.client.insight.BasicInsightRequest
- All Implemented Interfaces:
QueryParamsRequest
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.vonage.client.insight.BaseInsightRequest
country, number -
Method Summary
Modifier and TypeMethodDescriptionstatic BasicInsightRequest.Builderbuilder()This method is the starting point for constructing a Basic Insight request.static BasicInsightRequest.BuilderThis method is the starting point for constructing a Basic Insight request.static BasicInsightRequestwithNumber(String number) Construct a BasicInsightRequest with a number.static BasicInsightRequestwithNumberAndCountry(String number, String country) Construct a BasicInsightRequest with a number and country.Methods inherited from class com.vonage.client.insight.BaseInsightRequest
getCountry, getNumber, makeParams
-
Method Details
-
withNumber
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
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
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.Builderinstance.
-
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.Builderinstance.
-