public class CredentialUpdater extends Updater<Credential>
Constructor and Description |
---|
CredentialUpdater(String pathSid)
Construct a new CredentialUpdater.
|
Modifier and Type | Method and Description |
---|---|
CredentialUpdater |
setApiKey(String apiKey)
[GCM only] The `Server key` of your project from Firebase console under
Settings / Cloud messaging..
|
CredentialUpdater |
setCertificate(String certificate)
[APN only] The URL-encoded representation of the certificate.
|
CredentialUpdater |
setFriendlyName(String friendlyName)
A descriptive string that you create to describe the resource.
|
CredentialUpdater |
setPrivateKey(String privateKey)
[APN only] The URL-encoded representation of the private key.
|
CredentialUpdater |
setSandbox(Boolean sandbox)
[APN only] Whether to send the credential to sandbox APNs.
|
CredentialUpdater |
setSecret(String secret)
[FCM only] The `Server key` of your project from Firebase console under
Settings / Cloud messaging..
|
Credential |
update(TwilioRestClient client)
Make the request to the Twilio API to perform the update.
|
update, updateAsync, updateAsync
public CredentialUpdater(String pathSid)
pathSid
- The unique string that identifies the resourcepublic CredentialUpdater setFriendlyName(String friendlyName)
friendlyName
- A string to describe the resourcepublic CredentialUpdater setCertificate(String certificate)
certificate
- [APN only] The URL-encoded representation of the
certificatepublic CredentialUpdater setPrivateKey(String privateKey)
privateKey
- [APN only] URL-encoded representation of the private keypublic CredentialUpdater setSandbox(Boolean sandbox)
sandbox
- [APN only] Whether to send the credential to sandbox APNspublic CredentialUpdater setApiKey(String apiKey)
apiKey
- [GCM only] The `Server key` of your project from Firebase
console under Settings / Cloud messagingpublic CredentialUpdater setSecret(String secret)
secret
- [FCM only] The `Server key` of your project from Firebase
console under Settings / Cloud messagingpublic Credential update(TwilioRestClient client)
update
in class Updater<Credential>
client
- TwilioRestClient with which to make the requestCopyright © 2019 Twilio, Inc. All Rights Reserved.