Package com.twilio.rest.api.v2010
Class Account
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.api.v2010.Account
-
- All Implemented Interfaces:
Serializable
public class Account extends Resource
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Account.Status
static class
Account.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AccountCreator
creator()
boolean
equals(Object o)
static AccountFetcher
fetcher()
static AccountFetcher
fetcher(String pathSid)
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()
ZonedDateTime
getDateCreated()
ZonedDateTime
getDateUpdated()
String
getFriendlyName()
String
getOwnerAccountSid()
String
getSid()
Account.Status
getStatus()
Map<String,String>
getSubresourceUris()
Account.Type
getType()
String
getUri()
int
hashCode()
static AccountReader
reader()
static AccountUpdater
updater()
static AccountUpdater
updater(String pathSid)
-
-
-
Method Detail
-
creator
public static AccountCreator creator()
-
fetcher
public static AccountFetcher fetcher()
-
fetcher
public static AccountFetcher fetcher(String pathSid)
-
reader
public static AccountReader reader()
-
updater
public static AccountUpdater updater()
-
updater
public static AccountUpdater updater(String pathSid)
-
fromJson
public static Account fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Account object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- Account object represented by the provided JSON
-
fromJson
public static Account fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Account object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- Account object represented by the provided JSON
-
getAuthToken
public final String getAuthToken()
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getDateUpdated
public final ZonedDateTime getDateUpdated()
-
getFriendlyName
public final String getFriendlyName()
-
getOwnerAccountSid
public final String getOwnerAccountSid()
-
getSid
public final String getSid()
-
getStatus
public final Account.Status getStatus()
-
getType
public final Account.Type getType()
-
getUri
public final String getUri()
-
-