Class PublicKey

    • 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 String
        objectMapper - 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 InputStream
        objectMapper - 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`
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object