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 classAccount.Statusstatic classAccount.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AccountCreatorcreator()booleanequals(Object o)static AccountFetcherfetcher()static AccountFetcherfetcher(String pathSid)static AccountfromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON InputStream into a Account object using the provided ObjectMapper.static AccountfromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON String into a Account object using the provided ObjectMapper.StringgetAuthToken()ZonedDateTimegetDateCreated()ZonedDateTimegetDateUpdated()StringgetFriendlyName()StringgetOwnerAccountSid()StringgetSid()Account.StatusgetStatus()Map<String,String>getSubresourceUris()Account.TypegetType()StringgetUri()inthashCode()static AccountReaderreader()static AccountUpdaterupdater()static AccountUpdaterupdater(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()
-
-