Class Credential
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.api.v2010.account.sip.credentiallist.Credential
-
- All Implemented Interfaces:
Serializable
public class Credential extends Resource
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CredentialCreator
creator(String pathCredentialListSid, String username, String password)
Create a CredentialCreator to execute create.static CredentialCreator
creator(String pathAccountSid, String pathCredentialListSid, String username, String password)
Create a CredentialCreator to execute create.static CredentialDeleter
deleter(String pathCredentialListSid, String pathSid)
Create a CredentialDeleter to execute delete.static CredentialDeleter
deleter(String pathAccountSid, String pathCredentialListSid, String pathSid)
Create a CredentialDeleter to execute delete.boolean
equals(Object o)
static CredentialFetcher
fetcher(String pathCredentialListSid, String pathSid)
Create a CredentialFetcher to execute fetch.static CredentialFetcher
fetcher(String pathAccountSid, String pathCredentialListSid, 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 The unique id of the Account that is responsible for this resource..String
getCredentialListSid()
Returns The The unique id that identifies the credential list that includes this credential.org.joda.time.DateTime
getDateCreated()
Returns The The date that this resource was created, given as GMT in RFC 2822 format..org.joda.time.DateTime
getDateUpdated()
Returns The The date that this resource was last updated, given as GMT in RFC 2822 format..String
getSid()
Returns The A 34 character string that uniquely identifies this resource..String
getUri()
Returns The The URI for this resource, relative to https://api.twilio.com.String
getUsername()
Returns The The username for this credential..int
hashCode()
static CredentialReader
reader(String pathCredentialListSid)
Create a CredentialReader to execute read.static CredentialReader
reader(String pathAccountSid, String pathCredentialListSid)
Create a CredentialReader to execute read.String
toString()
static CredentialUpdater
updater(String pathCredentialListSid, String pathSid)
Create a CredentialUpdater to execute update.static CredentialUpdater
updater(String pathAccountSid, String pathCredentialListSid, String pathSid)
Create a CredentialUpdater to execute update.
-
-
-
Method Detail
-
reader
public static CredentialReader reader(String pathAccountSid, String pathCredentialListSid)
Create a CredentialReader to execute read.- 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 credentials- Returns:
- CredentialReader capable of executing the read
-
reader
public static CredentialReader reader(String pathCredentialListSid)
Create a CredentialReader to execute read.- Parameters:
pathCredentialListSid
- The unique id that identifies the credential list that contains the desired credentials- Returns:
- CredentialReader capable of executing the read
-
creator
public static CredentialCreator creator(String pathAccountSid, String pathCredentialListSid, String username, String password)
Create a CredentialCreator to execute create.- Parameters:
pathAccountSid
- The unique id of the Account that is responsible for this resource.pathCredentialListSid
- The unique id that identifies the credential list to include the created credentialusername
- The username for this credential.password
- The password will not be returned in the response.- Returns:
- CredentialCreator capable of executing the create
-
creator
public static CredentialCreator creator(String pathCredentialListSid, String username, String password)
Create a CredentialCreator to execute create.- Parameters:
pathCredentialListSid
- The unique id that identifies the credential list to include the created credentialusername
- The username for this credential.password
- The password will not be returned in the response.- Returns:
- CredentialCreator capable of executing the create
-
fetcher
public static CredentialFetcher fetcher(String pathAccountSid, String pathCredentialListSid, String pathSid)
Create a CredentialFetcher to execute fetch.- 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.- Returns:
- CredentialFetcher capable of executing the fetch
-
fetcher
public static CredentialFetcher fetcher(String pathCredentialListSid, String pathSid)
Create a CredentialFetcher to execute fetch.- Parameters:
pathCredentialListSid
- The unique id that identifies the credential list that contains the desired credentialpathSid
- The unique id that identifies the resource to fetch.- Returns:
- CredentialFetcher capable of executing the fetch
-
updater
public static CredentialUpdater updater(String pathAccountSid, String pathCredentialListSid, String pathSid)
Create a CredentialUpdater to execute update.- Parameters:
pathAccountSid
- The unique id of the Account that is responsible for this resourcepathCredentialListSid
- The unique id that identifies the credential list that includes this credentialpathSid
- The unique id that identifies the resource to update- Returns:
- CredentialUpdater capable of executing the update
-
updater
public static CredentialUpdater updater(String pathCredentialListSid, String pathSid)
Create a CredentialUpdater to execute update.- Parameters:
pathCredentialListSid
- The unique id that identifies the credential list that includes this credentialpathSid
- The unique id that identifies the resource to update- Returns:
- CredentialUpdater capable of executing the update
-
deleter
public static CredentialDeleter deleter(String pathAccountSid, String pathCredentialListSid, String pathSid)
Create a CredentialDeleter to execute delete.- 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 credentialspathSid
- The unique id that identifies the resource to delete- Returns:
- CredentialDeleter capable of executing the delete
-
deleter
public static CredentialDeleter deleter(String pathCredentialListSid, String pathSid)
Create a CredentialDeleter to execute delete.- Parameters:
pathCredentialListSid
- The unique id that identifies the credential list that contains the desired credentialspathSid
- The unique id that identifies the resource to delete- Returns:
- CredentialDeleter capable of executing the delete
-
fromJson
public static Credential fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Credential object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- Credential object represented by the provided JSON
-
fromJson
public static Credential fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Credential object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- Credential object represented by the provided JSON
-
getSid
public final String getSid()
Returns The A 34 character string that uniquely identifies this resource..- Returns:
- A 34 character string that uniquely identifies this resource.
-
getAccountSid
public final String getAccountSid()
Returns The The unique id of the Account that is responsible for this resource..- Returns:
- The unique id of the Account that is responsible for this resource.
-
getCredentialListSid
public final String getCredentialListSid()
Returns The The unique id that identifies the credential list that includes this credential.- Returns:
- The unique id that identifies the credential list that includes this credential
-
getUsername
public final String getUsername()
Returns The The username for this credential..- Returns:
- The username for this credential.
-
getDateCreated
public final org.joda.time.DateTime getDateCreated()
Returns The The date that this resource was created, given as GMT in RFC 2822 format..- Returns:
- The date that this resource was created, given as GMT in RFC 2822 format.
-
getDateUpdated
public final org.joda.time.DateTime getDateUpdated()
Returns The The date that this resource was last updated, given as GMT in RFC 2822 format..- Returns:
- The date that this resource was last updated, given as GMT in RFC 2822 format.
-
getUri
public final String getUri()
Returns The The URI for this resource, relative to https://api.twilio.com.- Returns:
- The URI for this resource, relative to https://api.twilio.com
-
-