Class DbCredential
- java.lang.Object
- 
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
- 
- com.oracle.bmc.identity.model.DbCredential
 
 
- 
 @Generated(value="OracleSDKGenerator", comments="API Version: 20160918") public final class DbCredential extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelDatabase credentials are needed for onboarding cloud database to identity.The DB credentials are used for DB authentication with the service. 
 Note: Objects should always be created or deserialized using theDbCredential.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 theDbCredential.Builder, which maintain a set of all explicitly set fields calledDbCredential.Builder.__explicitlySet__. ThehashCode()andequals(Object)methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classDbCredential.Builderstatic classDbCredential.LifecycleStateThe credential’s current state.
 - 
Constructor SummaryConstructors Constructor Description DbCredential(String id, String userId, Date timeCreated, Date timeExpires, DbCredential.LifecycleState lifecycleState, Long lifecycleDetails)Deprecated.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DbCredential.Builderbuilder()Create a new builder.booleanequals(Object o)StringgetId()The OCID of the DB credential.LonggetLifecycleDetails()The detailed status of INACTIVE lifecycleState.DbCredential.LifecycleStategetLifecycleState()The credential’s current state.DategetTimeCreated()Date and time the DbCredential object was created, in the format defined by RFC3339.DategetTimeExpires()Date and time when this credential will expire, in the format defined by RFC3339.StringgetUserId()The OCID of the user the DB credential belongs to.inthashCode()DbCredential.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
 
- 
- 
- 
Constructor Detail- 
DbCredential@Deprecated @ConstructorProperties({"id","userId","timeCreated","timeExpires","lifecycleState","lifecycleDetails"}) public DbCredential(String id, String userId, Date timeCreated, Date timeExpires, DbCredential.LifecycleState lifecycleState, Long lifecycleDetails) Deprecated.
 
- 
 - 
Method Detail- 
builderpublic static DbCredential.Builder builder() Create a new builder.
 - 
toBuilderpublic DbCredential.Builder toBuilder() 
 - 
getIdpublic String getId() The OCID of the DB credential.- Returns:
- the value
 
 - 
getUserIdpublic String getUserId() The OCID of the user the DB credential belongs to.- Returns:
- the value
 
 - 
getTimeCreatedpublic Date getTimeCreated() Date and time the DbCredential object was created, in the format defined by RFC3339.Example: 2016-08-25T21:10:29.600Z - Returns:
- the value
 
 - 
getTimeExpirespublic Date getTimeExpires() 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 - Returns:
- the value
 
 - 
getLifecycleStatepublic DbCredential.LifecycleState getLifecycleState() The credential’s current state.After creating a DB credential, make sure its lifecycleState changes from CREATING to ACTIVE before using it. - Returns:
- the value
 
 - 
getLifecycleDetailspublic Long getLifecycleDetails() The detailed status of INACTIVE lifecycleState.- Returns:
- the value
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
toStringpublic String toString(boolean includeByteArrayContents) Return a string representation of the object.- Parameters:
- includeByteArrayContents- true to include the full contents of byte arrays
- Returns:
- string representation
 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 
- 
 
-