public class CredentialUpdater extends Updater<Credential>
Constructor and Description |
---|
CredentialUpdater(String sid,
String friendlyName,
Credential.PushService type)
Construct a new CredentialUpdater.
|
Modifier and Type | Method and Description |
---|---|
Credential |
execute(TwilioRestClient client)
Make the request to the Twilio API to perform the update.
|
CredentialUpdater |
setApiKey(String apiKey)
The api_key.
|
CredentialUpdater |
setCertificate(String certificate)
The certificate.
|
CredentialUpdater |
setPrivateKey(String privateKey)
The private_key.
|
CredentialUpdater |
setSandbox(Boolean sandbox)
The sandbox.
|
public CredentialUpdater(String sid, String friendlyName, Credential.PushService type)
sid
- The sidfriendlyName
- The friendly_nametype
- The typepublic CredentialUpdater setCertificate(String certificate)
certificate
- The certificatepublic CredentialUpdater setPrivateKey(String privateKey)
privateKey
- The private_keypublic CredentialUpdater setSandbox(Boolean sandbox)
sandbox
- The sandboxpublic CredentialUpdater setApiKey(String apiKey)
apiKey
- The api_keypublic Credential execute(TwilioRestClient client)
execute
in class Updater<Credential>
client
- TwilioRestClient with which to make the requestCopyright © 2011 Twilio, Inc. All Rights Reserved.