Class CredentialFetcher
- java.lang.Object
-
- com.twilio.base.Fetcher<Credential>
-
- com.twilio.rest.api.v2010.account.sip.credentiallist.CredentialFetcher
-
public class CredentialFetcher extends Fetcher<Credential>
-
-
Constructor Summary
Constructors Constructor Description CredentialFetcher(String pathCredentialListSid, String pathSid)
Construct a new CredentialFetcher.CredentialFetcher(String pathAccountSid, String pathCredentialListSid, String pathSid)
Construct a new CredentialFetcher.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Credential
fetch(TwilioRestClient client)
Make the request to the Twilio API to perform the fetch.-
Methods inherited from class com.twilio.base.Fetcher
fetch, fetchAsync, fetchAsync
-
-
-
-
Constructor Detail
-
CredentialFetcher
public CredentialFetcher(String pathCredentialListSid, String pathSid)
Construct a new CredentialFetcher.- Parameters:
pathCredentialListSid
- The unique id that identifies the credential list that contains the desired credentialpathSid
- The unique id that identifies the resource to fetch.
-
CredentialFetcher
public CredentialFetcher(String pathAccountSid, String pathCredentialListSid, String pathSid)
Construct a new CredentialFetcher.- Parameters:
pathAccountSid
- The unique id of the Account that is responsible for this resource.pathCredentialListSid
- The unique id that identifies the credential list that contains the desired credentialpathSid
- The unique id that identifies the resource to fetch.
-
-
Method Detail
-
fetch
public Credential fetch(TwilioRestClient client)
Make the request to the Twilio API to perform the fetch.- Specified by:
fetch
in classFetcher<Credential>
- Parameters:
client
- TwilioRestClient with which to make the request- Returns:
- Fetched Credential
-
-