Package com.mongodb
Class AutoEncryptionSettings.Builder
java.lang.Object
com.mongodb.AutoEncryptionSettings.Builder
- Enclosing class:
AutoEncryptionSettings
@NotThreadSafe
@Deprecated(since="2021-05-27")
public static final class AutoEncryptionSettings.Builder
extends Object
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
A builder for
AutoEncryptionSettings
so that AutoEncryptionSettings
can be immutable, and to support easier
construction through chaining.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Deprecated.Build an instance ofAutoEncryptionSettings
.bypassAutoEncryption
(boolean bypassAutoEncryption) Deprecated.Sets whether auto-encryption should be bypassed.extraOptions
(Map<String, Object> extraOptions) Deprecated.Sets the extra options.keyVaultMongoClientSettings
(MongoClientSettings keyVaultMongoClientSettings) Deprecated.Sets the key vault settings.keyVaultNamespace
(String keyVaultNamespace) Deprecated.Sets the key vault namespaceDeprecated.Sets the KMS providers map.schemaMap
(Map<String, BsonDocument> schemaMap) Deprecated.Sets the map from namespace to local schema document
-
Method Details
-
keyVaultMongoClientSettings
public AutoEncryptionSettings.Builder keyVaultMongoClientSettings(MongoClientSettings keyVaultMongoClientSettings) Deprecated.Sets the key vault settings.- Parameters:
keyVaultMongoClientSettings
- the key vault mongo client settings, which may be null.- Returns:
- this
- See Also:
-
keyVaultNamespace
Deprecated.Sets the key vault namespace- Parameters:
keyVaultNamespace
- the key vault namespace, which may not be null- Returns:
- this
- See Also:
-
kmsProviders
Deprecated.Sets the KMS providers map.- Parameters:
kmsProviders
- the KMS providers map, which may not be null- Returns:
- this
- See Also:
-
schemaMap
Deprecated.Sets the map from namespace to local schema document- Parameters:
schemaMap
- the map from namespace to local schema document- Returns:
- this
- See Also:
-
extraOptions
Deprecated.Sets the extra options.- Parameters:
extraOptions
- the extra options, which may not be null- Returns:
- this
- See Also:
-
bypassAutoEncryption
Deprecated.Sets whether auto-encryption should be bypassed.- Parameters:
bypassAutoEncryption
- whether auto-encryption should be bypassed- Returns:
- this
- See Also:
-
build
Deprecated.Build an instance ofAutoEncryptionSettings
.- Returns:
- the settings from this builder
-