public class Account extends SidResource
Modifier and Type | Class and Description |
---|---|
static class |
Account.Status |
static class |
Account.Type |
Modifier and Type | Method and Description |
---|---|
static AccountCreator |
create()
Create a AccountCreator to execute create.
|
boolean |
equals(Object o) |
static AccountFetcher |
fetch()
Create a AccountFetcher to execute fetch.
|
static AccountFetcher |
fetch(String sid)
Create a AccountFetcher to execute fetch.
|
static Account |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Account object using the provided
ObjectMapper.
|
static Account |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Account object using the provided ObjectMapper.
|
String |
getAuthToken()
Returns The The authorization token for this account.
|
org.joda.time.DateTime |
getDateCreated()
Returns The The date this account was created.
|
org.joda.time.DateTime |
getDateUpdated()
Returns The The date this account was last updated.
|
String |
getFriendlyName()
Returns The A human readable description of this account.
|
String |
getOwnerAccountSid()
Returns The The unique 34 character id representing the parent of this
account.
|
String |
getSid()
Returns The A 34 character string that uniquely identifies this resource..
|
Account.Status |
getStatus()
Returns The The status of this account.
|
Map<String,String> |
getSubresourceUris()
Returns The Account Instance Subresources.
|
Account.Type |
getType()
Returns The The type of this account.
|
String |
getUri()
Returns The The URI for this resource, relative to `https://api.twilio.com`.
|
int |
hashCode() |
static AccountReader |
read()
Create a AccountReader to execute read.
|
String |
toString() |
static AccountUpdater |
update()
Create a AccountUpdater to execute update.
|
static AccountUpdater |
update(String sid)
Create a AccountUpdater to execute update.
|
public static AccountCreator create()
public static AccountFetcher fetch(String sid)
sid
- Fetch by unique Account Sidpublic static AccountFetcher fetch()
public static AccountReader read()
public static AccountUpdater update(String sid)
sid
- The sidpublic static AccountUpdater update()
public static Account fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static Account fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getAuthToken()
public final org.joda.time.DateTime getDateCreated()
public final org.joda.time.DateTime getDateUpdated()
public final String getFriendlyName()
public final String getOwnerAccountSid()
public final String getSid()
getSid
in class SidResource
public final Account.Status getStatus()
public final Map<String,String> getSubresourceUris()
public final Account.Type getType()
public final String getUri()
Copyright © 2011 Twilio, Inc. All Rights Reserved.