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 classCredential.PushService
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CredentialCreatorcreator(Credential.PushService type)static CredentialDeleterdeleter(String pathSid)booleanequals(Object o)static CredentialFetcherfetcher(String pathSid)static CredentialfromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON InputStream into a Credential object using the provided ObjectMapper.static CredentialfromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON String into a Credential object using the provided ObjectMapper.StringgetAccountSid()ZonedDateTimegetDateCreated()ZonedDateTimegetDateUpdated()StringgetFriendlyName()StringgetSandbox()StringgetSid()Credential.PushServicegetType()URIgetUrl()inthashCode()static CredentialReaderreader()static CredentialUpdaterupdater(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()
-
-