public class Session extends Resource
Modifier and Type | Class and Description |
---|---|
static class |
Session.Mode |
static class |
Session.Status |
Modifier and Type | Method and Description |
---|---|
static SessionCreator |
creator(String pathServiceSid)
Create a SessionCreator to execute create.
|
static SessionDeleter |
deleter(String pathServiceSid,
String pathSid)
Create a SessionDeleter to execute delete.
|
boolean |
equals(Object o) |
static SessionFetcher |
fetcher(String pathServiceSid,
String pathSid)
Create a SessionFetcher to execute fetch.
|
static Session |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Session object using the provided
ObjectMapper.
|
static Session |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Session object using the provided ObjectMapper.
|
String |
getAccountSid()
Returns The SID of the Account that created the resource.
|
String |
getClosedReason()
Returns The reason the Session ended.
|
ZonedDateTime |
getDateCreated()
Returns The ISO 8601 date and time in GMT when the resource was created.
|
ZonedDateTime |
getDateEnded()
Returns The ISO 8601 date when the Session ended.
|
ZonedDateTime |
getDateExpiry()
Returns The ISO 8601 date when the Session should expire.
|
ZonedDateTime |
getDateLastInteraction()
Returns The ISO 8601 date when the Session last had an interaction.
|
ZonedDateTime |
getDateStarted()
Returns The ISO 8601 date when the Session started.
|
ZonedDateTime |
getDateUpdated()
Returns The ISO 8601 date and time in GMT when the resource was last updated.
|
Map<String,String> |
getLinks()
Returns The URLs of resources related to the Session.
|
Session.Mode |
getMode()
Returns The Mode of the Session.
|
String |
getServiceSid()
Returns The SID of the resource's parent Service.
|
String |
getSid()
Returns The unique string that identifies the resource.
|
Session.Status |
getStatus()
Returns The status of the Session.
|
Integer |
getTtl()
Returns When the session will expire.
|
String |
getUniqueName()
Returns An application-defined string that uniquely identifies the resource.
|
URI |
getUrl()
Returns The absolute URL of the Session resource.
|
int |
hashCode() |
static SessionReader |
reader(String pathServiceSid)
Create a SessionReader to execute read.
|
static SessionUpdater |
updater(String pathServiceSid,
String pathSid)
Create a SessionUpdater to execute update.
|
public static SessionFetcher fetcher(String pathServiceSid, String pathSid)
pathServiceSid
- The SID of the Service to fetch the resource frompathSid
- The unique string that identifies the resourcepublic static SessionReader reader(String pathServiceSid)
pathServiceSid
- The SID of the Service to fetch the resource frompublic static SessionCreator creator(String pathServiceSid)
pathServiceSid
- The SID of the parent Service resourcepublic static SessionDeleter deleter(String pathServiceSid, String pathSid)
pathServiceSid
- The SID of the Service to delete the resource frompathSid
- The unique string that identifies the resourcepublic static SessionUpdater updater(String pathServiceSid, String pathSid)
pathServiceSid
- The SID of the Service to update the resource frompathSid
- The unique string that identifies the resourcepublic static Session fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static Session fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getSid()
public final String getServiceSid()
public final String getAccountSid()
public final ZonedDateTime getDateStarted()
public final ZonedDateTime getDateEnded()
public final ZonedDateTime getDateLastInteraction()
public final ZonedDateTime getDateExpiry()
public final String getUniqueName()
public final Session.Status getStatus()
public final String getClosedReason()
public final Integer getTtl()
public final Session.Mode getMode()
public final ZonedDateTime getDateCreated()
public final ZonedDateTime getDateUpdated()
public final URI getUrl()
public final Map<String,String> getLinks()
Copyright © 2019 Twilio, Inc. All Rights Reserved.