public class Fax extends Resource
| Modifier and Type | Class and Description |
|---|---|
static class |
Fax.Direction |
static class |
Fax.Quality |
static class |
Fax.Status |
static class |
Fax.UpdateStatus |
| Modifier and Type | Method and Description |
|---|---|
static FaxCreator |
creator(String to,
URI mediaUrl)
Create a FaxCreator to execute create.
|
static FaxDeleter |
deleter(String pathSid)
Create a FaxDeleter to execute delete.
|
boolean |
equals(Object o) |
static FaxFetcher |
fetcher(String pathSid)
Create a FaxFetcher to execute fetch.
|
static Fax |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Fax object using the provided
ObjectMapper.
|
static Fax |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Fax object using the provided ObjectMapper.
|
String |
getAccountSid()
Returns The Account SID.
|
String |
getApiVersion()
Returns The The API version used.
|
org.joda.time.DateTime |
getDateCreated()
Returns The The date this fax was created.
|
org.joda.time.DateTime |
getDateUpdated()
Returns The The date this fax was updated.
|
Fax.Direction |
getDirection()
Returns The The direction of this fax.
|
Integer |
getDuration()
Returns The The time taken to transmit the fax.
|
String |
getFrom()
Returns The The party that sent the fax.
|
Map<String,String> |
getLinks()
Returns The Nested resource URLs.
|
String |
getMediaSid()
Returns The Media SID.
|
String |
getMediaUrl()
Returns The URL pointing to fax media.
|
Integer |
getNumPages()
Returns The Number of pages.
|
BigDecimal |
getPrice()
Returns The Fax transmission price.
|
Currency |
getPriceUnit()
Returns The Currency used for billing.
|
Fax.Quality |
getQuality()
Returns The The quality of this fax.
|
String |
getSid()
Returns The A string that uniquely identifies this fax..
|
Fax.Status |
getStatus()
Returns The The status of this fax.
|
String |
getTo()
Returns The The party that received the fax.
|
URI |
getUrl()
Returns The The URL of this resource.
|
int |
hashCode() |
static FaxReader |
reader()
Create a FaxReader to execute read.
|
String |
toString() |
static FaxUpdater |
updater(String pathSid)
Create a FaxUpdater to execute update.
|
public static FaxFetcher fetcher(String pathSid)
pathSid - A string that uniquely identifies this fax.public static FaxReader reader()
public static FaxCreator creator(String to, URI mediaUrl)
to - The phone number or SIP address to send the fax tomediaUrl - URL that points to the fax mediapublic static FaxUpdater updater(String pathSid)
pathSid - A string that uniquely identifies this fax.public static FaxDeleter deleter(String pathSid)
pathSid - A string that uniquely identifies this fax.public static Fax fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json - Raw JSON StringobjectMapper - Jackson ObjectMapperpublic static Fax fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json - Raw JSON InputStreamobjectMapper - Jackson ObjectMapperpublic final String getSid()
public final String getAccountSid()
public final String getFrom()
public final String getTo()
public final Fax.Quality getQuality()
public final String getMediaSid()
public final String getMediaUrl()
public final Integer getNumPages()
public final Integer getDuration()
public final Fax.Status getStatus()
public final Fax.Direction getDirection()
public final String getApiVersion()
public final BigDecimal getPrice()
public final Currency getPriceUnit()
public final org.joda.time.DateTime getDateCreated()
public final org.joda.time.DateTime getDateUpdated()
public final Map<String,String> getLinks()
public final URI getUrl()
Copyright © 2016 Twilio, Inc. All Rights Reserved.