public abstract static class DatabaseInfo.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
abstract 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) |
abstract DatabaseInfo.Builder |
setEncryptionConfig(CustomerManagedEncryption encryptionConfig)
Optional for creating a new backup.
|
public abstract DatabaseInfo.Builder setEncryptionConfig(CustomerManagedEncryption encryptionConfig)
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.
public DatabaseInfo.Builder setDefaultLeader(String defaultLeader)
public DatabaseInfo.Builder setDialect(Dialect dialect)
public abstract Database build()
Copyright © 2022 Google LLC. All rights reserved.