Constructor and Description |
---|
FaxCreator(String to,
URI mediaUrl)
Construct a new FaxCreator.
|
Modifier and Type | Method and Description |
---|---|
Fax |
create(TwilioRestClient client)
Make the request to the Twilio API to perform the create.
|
FaxCreator |
setFrom(String from)
The number the fax was sent from.
|
FaxCreator |
setQuality(Fax.Quality quality)
The Fax
Quality value that describes the fax quality.
|
FaxCreator |
setSipAuthPassword(String sipAuthPassword)
The password to use with `sip_auth_username` to authenticate faxes sent to a
SIP address..
|
FaxCreator |
setSipAuthUsername(String sipAuthUsername)
The username to use with the `sip_auth_password` to authenticate faxes sent
to a SIP address..
|
FaxCreator |
setStatusCallback(String statusCallback)
The URL we should call using the `POST` method to send status
information to your application when the status of the fax changes..
|
FaxCreator |
setStatusCallback(URI statusCallback)
The URL we should call using the `POST` method to send status
information to your application when the status of the fax changes..
|
FaxCreator |
setStoreMedia(Boolean storeMedia)
Whether to store a copy of the sent media on our servers for later retrieval.
|
FaxCreator |
setTtl(Integer ttl)
How long in minutes from when the fax is initiated that we should try to send
the fax..
|
create, createAsync, createAsync
public FaxCreator setQuality(Fax.Quality quality)
quality
- The quality of this faxpublic FaxCreator setStatusCallback(URI statusCallback)
statusCallback
- The URL we should call to send status information to
your applicationpublic FaxCreator setStatusCallback(String statusCallback)
statusCallback
- The URL we should call to send status information to
your applicationpublic FaxCreator setFrom(String from)
from
- The number the fax was sent frompublic FaxCreator setSipAuthUsername(String sipAuthUsername)
sipAuthUsername
- The username for SIP authenticationpublic FaxCreator setSipAuthPassword(String sipAuthPassword)
sipAuthPassword
- The password for SIP authenticationpublic FaxCreator setStoreMedia(Boolean storeMedia)
storeMedia
- Whether to store a copy of the sent mediapublic FaxCreator setTtl(Integer ttl)
ttl
- How long in minutes to try to send the faxpublic Fax create(TwilioRestClient client)
Copyright © 2019 Twilio, Inc. All Rights Reserved.