Modifier and Type | Class and Description |
---|---|
static class |
DatabaseInfo.Builder |
static class |
DatabaseInfo.State
State of the database.
|
Constructor and Description |
---|
DatabaseInfo(DatabaseId id,
DatabaseInfo.State state) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
com.google.cloud.Timestamp |
getCreateTime()
Returns the creation time of the database.
|
String |
getDefaultLeader()
The read-write region which contains the database's leader replicas.
|
Dialect |
getDialect()
The dialect that is used by the database.
|
com.google.cloud.Timestamp |
getEarliestVersionTime()
Returns the earliest version time of the database.
|
CustomerManagedEncryption |
getEncryptionConfig()
Returns the
CustomerManagedEncryption of the database if the database is encrypted, or
null if this database is not encrypted. |
DatabaseId |
getId()
Returns the database id.
|
Database |
getProto()
Returns the raw proto instance that was used to construct this
Database . |
RestoreInfo |
getRestoreInfo()
Returns the
RestoreInfo of the database if any is available, or null if no
RestoreInfo is available for this database. |
DatabaseInfo.State |
getState()
Returns the state of the database.
|
String |
getVersionRetentionPeriod()
Returns the version retention period of the database.
|
int |
hashCode() |
String |
toString() |
public DatabaseInfo(DatabaseId id, DatabaseInfo.State state)
public DatabaseId getId()
public DatabaseInfo.State getState()
public com.google.cloud.Timestamp getCreateTime()
public String getVersionRetentionPeriod()
public com.google.cloud.Timestamp getEarliestVersionTime()
@Nullable public RestoreInfo getRestoreInfo()
RestoreInfo
of the database if any is available, or null
if no
RestoreInfo
is available for this database.@Nullable public CustomerManagedEncryption getEncryptionConfig()
CustomerManagedEncryption
of the database if the database is encrypted, or
null
if this database is not encrypted.@Nullable public String getDefaultLeader()
NULL
.@Nullable public Dialect getDialect()
Dialect.values()
.@Nullable public Database getProto()
Database
.Copyright © 2022 Google LLC. All rights reserved.