Class Credential

    • 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 credential
        username - 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 credential
        username - 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 credential
        pathSid - 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 credential
        pathSid - 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 resource
        pathCredentialListSid - The unique id that identifies the credential list that includes this credential
        pathSid - 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 credential
        pathSid - 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 credentials
        pathSid - 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 credentials
        pathSid - 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 String
        objectMapper - 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 InputStream
        objectMapper - 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object