Class HostedNumberOrderUpdater
- java.lang.Object
-
- com.twilio.base.Updater<HostedNumberOrder>
-
- com.twilio.rest.preview.hostedNumbers.HostedNumberOrderUpdater
-
public class HostedNumberOrderUpdater extends Updater<HostedNumberOrder>
PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact [email protected].
-
-
Constructor Summary
Constructors Constructor Description HostedNumberOrderUpdater(String pathSid)
Construct a new HostedNumberOrderUpdater.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HostedNumberOrderUpdater
setCallDelay(Integer callDelay)
The number of seconds, between 0 and 60, to delay before initiating the verification call.HostedNumberOrderUpdater
setCcEmails(String ccEmails)
Optional.HostedNumberOrderUpdater
setCcEmails(List<String> ccEmails)
Optional.HostedNumberOrderUpdater
setEmail(String email)
Email of the owner of this phone number that is being hosted..HostedNumberOrderUpdater
setExtension(String extension)
Digits to dial after connecting the verification call..HostedNumberOrderUpdater
setFriendlyName(String friendlyName)
A 64 character string that is a human readable text that describes this resource..HostedNumberOrderUpdater
setStatus(HostedNumberOrder.Status status)
User can only post to `pending-verification` status to transition the HostedNumberOrder to initiate a verification call or verification of ownership with a copy of a phone bill..HostedNumberOrderUpdater
setUniqueName(String uniqueName)
Provides a unique and addressable name to be assigned to this HostedNumberOrder, assigned by the developer, to be optionally used in addition to SID..HostedNumberOrderUpdater
setVerificationCode(String verificationCode)
A verification code that is given to the user via a phone call to the phone number that is being hosted..HostedNumberOrderUpdater
setVerificationDocumentSid(String verificationDocumentSid)
Optional.HostedNumberOrderUpdater
setVerificationType(HostedNumberOrder.VerificationType verificationType)
Optional.HostedNumberOrder
update(TwilioRestClient client)
Make the request to the Twilio API to perform the update.-
Methods inherited from class com.twilio.base.Updater
update, updateAsync, updateAsync
-
-
-
-
Constructor Detail
-
HostedNumberOrderUpdater
public HostedNumberOrderUpdater(String pathSid)
Construct a new HostedNumberOrderUpdater.- Parameters:
pathSid
- The sid
-
-
Method Detail
-
setFriendlyName
public HostedNumberOrderUpdater setFriendlyName(String friendlyName)
A 64 character string that is a human readable text that describes this resource..- Parameters:
friendlyName
- A human readable description of this resource.- Returns:
- this
-
setUniqueName
public HostedNumberOrderUpdater setUniqueName(String uniqueName)
Provides a unique and addressable name to be assigned to this HostedNumberOrder, assigned by the developer, to be optionally used in addition to SID..- Parameters:
uniqueName
- A unique, developer assigned name of this HostedNumberOrder.- Returns:
- this
-
setEmail
public HostedNumberOrderUpdater setEmail(String email)
Email of the owner of this phone number that is being hosted..- Parameters:
email
- Email.- Returns:
- this
-
setCcEmails
public HostedNumberOrderUpdater setCcEmails(List<String> ccEmails)
Optional. A list of emails that LOA document for this HostedNumberOrder will be carbon copied to..- Parameters:
ccEmails
- A list of emails.- Returns:
- this
-
setCcEmails
public HostedNumberOrderUpdater setCcEmails(String ccEmails)
Optional. A list of emails that LOA document for this HostedNumberOrder will be carbon copied to..- Parameters:
ccEmails
- A list of emails.- Returns:
- this
-
setStatus
public HostedNumberOrderUpdater setStatus(HostedNumberOrder.Status status)
User can only post to `pending-verification` status to transition the HostedNumberOrder to initiate a verification call or verification of ownership with a copy of a phone bill..- Parameters:
status
- The Status of this HostedNumberOrder.- Returns:
- this
-
setVerificationCode
public HostedNumberOrderUpdater setVerificationCode(String verificationCode)
A verification code that is given to the user via a phone call to the phone number that is being hosted..- Parameters:
verificationCode
- A verification code.- Returns:
- this
-
setVerificationType
public HostedNumberOrderUpdater setVerificationType(HostedNumberOrder.VerificationType verificationType)
Optional. The method used for verifying ownership of the number to be hosted. One of phone-call (default) or phone-bill..- Parameters:
verificationType
- Verification Type.- Returns:
- this
-
setVerificationDocumentSid
public HostedNumberOrderUpdater setVerificationDocumentSid(String verificationDocumentSid)
Optional. The unique sid identifier of the Identity Document that represents the document for verifying ownership of the number to be hosted. Required when VerificationType is phone-bill..- Parameters:
verificationDocumentSid
- Verification Document Sid- Returns:
- this
-
setExtension
public HostedNumberOrderUpdater setExtension(String extension)
Digits to dial after connecting the verification call..- Parameters:
extension
- Digits to dial after connecting the verification call.- Returns:
- this
-
setCallDelay
public HostedNumberOrderUpdater setCallDelay(Integer callDelay)
The number of seconds, between 0 and 60, to delay before initiating the verification call. Defaults to 0..- Parameters:
callDelay
- The number of seconds, between 0 and 60, to delay before initiating the verification call.- Returns:
- this
-
update
public HostedNumberOrder update(TwilioRestClient client)
Make the request to the Twilio API to perform the update.- Specified by:
update
in classUpdater<HostedNumberOrder>
- Parameters:
client
- TwilioRestClient with which to make the request- Returns:
- Updated HostedNumberOrder
-
-