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 java.lang.Object
Deprecated.Usage of this API is not supported in AEM as a Cloud Service.A builder forAutoEncryptionSettings
so thatAutoEncryptionSettings
can be immutable, and to support easier construction through chaining.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AutoEncryptionSettings
build()
Deprecated.Build an instance ofAutoEncryptionSettings
.AutoEncryptionSettings.Builder
bypassAutoEncryption(boolean bypassAutoEncryption)
Deprecated.Sets whether auto-encryption should be bypassed.AutoEncryptionSettings.Builder
extraOptions(java.util.Map<java.lang.String,java.lang.Object> extraOptions)
Deprecated.Sets the extra options.AutoEncryptionSettings.Builder
keyVaultMongoClientSettings(MongoClientSettings keyVaultMongoClientSettings)
Deprecated.Sets the key vault settings.AutoEncryptionSettings.Builder
keyVaultNamespace(java.lang.String keyVaultNamespace)
Deprecated.Sets the key vault namespaceAutoEncryptionSettings.Builder
kmsProviders(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> kmsProviders)
Deprecated.Sets the KMS providers map.AutoEncryptionSettings.Builder
schemaMap(java.util.Map<java.lang.String,BsonDocument> schemaMap)
Deprecated.Sets the map from namespace to local schema document
-
-
-
Method Detail
-
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:
AutoEncryptionSettings.getKeyVaultMongoClientSettings()
-
keyVaultNamespace
public AutoEncryptionSettings.Builder keyVaultNamespace(java.lang.String keyVaultNamespace)
Deprecated.Sets the key vault namespace- Parameters:
keyVaultNamespace
- the key vault namespace, which may not be null- Returns:
- this
- See Also:
AutoEncryptionSettings.getKeyVaultNamespace()
-
kmsProviders
public AutoEncryptionSettings.Builder kmsProviders(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> kmsProviders)
Deprecated.Sets the KMS providers map.- Parameters:
kmsProviders
- the KMS providers map, which may not be null- Returns:
- this
- See Also:
AutoEncryptionSettings.getKmsProviders()
-
schemaMap
public AutoEncryptionSettings.Builder schemaMap(java.util.Map<java.lang.String,BsonDocument> 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:
AutoEncryptionSettings.getSchemaMap()
-
extraOptions
public AutoEncryptionSettings.Builder extraOptions(java.util.Map<java.lang.String,java.lang.Object> extraOptions)
Deprecated.Sets the extra options.- Parameters:
extraOptions
- the extra options, which may not be null- Returns:
- this
- See Also:
AutoEncryptionSettings.getExtraOptions()
-
bypassAutoEncryption
public AutoEncryptionSettings.Builder bypassAutoEncryption(boolean bypassAutoEncryption)
Deprecated.Sets whether auto-encryption should be bypassed.- Parameters:
bypassAutoEncryption
- whether auto-encryption should be bypassed- Returns:
- this
- See Also:
AutoEncryptionSettings.isBypassAutoEncryption()
-
build
public AutoEncryptionSettings build()
Deprecated.Build an instance ofAutoEncryptionSettings
.- Returns:
- the settings from this builder
-
-