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.Builder
build
in class DatabaseInfo.Builder
public DatabaseInfo.Builder setEncryptionConfig(@Nullable CustomerManagedEncryption encryptionConfig)
DatabaseInfo.Builder
The 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.Builder
public DatabaseInfo.Builder setDefaultLeader(String defaultLeader)
DatabaseInfo.Builder
setDefaultLeader
in class DatabaseInfo.Builder
public DatabaseInfo.Builder setDialect(Dialect dialect)
setDialect
in class DatabaseInfo.Builder
Copyright © 2022 Google LLC. All rights reserved.