public class Credential extends Resource
Modifier and Type | Class and Description |
---|---|
static class |
Credential.PushType |
Modifier and Type | Method and Description |
---|---|
static CredentialCreator |
creator(Credential.PushType 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 unique ID of the Account responsible for this credential..
|
ZonedDateTime |
getDateCreated()
Returns The date that this resource was created..
|
ZonedDateTime |
getDateUpdated()
Returns The date that this resource was last updated..
|
String |
getFriendlyName()
Returns The human-readable name of this credential..
|
String |
getSandbox()
Returns [APN only] Whether to send the credential to sandbox APNs..
|
String |
getSid()
Returns A 34 character string that uniquely identifies this resource..
|
Credential.PushType |
getType()
Returns The type of push-notification service the credential is for..
|
URI |
getUrl()
Returns An absolute URL for this credential..
|
int |
hashCode() |
static CredentialReader |
reader()
Create a CredentialReader to execute read.
|
static CredentialUpdater |
updater(String pathSid)
Create a CredentialUpdater to execute update.
|
public static CredentialCreator creator(Credential.PushType type)
type
- The type of push-notification service the credential is for.public static CredentialUpdater updater(String pathSid)
pathSid
- A 34 character string that uniquely identifies this resource.public static CredentialDeleter deleter(String pathSid)
pathSid
- A 34 character string that uniquely identifies this resource.public static CredentialFetcher fetcher(String pathSid)
pathSid
- A 34 character string that uniquely identifies this resource.public static CredentialReader reader()
public 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.PushType getType()
public final String getSandbox()
public final ZonedDateTime getDateCreated()
public final ZonedDateTime getDateUpdated()
public final URI getUrl()
Copyright © 2019 Twilio, Inc. All Rights Reserved.