public static class Database.Builder extends DatabaseInfo.Builder
| Modifier and Type | Field and Description |
|---|---|
protected DatabaseId |
id |
| Modifier and Type | Method and Description |
|---|---|
Database |
build()
Builds the database from this builder.
|
DatabaseInfo.Builder |
setDefaultLeader(String defaultLeader)
The read-write region which will be used for the database's leader replicas.
|
DatabaseInfo.Builder |
setDialect(Dialect dialect) |
DatabaseInfo.Builder |
setEncryptionConfig(CustomerManagedEncryption encryptionConfig)
Optional for creating a new backup.
|
protected final DatabaseId id
public Database build()
DatabaseInfo.Builderbuild in class DatabaseInfo.Builderpublic DatabaseInfo.Builder setEncryptionConfig(@Nullable CustomerManagedEncryption encryptionConfig)
DatabaseInfo.BuilderThe encryption configuration to be used for the database. The only encryption, other than Google's default encryption, is a customer managed encryption with a provided key. If no encryption is provided, Google's default encryption will be used.
setEncryptionConfig in class DatabaseInfo.Builderpublic DatabaseInfo.Builder setDefaultLeader(String defaultLeader)
DatabaseInfo.BuildersetDefaultLeader in class DatabaseInfo.Builderpublic DatabaseInfo.Builder setDialect(Dialect dialect)
setDialect in class DatabaseInfo.BuilderCopyright © 2022 Google LLC. All rights reserved.