Package com.oracle.bmc.psql.model
Class DbInstance
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.psql.model.DbInstance
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20220915") public final class DbInstance extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelInformation about a database instance node.
Note: Objects should always be created or deserialized using theDbInstance.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 theDbInstance.Builder, which maintain a set of all explicitly set fields calledDbInstance.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 Summary
Nested Classes Modifier and Type Class Description static classDbInstance.Builderstatic classDbInstance.LifecycleStateThe current state of the database instance node.
-
Constructor Summary
Constructors Constructor Description DbInstance(String id, String displayName, String description, String availabilityDomain, DbInstance.LifecycleState lifecycleState, String lifecycleDetails, Date timeCreated, Date timeUpdated)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DbInstance.Builderbuilder()Create a new builder.booleanequals(Object o)StringgetAvailabilityDomain()The availability domain in which the database instance node is located.StringgetDescription()Description of the database instance node.StringgetDisplayName()A user-friendly display name for the database instance node.StringgetId()A unique identifier for the database instance node.StringgetLifecycleDetails()A message describing the current state in more detail.DbInstance.LifecycleStategetLifecycleState()The current state of the database instance node.DategetTimeCreated()The date and time that the database instance node was created, expressed in RFC 3339 timestamp format.DategetTimeUpdated()The date and time that the database instance node was updated, expressed in RFC 3339 timestamp format.inthashCode()DbInstance.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
-
-
-
Constructor Detail
-
DbInstance
@Deprecated @ConstructorProperties({"id","displayName","description","availabilityDomain","lifecycleState","lifecycleDetails","timeCreated","timeUpdated"}) public DbInstance(String id, String displayName, String description, String availabilityDomain, DbInstance.LifecycleState lifecycleState, String lifecycleDetails, Date timeCreated, Date timeUpdated)
Deprecated.
-
-
Method Detail
-
builder
public static DbInstance.Builder builder()
Create a new builder.
-
toBuilder
public DbInstance.Builder toBuilder()
-
getId
public String getId()
A unique identifier for the database instance node.Immutable on creation.
- Returns:
- the value
-
getDisplayName
public String getDisplayName()
A user-friendly display name for the database instance node.Avoid entering confidential information.
- Returns:
- the value
-
getDescription
public String getDescription()
Description of the database instance node.- Returns:
- the value
-
getAvailabilityDomain
public String getAvailabilityDomain()
The availability domain in which the database instance node is located.- Returns:
- the value
-
getLifecycleState
public DbInstance.LifecycleState getLifecycleState()
The current state of the database instance node.- Returns:
- the value
-
getLifecycleDetails
public String getLifecycleDetails()
A message describing the current state in more detail.For example, can be used to provide actionable information for a resource in Failed state.
- Returns:
- the value
-
getTimeCreated
public Date getTimeCreated()
The date and time that the database instance node was created, expressed in RFC 3339 timestamp format.Example: 2016-08-25T21:10:29.600Z
- Returns:
- the value
-
getTimeUpdated
public Date getTimeUpdated()
The date and time that the database instance node was updated, expressed in RFC 3339 timestamp format.Example: 2016-08-25T21:10:29.600Z
- Returns:
- the value
-
toString
public String toString()
- Overrides:
toStringin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
toString
public 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
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCodein classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-