Class DbCreateRole.Request

    • Method Detail

      • defaultTtl

        public DbCreateRole.Request defaultTtl​(Duration defaultTtl)
        Specifies the TTL for the leases associated with this role. Defaults to system/engine default TTL time.
        Parameters:
        defaultTtl - default time to live
        Returns:
        updated request
      • maxTtl

        public DbCreateRole.Request maxTtl​(Duration maxTtl)
        Specifies the maximum TTL for the leases associated with this role. Defaults to system/mount default TTL time; this value is allowed to be less than the mount max TTL (or, if not set, the system max TTL), but it is not allowed to be longer.
        Parameters:
        maxTtl - maximal time to live
        Returns:
        updated request
      • addCreationStatement

        public DbCreateRole.Request addCreationStatement​(String statement)
        Specifies the database statements executed to create and configure a user. See the plugin's API page for more information on support and formatting for this parameter.
        Parameters:
        statement - statement
        Returns:
        updated request
      • addRevocationStatement

        public DbCreateRole.Request addRevocationStatement​(String statement)
        Specifies the database statements to be executed to revoke a user. See the plugin's API page for more information on support and formatting for this parameter.
        Parameters:
        statement - statement
        Returns:
        updated request
      • addRollbackStatement

        public DbCreateRole.Request addRollbackStatement​(String statement)
        Specifies the database statements to be executed to rollback a create operation in the event of an error. Not every plugin type will support this functionality. See the plugin's API page for more information on support and formatting for this parameter.
        Parameters:
        statement - statement
        Returns:
        updated request
      • addRenewStatement

        public DbCreateRole.Request addRenewStatement​(String statement)
        Specifies the database statements to be executed to renew a user. Not every plugin type will support this functionality. See the plugin's API page for more information on support and formatting for this parameter.
        Parameters:
        statement - statement
        Returns:
        updated request
      • dbName

        public DbCreateRole.Request dbName​(String dbName)
        The name of the database.
        Parameters:
        dbName - db name
        Returns:
        updated request
      • name

        public DbCreateRole.Request name​(String name)
        Name of the credentials.
        Parameters:
        name - the name
        Returns:
        updated request