Package com.nexmo.client.insight
Class AdvancedInsightRequest
- java.lang.Object
-
- com.nexmo.client.insight.BaseInsightRequest
-
- com.nexmo.client.insight.AdvancedInsightRequest
-
public class AdvancedInsightRequest extends BaseInsightRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAdvancedInsightRequest.Builder
-
Field Summary
-
Fields inherited from class com.nexmo.client.insight.BaseInsightRequest
cnam, country, ipAddress, number
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AdvancedInsightRequest.Builderbuilder(java.lang.String number)java.lang.StringgetCallback()java.lang.BooleangetCnam()java.lang.StringgetIpAddress()booleanisAsync()static AdvancedInsightRequestwithNumber(java.lang.String number)Construct a AdvancedInsightRequest with a number.static AdvancedInsightRequestwithNumberAndCountry(java.lang.String number, java.lang.String country)Construct a AdvancedInsightRequest with a number and country.-
Methods inherited from class com.nexmo.client.insight.BaseInsightRequest
getCountry, getNumber
-
-
-
-
Method Detail
-
builder
public static AdvancedInsightRequest.Builder builder(java.lang.String number)
-
getCnam
public java.lang.Boolean getCnam()
-
getIpAddress
public java.lang.String getIpAddress()
-
isAsync
public boolean isAsync()
-
getCallback
public java.lang.String getCallback()
-
withNumber
public static AdvancedInsightRequest withNumber(java.lang.String number)
Construct a AdvancedInsightRequest with a number.- Parameters:
number- A single phone number that you need insight about in national or international format.- Returns:
- A new
AdvancedInsightRequestobject.
-
withNumberAndCountry
public static AdvancedInsightRequest withNumberAndCountry(java.lang.String number, java.lang.String country)
Construct a AdvancedInsightRequest 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
AdvancedInsightRequestobject.
-
-