Class User.Builder
- java.lang.Object
-
- com.oracle.bmc.databasemanagement.model.User.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description User.Builder
allShared(User.AllShared allShared)
In a sharded database, indicates whether the user is created with shard DDL enabled (YES) or not (NO).User.Builder
authentication(User.Authentication authentication)
The authentication mechanism for the user.User
build()
User.Builder
common(User.Common common)
Indicates whether a given user is common(Y) or local(N).User.Builder
consumerGroup(String consumerGroup)
The initial resource consumer group for the User.User.Builder
copy(User model)
User.Builder
defaultCollation(String defaultCollation)
The default collation for the user schema.User.Builder
defaultTablespace(String defaultTablespace)
The default tablespace for data.User.Builder
editionsEnabled(User.EditionsEnabled editionsEnabled)
Indicates whether editions have been enabled for the corresponding user (Y) or not (N).User.Builder
externalName(String externalName)
The external name of the user.User.Builder
externalShared(User.ExternalShared externalShared)
In a federated sharded database, indicates whether the user is an external shard user (YES) or not (NO).User.Builder
implicit(User.Implicit implicit)
Indicates whether the user is a common user created by an implicit application (YES) or not (NO).User.Builder
inherited(User.Inherited inherited)
Indicates whether the user definition is inherited from another container (YES) or not (NO).User.Builder
localTempTablespace(String localTempTablespace)
The default local temporary tablespace for the user.User.Builder
name(String name)
The name of the User.User.Builder
oracleMaintained(User.OracleMaintained oracleMaintained)
Indicates whether the user was created and is maintained by Oracle-supplied scripts (such as catalog.sql or catproc.sql).User.Builder
passwordVersions(String passwordVersions)
The list of existing versions of the password hashes (also known as “verifiers”) for the account.User.Builder
profile(String profile)
The profile name of the user.User.Builder
proxyConnect(User.ProxyConnect proxyConnect)
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).User.Builder
status(User.Status status)
The status of the user account.User.Builder
tempTablespace(String tempTablespace)
The name of the default tablespace for temporary tables or the name of a tablespace group.User.Builder
timeCreated(Date timeCreated)
The date and time the user was created.User.Builder
timeExpiring(Date timeExpiring)
The date and time of the expiration of the user account.User.Builder
timeLastLogin(Date timeLastLogin)
The date and time of the last user login.User.Builder
timeLocked(Date timeLocked)
The date the account was locked, if the status of the account is LOCKED.User.Builder
timePasswordChanged(Date timePasswordChanged)
The date and time when the user password was last set.
-
-
-
Method Detail
-
name
public User.Builder name(String name)
The name of the User.- Parameters:
name
- the value to set- Returns:
- this builder
-
status
public User.Builder status(User.Status status)
The status of the user account.- Parameters:
status
- the value to set- Returns:
- this builder
-
timeLocked
public User.Builder timeLocked(Date timeLocked)
The date the account was locked, if the status of the account is LOCKED.- Parameters:
timeLocked
- the value to set- Returns:
- this builder
-
timeExpiring
public User.Builder timeExpiring(Date timeExpiring)
The date and time of the expiration of the user account.- Parameters:
timeExpiring
- the value to set- Returns:
- this builder
-
defaultTablespace
public User.Builder defaultTablespace(String defaultTablespace)
The default tablespace for data.- Parameters:
defaultTablespace
- the value to set- Returns:
- this builder
-
tempTablespace
public User.Builder tempTablespace(String tempTablespace)
The name of the default tablespace for temporary tables or the name of a tablespace group.- Parameters:
tempTablespace
- the value to set- Returns:
- this builder
-
localTempTablespace
public User.Builder localTempTablespace(String localTempTablespace)
The default local temporary tablespace for the user.- Parameters:
localTempTablespace
- the value to set- Returns:
- this builder
-
timeCreated
public User.Builder timeCreated(Date timeCreated)
The date and time the user was created.- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
profile
public User.Builder profile(String profile)
The profile name of the user.- Parameters:
profile
- the value to set- Returns:
- this builder
-
consumerGroup
public User.Builder consumerGroup(String consumerGroup)
The initial resource consumer group for the User.- Parameters:
consumerGroup
- the value to set- Returns:
- this builder
-
externalName
public User.Builder externalName(String externalName)
The external name of the user.- Parameters:
externalName
- the value to set- Returns:
- this builder
-
passwordVersions
public User.Builder passwordVersions(String passwordVersions)
The list of existing versions of the password hashes (also known as “verifiers”) for the account.- Parameters:
passwordVersions
- the value to set- Returns:
- this builder
-
editionsEnabled
public User.Builder editionsEnabled(User.EditionsEnabled editionsEnabled)
Indicates whether editions have been enabled for the corresponding user (Y) or not (N).- Parameters:
editionsEnabled
- the value to set- Returns:
- this builder
-
authentication
public User.Builder authentication(User.Authentication authentication)
The authentication mechanism for the user.- Parameters:
authentication
- the value to set- Returns:
- this builder
-
proxyConnect
public User.Builder proxyConnect(User.ProxyConnect proxyConnect)
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).- Parameters:
proxyConnect
- the value to set- Returns:
- this builder
-
common
public User.Builder common(User.Common common)
Indicates whether a given user is common(Y) or local(N).- Parameters:
common
- the value to set- Returns:
- this builder
-
timeLastLogin
public User.Builder timeLastLogin(Date timeLastLogin)
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 }.
- Parameters:
timeLastLogin
- the value to set- Returns:
- this builder
-
oracleMaintained
public User.Builder oracleMaintained(User.OracleMaintained oracleMaintained)
Indicates whether the user was created and is maintained by Oracle-supplied scripts (such as catalog.sql or catproc.sql).- Parameters:
oracleMaintained
- the value to set- Returns:
- this builder
-
inherited
public User.Builder inherited(User.Inherited inherited)
Indicates whether the user definition is inherited from another container (YES) or not (NO).- Parameters:
inherited
- the value to set- Returns:
- this builder
-
defaultCollation
public User.Builder defaultCollation(String defaultCollation)
The default collation for the user schema.- Parameters:
defaultCollation
- the value to set- Returns:
- this builder
-
implicit
public User.Builder implicit(User.Implicit implicit)
Indicates whether the user is a common user created by an implicit application (YES) or not (NO).- Parameters:
implicit
- the value to set- Returns:
- this builder
-
allShared
public User.Builder allShared(User.AllShared allShared)
In a sharded database, indicates whether the user is created with shard DDL enabled (YES) or not (NO).- Parameters:
allShared
- the value to set- Returns:
- this builder
-
externalShared
public User.Builder externalShared(User.ExternalShared externalShared)
In a federated sharded database, indicates whether the user is an external shard user (YES) or not (NO).- Parameters:
externalShared
- the value to set- Returns:
- this builder
-
timePasswordChanged
public User.Builder timePasswordChanged(Date timePasswordChanged)
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.
- Parameters:
timePasswordChanged
- the value to set- Returns:
- this builder
-
build
public User build()
-
copy
public User.Builder copy(User model)
-
-