public class Credential extends Resource
Modifier and Type | Class and Description |
---|---|
static class |
Credential.PushService |
Modifier and Type | Method and Description |
---|---|
static CredentialCreator |
creator(Credential.PushService type)
Create a CredentialCreator to execute create.
|
static CredentialDeleter |
deleter(String pathSid)
Create a CredentialDeleter to execute delete.
|
boolean |
equals(Object o) |
static CredentialFetcher |
fetcher(String pathSid)
Create a CredentialFetcher to execute fetch.
|
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()
Returns The SID of the Account that created the resource.
|
ZonedDateTime |
getDateCreated()
Returns The RFC 2822 date and time in GMT when the resource was created.
|
ZonedDateTime |
getDateUpdated()
Returns The RFC 2822 date and time in GMT when the resource was last updated.
|
String |
getFriendlyName()
Returns The string that you assigned to describe the resource.
|
String |
getSandbox()
Returns [APN only] Whether to send the credential to sandbox APNs.
|
String |
getSid()
Returns The unique string that identifies the resource.
|
Credential.PushService |
getType()
Returns The type of push-notification service the credential is for.
|
URI |
getUrl()
Returns The absolute URL of the Credential resource.
|
int |
hashCode() |
static CredentialReader |
reader()
Create a CredentialReader to execute read.
|
static CredentialUpdater |
updater(String pathSid)
Create a CredentialUpdater to execute update.
|
public static CredentialReader reader()
public static CredentialCreator creator(Credential.PushService type)
type
- The type of push-notification service the credential is forpublic static CredentialFetcher fetcher(String pathSid)
pathSid
- The unique string that identifies the resourcepublic static CredentialUpdater updater(String pathSid)
pathSid
- The unique string that identifies the resourcepublic static CredentialDeleter deleter(String pathSid)
pathSid
- The unique string that identifies the resourcepublic static Credential fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static Credential fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getSid()
public final String getAccountSid()
public final String getFriendlyName()
public final Credential.PushService getType()
public final String getSandbox()
public final ZonedDateTime getDateCreated()
public final ZonedDateTime getDateUpdated()
public final URI getUrl()
Copyright © 2019 Twilio, Inc. All Rights Reserved.