Package com.nexmo.client.insight
Class StandardInsightRequest.Builder
- java.lang.Object
-
- com.nexmo.client.insight.StandardInsightRequest.Builder
-
- Enclosing class:
- StandardInsightRequest
public static class StandardInsightRequest.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder(java.lang.String number)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StandardInsightRequestbuild()StandardInsightRequest.Buildercnam(java.lang.Boolean cnam)StandardInsightRequest.Buildercountry(java.lang.String country)StandardInsightRequest.Buildernumber(java.lang.String number)
-
-
-
Constructor Detail
-
Builder
public Builder(java.lang.String number)
- Parameters:
number- A single phone number that you need insight about in national or international format.
-
-
Method Detail
-
number
public StandardInsightRequest.Builder number(java.lang.String number)
- Parameters:
number- A single phone number that you need insight about in national or international format.- Returns:
- The
StandardInsightRequest.Builderto keep building.
-
country
public StandardInsightRequest.Builder country(java.lang.String 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
public StandardInsightRequest.Builder cnam(java.lang.Boolean 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
public StandardInsightRequest build()
- Returns:
- A new
StandardInsightRequestobject from the stored builder options.
-
-