Package com.oracle.bmc.identity.model
Class DbCredential.Builder
- java.lang.Object
-
- com.oracle.bmc.identity.model.DbCredential.Builder
-
- Enclosing class:
- DbCredential
public static class DbCredential.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DbCredentialbuild()DbCredential.Buildercopy(DbCredential model)DbCredential.Builderid(String id)The OCID of the DB credential.DbCredential.BuilderlifecycleDetails(Long lifecycleDetails)The detailed status of INACTIVE lifecycleState.DbCredential.BuilderlifecycleState(DbCredential.LifecycleState lifecycleState)The credential’s current state.DbCredential.BuildertimeCreated(Date timeCreated)Date and time the DbCredential object was created, in the format defined by RFC3339.DbCredential.BuildertimeExpires(Date timeExpires)Date and time when this credential will expire, in the format defined by RFC3339.DbCredential.BuilderuserId(String userId)The OCID of the user the DB credential belongs to.
-
-
-
Method Detail
-
id
public DbCredential.Builder id(String id)
The OCID of the DB credential.- Parameters:
id- the value to set- Returns:
- this builder
-
userId
public DbCredential.Builder userId(String userId)
The OCID of the user the DB credential belongs to.- Parameters:
userId- the value to set- Returns:
- this builder
-
timeCreated
public DbCredential.Builder timeCreated(Date timeCreated)
Date and time the DbCredential object was created, in the format defined by RFC3339.Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
timeExpires
public DbCredential.Builder timeExpires(Date timeExpires)
Date and time when this credential will expire, in the format defined by RFC3339.Null if it never expires.
Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeExpires- the value to set- Returns:
- this builder
-
lifecycleState
public DbCredential.Builder lifecycleState(DbCredential.LifecycleState lifecycleState)
The credential’s current state.After creating a DB credential, make sure its lifecycleState changes from CREATING to ACTIVE before using it.
- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
lifecycleDetails
public DbCredential.Builder lifecycleDetails(Long lifecycleDetails)
The detailed status of INACTIVE lifecycleState.- Parameters:
lifecycleDetails- the value to set- Returns:
- this builder
-
build
public DbCredential build()
-
copy
public DbCredential.Builder copy(DbCredential model)
-
-