Package com.nexmo.client.insight
Class AdvancedInsightRequest.Builder
- java.lang.Object
-
- com.nexmo.client.insight.AdvancedInsightRequest.Builder
-
- Enclosing class:
- AdvancedInsightRequest
public static class AdvancedInsightRequest.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 AdvancedInsightRequest
build()
AdvancedInsightRequest.Builder
cnam(java.lang.Boolean cnam)
AdvancedInsightRequest.Builder
country(java.lang.String country)
AdvancedInsightRequest.Builder
ipAddress(java.lang.String ipAddress)
AdvancedInsightRequest.Builder
number(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 AdvancedInsightRequest.Builder number(java.lang.String number)
- Parameters:
number
- A single phone number that you need insight about in national or international format.- Returns:
- The
AdvancedInsightRequest.Builder
to keep building.
-
country
public AdvancedInsightRequest.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
AdvancedInsightRequest.Builder
to keep building.
-
cnam
public AdvancedInsightRequest.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
AdvancedInsightRequest.Builder
to keep building.
-
ipAddress
public AdvancedInsightRequest.Builder ipAddress(java.lang.String ipAddress)
- Parameters:
ipAddress
- The IP address of the user. If supplied, we will compare this to the country the user's phone is located in and return an error if it does not match.- Returns:
- The
AdvancedInsightRequest.Builder
to keep building.
-
build
public AdvancedInsightRequest build()
- Returns:
- A new
AdvancedInsightRequest
object from the stored builder options.
-
-