@Generated(value="OracleSDKGenerator", comments="API Version: 20181201") public final class UserSummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
The summary of information about the database user. It includes details such as user type,
account status, last login time, user creation time, authentication type, user profile, and time
and date of the last password change. It also contains the user category derived from these user
details, as well as granted privileges.
Note: Objects should always be created or deserialized using the UserSummary.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 UserSummary.Builder
, which maintain a
set of all explicitly set fields called ExplicitlySetBmcModel.__explicitlySet__
. The hashCode()
and
equals(Object)
methods are implemented to take ExplicitlySetBmcModel.__explicitlySet__
into account.
The constructor, on the other hand, does not set ExplicitlySetBmcModel.__explicitlySet__
(since the
constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
UserSummary.AccountStatus
The user account status.
|
static class |
UserSummary.AdminRoles |
static class |
UserSummary.AuthenticationType
The user authentication method.
|
static class |
UserSummary.Builder |
static class |
UserSummary.UserCategory
The user category based on the privileges and other details of the user.
|
static class |
UserSummary.UserTypes |
Constructor and Description |
---|
UserSummary(String key,
String userName,
UserSummary.UserCategory userCategory,
UserSummary.AccountStatus accountStatus,
String targetId,
Date timeLastLogin,
Date timeUserCreated,
UserSummary.AuthenticationType authenticationType,
String userProfile,
Date timePasswordChanged,
List<UserSummary.UserTypes> userTypes,
List<UserSummary.AdminRoles> adminRoles)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static UserSummary.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
UserSummary.AccountStatus |
getAccountStatus()
The user account status.
|
List<UserSummary.AdminRoles> |
getAdminRoles()
The admin roles granted to the user.
|
UserSummary.AuthenticationType |
getAuthenticationType()
The user authentication method.
|
String |
getKey()
The unique user key.
|
String |
getTargetId()
The OCID of the target database.
|
Date |
getTimeLastLogin()
The date and time when the user last logged in, in the format defined by
RFC3339.
|
Date |
getTimePasswordChanged()
The date and time when the user password was last changed, in the format defined by
RFC3339.
|
Date |
getTimeUserCreated()
The date and time when the user was created in the database, in the format defined by
RFC3339.
|
UserSummary.UserCategory |
getUserCategory()
The user category based on the privileges and other details of the user.
|
String |
getUserName()
The database user name.
|
String |
getUserProfile()
The user profile name.
|
List<UserSummary.UserTypes> |
getUserTypes()
The user type, which can be a combination of the following:
|
int |
hashCode() |
UserSummary.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"key","userName","userCategory","accountStatus","targetId","timeLastLogin","timeUserCreated","authenticationType","userProfile","timePasswordChanged","userTypes","adminRoles"}) public UserSummary(String key, String userName, UserSummary.UserCategory userCategory, UserSummary.AccountStatus accountStatus, String targetId, Date timeLastLogin, Date timeUserCreated, UserSummary.AuthenticationType authenticationType, String userProfile, Date timePasswordChanged, List<UserSummary.UserTypes> userTypes, List<UserSummary.AdminRoles> adminRoles)
public static UserSummary.Builder builder()
Create a new builder.
public UserSummary.Builder toBuilder()
public String getKey()
The unique user key. This is a system-generated identifier. Use ListUsers to get the user key for a user.
public String getUserName()
The database user name.
public UserSummary.UserCategory getUserCategory()
The user category based on the privileges and other details of the user.
public UserSummary.AccountStatus getAccountStatus()
The user account status.
public String getTargetId()
The OCID of the target database.
public Date getTimeLastLogin()
The date and time when the user last logged in, in the format defined by RFC3339.
public Date getTimeUserCreated()
The date and time when the user was created in the database, in the format defined by RFC3339.
public UserSummary.AuthenticationType getAuthenticationType()
The user authentication method.
public String getUserProfile()
The user profile name.
public Date getTimePasswordChanged()
The date and time when the user password was last changed, in the format defined by RFC3339.
public List<UserSummary.UserTypes> getUserTypes()
The user type, which can be a combination of the following:
'Admin Privileged': The user has administrative privileges. 'Application': The user is an Oracle E-Business Suite Applications (EBS) or Fusion Applications (FA) user. 'Privileged': The user is a privileged user. 'Schema': The user is EXPIRED & LOCKED / EXPIRED / LOCKED, or a schema-only account (authentication type is NONE). 'Non-privileged': The user is a non-privileged user.
public List<UserSummary.AdminRoles> getAdminRoles()
The admin roles granted to the user.
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2023. All rights reserved.