Package com.oracle.bmc.identity.model
Class DbCredentialSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.identity.model.DbCredentialSummary.Builder
-
- Enclosing class:
- DbCredentialSummary
public static class DbCredentialSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DbCredentialSummary
build()
DbCredentialSummary.Builder
copy(DbCredentialSummary model)
DbCredentialSummary.Builder
description(String description)
The description you assign to the DB credential.DbCredentialSummary.Builder
id(String id)
The OCID of the DB credential.DbCredentialSummary.Builder
lifecycleState(DbCredential.LifecycleState lifecycleState)
The credential’s current state.DbCredentialSummary.Builder
timeCreated(Date timeCreated)
Date and time the DbCredential object was created, in the format defined by RFC3339.DbCredentialSummary.Builder
timeExpires(Date timeExpires)
Date and time when this credential will expire, in the format defined by RFC3339.DbCredentialSummary.Builder
userId(String userId)
The OCID of the user the DB credential belongs to.
-
-
-
Method Detail
-
id
public DbCredentialSummary.Builder id(String id)
The OCID of the DB credential.- Parameters:
id
- the value to set- Returns:
- this builder
-
userId
public DbCredentialSummary.Builder userId(String userId)
The OCID of the user the DB credential belongs to.- Parameters:
userId
- the value to set- Returns:
- this builder
-
description
public DbCredentialSummary.Builder description(String description)
The description you assign to the DB credential.Does not have to be unique, and it’s changeable.
(For tenancies that support identity domains) You can have an empty description.
- Parameters:
description
- the value to set- Returns:
- this builder
-
timeCreated
public DbCredentialSummary.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 DbCredentialSummary.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 DbCredentialSummary.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
-
build
public DbCredentialSummary build()
-
copy
public DbCredentialSummary.Builder copy(DbCredentialSummary model)
-
-