Class LookupLookupResponse.Builder
-
- All Implemented Interfaces:
public final class LookupLookupResponse.Builder
A builder for LookupLookupResponse.
-
-
Method Summary
-
-
Method Detail
-
callerName
final LookupLookupResponse.Builder callerName(String callerName)
The CNAM (Caller ID Name) associated with the phone number. Contact us if you need to use this functionality. Once enabled, put
cnam
option totype
query parameter.
-
callerName
final LookupLookupResponse.Builder callerName(JsonField<String> callerName)
Sets Builder.callerName to an arbitrary JSON value.
You should usually call Builder.callerName with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
countryCode
final LookupLookupResponse.Builder countryCode(String countryCode)
The country code of the phone number.
-
countryCode
final LookupLookupResponse.Builder countryCode(JsonField<String> countryCode)
Sets Builder.countryCode to an arbitrary JSON value.
You should usually call Builder.countryCode with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
flags
final LookupLookupResponse.Builder flags(List<LookupLookupResponse.Flag> flags)
A list of flags associated with the phone number.
ported
- Indicates the phone number has been transferred from one carrier to another.temporary
- Indicates the phone number is likely a temporary or virtual number, often used for verification services or burner phones.
-
flags
final LookupLookupResponse.Builder flags(JsonField<List<LookupLookupResponse.Flag>> flags)
Sets Builder.flags to an arbitrary JSON value.
You should usually call Builder.flags with a well-typed
List<Flag>
value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addFlag
final LookupLookupResponse.Builder addFlag(LookupLookupResponse.Flag flag)
-
lineType
final LookupLookupResponse.Builder lineType(LookupLookupResponse.LineType lineType)
The type of phone line.
calling_cards
- Numbers that are associated with providers of pre-paid domestic and international calling cards.fixed_line
- Landline phone numbers.isp
- Numbers reserved for Internet Service Providers.local_rate
- Numbers that can be assigned non-geographically.mobile
- Mobile phone numbers.other
- Other types of services.pager
- Number ranges specifically allocated to paging devices.payphone
- Allocated numbers for payphone kiosks in some countries.premium_rate
- Landline numbers where the calling party pays more than standard.satellite
- Satellite phone numbers.service
- Automated applications.shared_cost
- Specific landline ranges where the cost of making the call is shared between the calling and called party.short_codes_commercial
- Short codes are memorable, easy-to-use numbers, like the UK's NHS 111, often sold to businesses. Not available in all countries.toll_free
- Number where the called party pays for the cost of the call not the calling party.universal_access
- Number ranges reserved for Universal Access initiatives.unknown
- Unknown phone number type.vpn
- Numbers are used exclusively within a private telecommunications network, connecting the operator's terminals internally and not accessible via the public telephone network.voice_mail
- A specific category of Interactive Voice Response (IVR) services.voip
- Specific ranges for providers of VoIP services to allow incoming calls from the regular telephony network.
-
lineType
final LookupLookupResponse.Builder lineType(JsonField<LookupLookupResponse.LineType> lineType)
Sets Builder.lineType to an arbitrary JSON value.
You should usually call Builder.lineType with a well-typed LineType value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
networkInfo
final LookupLookupResponse.Builder networkInfo(LookupLookupResponse.NetworkInfo networkInfo)
The current carrier information.
-
networkInfo
final LookupLookupResponse.Builder networkInfo(JsonField<LookupLookupResponse.NetworkInfo> networkInfo)
Sets Builder.networkInfo to an arbitrary JSON value.
You should usually call Builder.networkInfo with a well-typed NetworkInfo value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
originalNetworkInfo
final LookupLookupResponse.Builder originalNetworkInfo(LookupLookupResponse.OriginalNetworkInfo originalNetworkInfo)
The original carrier information.
-
originalNetworkInfo
final LookupLookupResponse.Builder originalNetworkInfo(JsonField<LookupLookupResponse.OriginalNetworkInfo> originalNetworkInfo)
Sets Builder.originalNetworkInfo to an arbitrary JSON value.
You should usually call Builder.originalNetworkInfo with a well-typed OriginalNetworkInfo value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
phoneNumber
final LookupLookupResponse.Builder phoneNumber(String phoneNumber)
The phone number.
-
phoneNumber
final LookupLookupResponse.Builder phoneNumber(JsonField<String> phoneNumber)
Sets Builder.phoneNumber to an arbitrary JSON value.
You should usually call Builder.phoneNumber with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final LookupLookupResponse.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final LookupLookupResponse.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final LookupLookupResponse.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final LookupLookupResponse.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final LookupLookupResponse.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final LookupLookupResponse build()
Returns an immutable instance of LookupLookupResponse.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-