@NotThreadSafe public static final class ClientEncryptionSettings.Builder extends java.lang.Object
ClientEncryptionSettings
so that ClientEncryptionSettings
can be immutable, and to support easier
construction through chaining.Modifier and Type | Method and Description |
---|---|
ClientEncryptionSettings |
build()
Build an instance of
ClientEncryptionSettings . |
ClientEncryptionSettings.Builder |
keyVaultMongoClientSettings(MongoClientSettings keyVaultMongoClientSettings)
Sets the key vault settings.
|
ClientEncryptionSettings.Builder |
keyVaultNamespace(java.lang.String keyVaultNamespace)
Sets the key vault namespace
|
ClientEncryptionSettings.Builder |
kmsProviders(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> kmsProviders)
Sets the KMS providers map.
|
public ClientEncryptionSettings.Builder keyVaultMongoClientSettings(MongoClientSettings keyVaultMongoClientSettings)
keyVaultMongoClientSettings
- the key vault mongo client settings, which may be null.ClientEncryptionSettings.getKeyVaultMongoClientSettings()
public ClientEncryptionSettings.Builder keyVaultNamespace(java.lang.String keyVaultNamespace)
keyVaultNamespace
- the key vault namespace, which may not be nullClientEncryptionSettings.getKeyVaultNamespace()
public ClientEncryptionSettings.Builder kmsProviders(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> kmsProviders)
kmsProviders
- the KMS providers map, which may not be nullClientEncryptionSettings.getKmsProviders()
public ClientEncryptionSettings build()
ClientEncryptionSettings
.Copyright © 2010 - 2023 Adobe. All Rights Reserved