Package com.twilio.rest.notify.v1
Class Credential
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.notify.v1.Credential
-
- All Implemented Interfaces:
Serializable
public class Credential extends Resource
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Credential.PushService
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CredentialCreator
creator(Credential.PushService type)
static CredentialDeleter
deleter(String pathSid)
boolean
equals(Object o)
static CredentialFetcher
fetcher(String pathSid)
static Credential
fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Credential object using the provided ObjectMapper.static Credential
fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Credential object using the provided ObjectMapper.String
getAccountSid()
ZonedDateTime
getDateCreated()
ZonedDateTime
getDateUpdated()
String
getFriendlyName()
String
getSandbox()
String
getSid()
Credential.PushService
getType()
URI
getUrl()
int
hashCode()
static CredentialReader
reader()
static CredentialUpdater
updater(String pathSid)
-
-
-
Method Detail
-
creator
public static CredentialCreator creator(Credential.PushService type)
-
fetcher
public static CredentialFetcher fetcher(String pathSid)
-
deleter
public static CredentialDeleter deleter(String pathSid)
-
reader
public static CredentialReader reader()
-
updater
public static CredentialUpdater updater(String pathSid)
-
fromJson
public static Credential fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Credential object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- Credential object represented by the provided JSON
-
fromJson
public static Credential fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Credential object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- Credential object represented by the provided JSON
-
getSid
public final String getSid()
-
getAccountSid
public final String getAccountSid()
-
getFriendlyName
public final String getFriendlyName()
-
getType
public final Credential.PushService getType()
-
getSandbox
public final String getSandbox()
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getDateUpdated
public final ZonedDateTime getDateUpdated()
-
getUrl
public final URI getUrl()
-
-