Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
User |
build() |
User.Builder |
capabilities(UserCapabilities capabilities) |
User.Builder |
compartmentId(String compartmentId)
The OCID of the tenancy containing the user.
|
User.Builder |
copy(User model) |
User.Builder |
dbUserName(String dbUserName)
DB username of the DB credential.
|
User.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
User.Builder |
description(String description)
The description you assign to the user.
|
User.Builder |
email(String email)
The email address you assign to the user.
|
User.Builder |
emailVerified(Boolean emailVerified)
Whether the email address has been validated.
|
User.Builder |
externalIdentifier(String externalIdentifier)
Identifier of the user in the identity provider
|
User.Builder |
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.
|
User.Builder |
id(String id)
The OCID of the user.
|
User.Builder |
identityProviderId(String identityProviderId)
The OCID of the
IdentityProvider this user belongs to. |
User.Builder |
inactiveStatus(Long inactiveStatus)
Returned only if the user’s
lifecycleState is INACTIVE. |
User.Builder |
isMfaActivated(Boolean isMfaActivated)
Flag indicates if MFA has been activated for the user.
|
User.Builder |
lastSuccessfulLoginTime(Date lastSuccessfulLoginTime)
The date and time of when the user most recently logged in the format defined by RFC3339
(ex.
|
User.Builder |
lifecycleState(User.LifecycleState lifecycleState)
The user’s current state.
|
User.Builder |
name(String name)
The name you assign to the user during creation.
|
User.Builder |
previousSuccessfulLoginTime(Date previousSuccessfulLoginTime)
The date and time of when the user most recently logged in the format defined by RFC3339
(ex.
|
User.Builder |
timeCreated(Date timeCreated)
Date and time the user was created, in the format defined by RFC3339.
|
public User.Builder id(String id)
The OCID of the user.
id
- the value to setpublic User.Builder compartmentId(String compartmentId)
The OCID of the tenancy containing the user.
compartmentId
- the value to setpublic User.Builder name(String name)
The name you assign to the user during creation. This is the user’s login for the Console. The name must be unique across all users in the tenancy and cannot be changed.
name
- the value to setpublic User.Builder description(String description)
The description you assign to the user. Does not have to be unique, and it’s changeable.
(For tenancies that support identity domains) You can have an empty description.
description
- the value to setpublic User.Builder email(String email)
The email address you assign to the user. The email address must be unique across all users in the tenancy.
(For tenancies that support identity domains) The email address is required unless the requirement is disabled at the tenancy level.
email
- the value to setpublic User.Builder emailVerified(Boolean emailVerified)
Whether the email address has been validated.
emailVerified
- the value to setpublic User.Builder dbUserName(String dbUserName)
DB username of the DB credential. Has to be unique across the tenancy.
dbUserName
- the value to setpublic User.Builder identityProviderId(String identityProviderId)
The OCID of the IdentityProvider
this user belongs to.
identityProviderId
- the value to setpublic User.Builder externalIdentifier(String externalIdentifier)
Identifier of the user in the identity provider
externalIdentifier
- the value to setpublic User.Builder timeCreated(Date timeCreated)
Date and time the user was created, in the format defined by RFC3339.
Example: 2016-08-25T21:10:29.600Z
timeCreated
- the value to setpublic User.Builder lifecycleState(User.LifecycleState lifecycleState)
The user’s current state. After creating a user, make sure its lifecycleState
changes from CREATING to ACTIVE before using it.
lifecycleState
- the value to setpublic User.Builder inactiveStatus(Long inactiveStatus)
Returned only if the user’s lifecycleState
is INACTIVE. A 16-bit value showing
the reason why the user is inactive:
- bit 0: SUSPENDED (reserved for future use) - bit 1: DISABLED (reserved for future use) - bit 2: BLOCKED (the user has exceeded the maximum number of failed login attempts for the Console)
inactiveStatus
- the value to setpublic User.Builder freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
Example: {"Department": "Finance"}
freeformTags
- the value to setpublic User.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource. Each key is predefined and scoped to a namespace. For
more information, see Resource
Tags. Example:
{"Operations": {"CostCenter": "42"}}
definedTags
- the value to setpublic User.Builder capabilities(UserCapabilities capabilities)
public User.Builder isMfaActivated(Boolean isMfaActivated)
Flag indicates if MFA has been activated for the user.
isMfaActivated
- the value to setpublic User.Builder lastSuccessfulLoginTime(Date lastSuccessfulLoginTime)
The date and time of when the user most recently logged in the format defined by RFC3339
(ex. 2016-08-25T21:10:29.600Z
). If there is no login history, this field is null.
For illustrative purposes, suppose we have a user who has logged in at July 1st, 2020 at 1200 PST and logged out 30 minutes later. They then login again on July 2nd, 2020 at 1500 PST.
Their previousSuccessfulLoginTime would be 2020-07-01:19:00.000Z
.
Their lastSuccessfulLoginTime would be 2020-07-02:22:00.000Z
.
lastSuccessfulLoginTime
- the value to setpublic User.Builder previousSuccessfulLoginTime(Date previousSuccessfulLoginTime)
The date and time of when the user most recently logged in the format defined by RFC3339
(ex. 2016-08-25T21:10:29.600Z
). If there is no login history, this field is null.
For illustrative purposes, suppose we have a user who has logged in at July 1st, 2020 at 1200 PST and logged out 30 minutes later. They then login again on July 2nd, 2020 at 1500 PST.
Their previousSuccessfulLoginTime would be 2020-07-01:19:00.000Z
.
Their lastSuccessfulLoginTime would be 2020-07-02:22:00.000Z
.
previousSuccessfulLoginTime
- the value to setpublic User build()
public User.Builder copy(User model)
Copyright © 2016–2024. All rights reserved.