Package com.twilio.rest.conversations.v1
Class CredentialCreator
- java.lang.Object
-
- com.twilio.base.Creator<Credential>
-
- com.twilio.rest.conversations.v1.CredentialCreator
-
public class CredentialCreator extends Creator<Credential>
-
-
Constructor Summary
Constructors Constructor Description CredentialCreator(Credential.PushType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Credential
create(TwilioRestClient client)
Execute a request using specified client.CredentialCreator
setApiKey(String apiKey)
CredentialCreator
setCertificate(String certificate)
CredentialCreator
setFriendlyName(String friendlyName)
CredentialCreator
setPrivateKey(String privateKey)
CredentialCreator
setSandbox(Boolean sandbox)
CredentialCreator
setSecret(String secret)
CredentialCreator
setType(Credential.PushType type)
-
Methods inherited from class com.twilio.base.Creator
create, createAsync, createAsync
-
-
-
-
Constructor Detail
-
CredentialCreator
public CredentialCreator(Credential.PushType type)
-
-
Method Detail
-
setType
public CredentialCreator setType(Credential.PushType type)
-
setFriendlyName
public CredentialCreator setFriendlyName(String friendlyName)
-
setCertificate
public CredentialCreator setCertificate(String certificate)
-
setPrivateKey
public CredentialCreator setPrivateKey(String privateKey)
-
setSandbox
public CredentialCreator setSandbox(Boolean sandbox)
-
setApiKey
public CredentialCreator setApiKey(String apiKey)
-
setSecret
public CredentialCreator setSecret(String secret)
-
create
public Credential create(TwilioRestClient client)
Description copied from class:Creator
Execute a request using specified client.- Specified by:
create
in classCreator<Credential>
- Parameters:
client
- client used to make request- Returns:
- Requested object
-
-