Class Token
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.api.v2010.account.Token
-
- All Implemented Interfaces:
Serializable
public class Token extends Resource
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TokenCreator
creator()
static TokenCreator
creator(String pathAccountSid)
boolean
equals(Object o)
static Token
fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Token object using the provided ObjectMapper.static Token
fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Token object using the provided ObjectMapper.String
getAccountSid()
ZonedDateTime
getDateCreated()
ZonedDateTime
getDateUpdated()
List<IceServer>
getIceServers()
String
getPassword()
String
getTtl()
String
getUsername()
int
hashCode()
-
-
-
Method Detail
-
creator
public static TokenCreator creator()
-
creator
public static TokenCreator creator(String pathAccountSid)
-
fromJson
public static Token fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Token object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- Token object represented by the provided JSON
-
fromJson
public static Token fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Token object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- Token object represented by the provided JSON
-
getAccountSid
public final String getAccountSid()
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getDateUpdated
public final ZonedDateTime getDateUpdated()
-
getPassword
public final String getPassword()
-
getTtl
public final String getTtl()
-
getUsername
public final String getUsername()
-
-