Class PublicKey
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.accounts.v1.credential.PublicKey
-
- All Implemented Interfaces:
Serializable
public class PublicKey extends Resource
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PublicKeyCreator
creator(String publicKey)
Create a PublicKeyCreator to execute create.static PublicKeyDeleter
deleter(String pathSid)
Create a PublicKeyDeleter to execute delete.boolean
equals(Object o)
static PublicKeyFetcher
fetcher(String pathSid)
Create a PublicKeyFetcher to execute fetch.static PublicKey
fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a PublicKey object using the provided ObjectMapper.static PublicKey
fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a PublicKey object using the provided ObjectMapper.String
getAccountSid()
Returns The The SID of the Account that created the Credential that the PublicKey resource belongs to.org.joda.time.DateTime
getDateCreated()
Returns The The RFC 2822 date and time in GMT when the resource was created.org.joda.time.DateTime
getDateUpdated()
Returns The The RFC 2822 date and time in GMT when the resource was last updated.String
getFriendlyName()
Returns The The string that you assigned to describe the resource.String
getSid()
Returns The The unique string that identifies the resource.URI
getUrl()
Returns The The URI for this resource, relative to `https://accounts.twilio.com`.int
hashCode()
static PublicKeyReader
reader()
Create a PublicKeyReader to execute read.String
toString()
static PublicKeyUpdater
updater(String pathSid)
Create a PublicKeyUpdater to execute update.
-
-
-
Method Detail
-
reader
public static PublicKeyReader reader()
Create a PublicKeyReader to execute read.- Returns:
- PublicKeyReader capable of executing the read
-
creator
public static PublicKeyCreator creator(String publicKey)
Create a PublicKeyCreator to execute create.- Parameters:
publicKey
- A URL encoded representation of the public key- Returns:
- PublicKeyCreator capable of executing the create
-
fetcher
public static PublicKeyFetcher fetcher(String pathSid)
Create a PublicKeyFetcher to execute fetch.- Parameters:
pathSid
- The unique string that identifies the resource- Returns:
- PublicKeyFetcher capable of executing the fetch
-
updater
public static PublicKeyUpdater updater(String pathSid)
Create a PublicKeyUpdater to execute update.- Parameters:
pathSid
- The unique string that identifies the resource- Returns:
- PublicKeyUpdater capable of executing the update
-
deleter
public static PublicKeyDeleter deleter(String pathSid)
Create a PublicKeyDeleter to execute delete.- Parameters:
pathSid
- The unique string that identifies the resource- Returns:
- PublicKeyDeleter capable of executing the delete
-
fromJson
public static PublicKey fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a PublicKey object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- PublicKey object represented by the provided JSON
-
fromJson
public static PublicKey fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a PublicKey object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- PublicKey object represented by the provided JSON
-
getSid
public final String getSid()
Returns The The unique string that identifies the resource.- Returns:
- The unique string that identifies the resource
-
getAccountSid
public final String getAccountSid()
Returns The The SID of the Account that created the Credential that the PublicKey resource belongs to.- Returns:
- The SID of the Account that created the Credential that the PublicKey resource belongs to
-
getFriendlyName
public final String getFriendlyName()
Returns The The string that you assigned to describe the resource.- Returns:
- The string that you assigned to describe the resource
-
getDateCreated
public final org.joda.time.DateTime getDateCreated()
Returns The The RFC 2822 date and time in GMT when the resource was created.- Returns:
- The RFC 2822 date and time in GMT when the resource was created
-
getDateUpdated
public final org.joda.time.DateTime getDateUpdated()
Returns The The RFC 2822 date and time in GMT when the resource was last updated.- Returns:
- The RFC 2822 date and time in GMT when the resource was last updated
-
getUrl
public final URI getUrl()
Returns The The URI for this resource, relative to `https://accounts.twilio.com`.- Returns:
- The URI for this resource, relative to `https://accounts.twilio.com`
-
-