Package com.vonage.client.insight
Class StandardInsightRequest
java.lang.Object
com.vonage.client.insight.BaseInsightRequest
com.vonage.client.insight.StandardInsightRequest
public class StandardInsightRequest extends BaseInsightRequest
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStandardInsightRequest.Builder -
Field Summary
Fields inherited from class com.vonage.client.insight.BaseInsightRequest
cnam, country, ipAddress, number -
Method Summary
Modifier and Type Method Description static StandardInsightRequest.Builderbuilder(java.lang.String number)java.lang.BooleangetCnam()static StandardInsightRequestwithNumber(java.lang.String number)Construct a StandardInsightRequest with a number.static StandardInsightRequestwithNumberAndCountry(java.lang.String number, java.lang.String country)Construct a StandardInsightRequest with a number and country.
-
Method Details
-
builder
-
getCnam
-
withNumber
Construct a StandardInsightRequest with a number.- Parameters:
number- A single phone number that you need insight about in national or international format.- Returns:
- A new
StandardInsightRequestobject.
-
withNumberAndCountry
public static StandardInsightRequest withNumberAndCountry(java.lang.String number, java.lang.String country)Construct a StandardInsightRequest 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
StandardInsightRequestobject.
-