Package com.vonage.client.insight
Class StandardInsightRequest.Builder
java.lang.Object
com.vonage.client.insight.StandardInsightRequest.Builder
- Enclosing class:
- StandardInsightRequest
public static class StandardInsightRequest.Builder extends java.lang.Object
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Builder(java.lang.String number) -
Method Summary
Modifier and Type Method Description StandardInsightRequestbuild()StandardInsightRequest.Buildercnam(java.lang.Boolean cnam)StandardInsightRequest.Buildercountry(java.lang.String country)StandardInsightRequest.Buildernumber(java.lang.String number)
-
Field Details
-
Constructor Details
-
Builder
- Parameters:
number- A single phone number that you need insight about in national or international format.
-
-
Method Details
-
number
- Parameters:
number- A single phone number that you need insight about in national or international format.- Returns:
- The
StandardInsightRequest.Builderto keep building.
-
country
- Parameters:
country- If a number does not have a country code or it is uncertain, set the two-character country code.- Returns:
- The
StandardInsightRequest.Builderto keep building.
-
cnam
- Parameters:
cnam- Indicates if the name of the person who owns the phone number should also be looked up and returned. Set to true to receive phone number owner name in the response. This is only available for US numbers and incurs an additional charge.- Returns:
- The
StandardInsightRequest.Builderto keep building.
-
build
- Returns:
- A new
StandardInsightRequestobject from the stored builder options.
-