Class User


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20201101")
    public final class User
    extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
    The summary of a specific user resource.
    Note: Objects should always be created or deserialized using the User.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of the User.Builder, which maintain a set of all explicitly set fields called User.Builder.__explicitlySet__. The hashCode() and equals(Object) methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
    • Method Detail

      • builder

        public static User.Builder builder()
        Create a new builder.
      • getName

        public String getName()
        The name of the User.
        Returns:
        the value
      • getStatus

        public User.Status getStatus()
        The status of the user account.
        Returns:
        the value
      • getTimeLocked

        public Date getTimeLocked()
        The date the account was locked, if the status of the account is LOCKED.
        Returns:
        the value
      • getTimeExpiring

        public Date getTimeExpiring()
        The date and time of the expiration of the user account.
        Returns:
        the value
      • getDefaultTablespace

        public String getDefaultTablespace()
        The default tablespace for data.
        Returns:
        the value
      • getTempTablespace

        public String getTempTablespace()
        The name of the default tablespace for temporary tables or the name of a tablespace group.
        Returns:
        the value
      • getLocalTempTablespace

        public String getLocalTempTablespace()
        The default local temporary tablespace for the user.
        Returns:
        the value
      • getTimeCreated

        public Date getTimeCreated()
        The date and time the user was created.
        Returns:
        the value
      • getProfile

        public String getProfile()
        The profile name of the user.
        Returns:
        the value
      • getConsumerGroup

        public String getConsumerGroup()
        The initial resource consumer group for the User.
        Returns:
        the value
      • getExternalName

        public String getExternalName()
        The external name of the user.
        Returns:
        the value
      • getPasswordVersions

        public String getPasswordVersions()
        The list of existing versions of the password hashes (also known as “verifiers”) for the account.
        Returns:
        the value
      • getEditionsEnabled

        public User.EditionsEnabled getEditionsEnabled()
        Indicates whether editions have been enabled for the corresponding user (Y) or not (N).
        Returns:
        the value
      • getAuthentication

        public User.Authentication getAuthentication()
        The authentication mechanism for the user.
        Returns:
        the value
      • getProxyConnect

        public User.ProxyConnect getProxyConnect()
        Indicates whether a user can connect directly (N) or whether the account can only be proxied (Y) by users who have proxy privileges for this account (that is, by users who have been granted the “connect through” privilege for this account).
        Returns:
        the value
      • getCommon

        public User.Common getCommon()
        Indicates whether a given user is common(Y) or local(N).
        Returns:
        the value
      • getTimeLastLogin

        public Date getTimeLastLogin()
        The date and time of the last user login.

        This column is not populated when a user connects to the database with administrative privileges, that is, AS { SYSASM | SYSBACKUP | SYSDBA | SYSDG | SYSOPER | SYSRAC | SYSKM }.

        Returns:
        the value
      • getOracleMaintained

        public User.OracleMaintained getOracleMaintained()
        Indicates whether the user was created and is maintained by Oracle-supplied scripts (such as catalog.sql or catproc.sql).
        Returns:
        the value
      • getInherited

        public User.Inherited getInherited()
        Indicates whether the user definition is inherited from another container (YES) or not (NO).
        Returns:
        the value
      • getDefaultCollation

        public String getDefaultCollation()
        The default collation for the user schema.
        Returns:
        the value
      • getImplicit

        public User.Implicit getImplicit()
        Indicates whether the user is a common user created by an implicit application (YES) or not (NO).
        Returns:
        the value
      • getAllShared

        public User.AllShared getAllShared()
        In a sharded database, indicates whether the user is created with shard DDL enabled (YES) or not (NO).
        Returns:
        the value
      • getExternalShared

        public User.ExternalShared getExternalShared()
        In a federated sharded database, indicates whether the user is an external shard user (YES) or not (NO).
        Returns:
        the value
      • getTimePasswordChanged

        public Date getTimePasswordChanged()
        The date and time when the user password was last set.

        This column is populated only when the value of the AUTHENTICATION_TYPE column is PASSWORD. Otherwise, this column is null.

        Returns:
        the value
      • toString

        public String toString()
        Overrides:
        toString in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • toString

        public String toString​(boolean includeByteArrayContents)
        Return a string representation of the object.
        Parameters:
        includeByteArrayContents - true to include the full contents of byte arrays
        Returns:
        string representation
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel