@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MongoDbSettings extends Object implements Serializable, Cloneable, StructuredPojo
Provides information that defines a MongoDB endpoint.
| Constructor and Description |
|---|
MongoDbSettings() |
| Modifier and Type | Method and Description |
|---|---|
MongoDbSettings |
clone() |
boolean |
equals(Object obj) |
String |
getAuthMechanism()
The authentication mechanism you use to access the MongoDB source endpoint.
|
String |
getAuthSource()
The MongoDB database name.
|
String |
getAuthType()
The authentication type you use to access the MongoDB source endpoint.
|
String |
getDatabaseName()
The database name on the MongoDB source endpoint.
|
String |
getDocsToInvestigate()
Indicates the number of documents to preview to determine the document organization.
|
String |
getExtractDocId()
Specifies the document ID.
|
String |
getKmsKeyId()
The KMS key identifier that is used to encrypt the content on the replication instance.
|
String |
getNestingLevel()
Specifies either document or table mode.
|
String |
getPassword()
The password for the user account you use to access the MongoDB source endpoint.
|
Integer |
getPort()
The port value for the MongoDB source endpoint.
|
String |
getSecretsManagerAccessRoleArn()
The full Amazon Resource Name (ARN) of the IAM role that specifies DMS as the trusted entity and grants the
required permissions to access the value in
SecretsManagerSecret. |
String |
getSecretsManagerSecretId()
The full ARN, partial ARN, or friendly name of the
SecretsManagerSecret that contains the MongoDB
endpoint connection details. |
String |
getServerName()
The name of the server on the MongoDB source endpoint.
|
String |
getUsername()
The user name you use to access the MongoDB source endpoint.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setAuthMechanism(AuthMechanismValue authMechanism)
The authentication mechanism you use to access the MongoDB source endpoint.
|
void |
setAuthMechanism(String authMechanism)
The authentication mechanism you use to access the MongoDB source endpoint.
|
void |
setAuthSource(String authSource)
The MongoDB database name.
|
void |
setAuthType(AuthTypeValue authType)
The authentication type you use to access the MongoDB source endpoint.
|
void |
setAuthType(String authType)
The authentication type you use to access the MongoDB source endpoint.
|
void |
setDatabaseName(String databaseName)
The database name on the MongoDB source endpoint.
|
void |
setDocsToInvestigate(String docsToInvestigate)
Indicates the number of documents to preview to determine the document organization.
|
void |
setExtractDocId(String extractDocId)
Specifies the document ID.
|
void |
setKmsKeyId(String kmsKeyId)
The KMS key identifier that is used to encrypt the content on the replication instance.
|
void |
setNestingLevel(NestingLevelValue nestingLevel)
Specifies either document or table mode.
|
void |
setNestingLevel(String nestingLevel)
Specifies either document or table mode.
|
void |
setPassword(String password)
The password for the user account you use to access the MongoDB source endpoint.
|
void |
setPort(Integer port)
The port value for the MongoDB source endpoint.
|
void |
setSecretsManagerAccessRoleArn(String secretsManagerAccessRoleArn)
The full Amazon Resource Name (ARN) of the IAM role that specifies DMS as the trusted entity and grants the
required permissions to access the value in
SecretsManagerSecret. |
void |
setSecretsManagerSecretId(String secretsManagerSecretId)
The full ARN, partial ARN, or friendly name of the
SecretsManagerSecret that contains the MongoDB
endpoint connection details. |
void |
setServerName(String serverName)
The name of the server on the MongoDB source endpoint.
|
void |
setUsername(String username)
The user name you use to access the MongoDB source endpoint.
|
String |
toString()
Returns a string representation of this object.
|
MongoDbSettings |
withAuthMechanism(AuthMechanismValue authMechanism)
The authentication mechanism you use to access the MongoDB source endpoint.
|
MongoDbSettings |
withAuthMechanism(String authMechanism)
The authentication mechanism you use to access the MongoDB source endpoint.
|
MongoDbSettings |
withAuthSource(String authSource)
The MongoDB database name.
|
MongoDbSettings |
withAuthType(AuthTypeValue authType)
The authentication type you use to access the MongoDB source endpoint.
|
MongoDbSettings |
withAuthType(String authType)
The authentication type you use to access the MongoDB source endpoint.
|
MongoDbSettings |
withDatabaseName(String databaseName)
The database name on the MongoDB source endpoint.
|
MongoDbSettings |
withDocsToInvestigate(String docsToInvestigate)
Indicates the number of documents to preview to determine the document organization.
|
MongoDbSettings |
withExtractDocId(String extractDocId)
Specifies the document ID.
|
MongoDbSettings |
withKmsKeyId(String kmsKeyId)
The KMS key identifier that is used to encrypt the content on the replication instance.
|
MongoDbSettings |
withNestingLevel(NestingLevelValue nestingLevel)
Specifies either document or table mode.
|
MongoDbSettings |
withNestingLevel(String nestingLevel)
Specifies either document or table mode.
|
MongoDbSettings |
withPassword(String password)
The password for the user account you use to access the MongoDB source endpoint.
|
MongoDbSettings |
withPort(Integer port)
The port value for the MongoDB source endpoint.
|
MongoDbSettings |
withSecretsManagerAccessRoleArn(String secretsManagerAccessRoleArn)
The full Amazon Resource Name (ARN) of the IAM role that specifies DMS as the trusted entity and grants the
required permissions to access the value in
SecretsManagerSecret. |
MongoDbSettings |
withSecretsManagerSecretId(String secretsManagerSecretId)
The full ARN, partial ARN, or friendly name of the
SecretsManagerSecret that contains the MongoDB
endpoint connection details. |
MongoDbSettings |
withServerName(String serverName)
The name of the server on the MongoDB source endpoint.
|
MongoDbSettings |
withUsername(String username)
The user name you use to access the MongoDB source endpoint.
|
public void setUsername(String username)
The user name you use to access the MongoDB source endpoint.
username - The user name you use to access the MongoDB source endpoint.public String getUsername()
The user name you use to access the MongoDB source endpoint.
public MongoDbSettings withUsername(String username)
The user name you use to access the MongoDB source endpoint.
username - The user name you use to access the MongoDB source endpoint.public void setPassword(String password)
The password for the user account you use to access the MongoDB source endpoint.
password - The password for the user account you use to access the MongoDB source endpoint.public String getPassword()
The password for the user account you use to access the MongoDB source endpoint.
public MongoDbSettings withPassword(String password)
The password for the user account you use to access the MongoDB source endpoint.
password - The password for the user account you use to access the MongoDB source endpoint.public void setServerName(String serverName)
The name of the server on the MongoDB source endpoint.
serverName - The name of the server on the MongoDB source endpoint.public String getServerName()
The name of the server on the MongoDB source endpoint.
public MongoDbSettings withServerName(String serverName)
The name of the server on the MongoDB source endpoint.
serverName - The name of the server on the MongoDB source endpoint.public void setPort(Integer port)
The port value for the MongoDB source endpoint.
port - The port value for the MongoDB source endpoint.public Integer getPort()
The port value for the MongoDB source endpoint.
public MongoDbSettings withPort(Integer port)
The port value for the MongoDB source endpoint.
port - The port value for the MongoDB source endpoint.public void setDatabaseName(String databaseName)
The database name on the MongoDB source endpoint.
databaseName - The database name on the MongoDB source endpoint.public String getDatabaseName()
The database name on the MongoDB source endpoint.
public MongoDbSettings withDatabaseName(String databaseName)
The database name on the MongoDB source endpoint.
databaseName - The database name on the MongoDB source endpoint.public void setAuthType(String authType)
The authentication type you use to access the MongoDB source endpoint.
When when set to "no", user name and password parameters are not used and can be empty.
authType - The authentication type you use to access the MongoDB source endpoint.
When when set to "no", user name and password parameters are not used and can be empty.
AuthTypeValuepublic String getAuthType()
The authentication type you use to access the MongoDB source endpoint.
When when set to "no", user name and password parameters are not used and can be empty.
When when set to "no", user name and password parameters are not used and can be empty.
AuthTypeValuepublic MongoDbSettings withAuthType(String authType)
The authentication type you use to access the MongoDB source endpoint.
When when set to "no", user name and password parameters are not used and can be empty.
authType - The authentication type you use to access the MongoDB source endpoint.
When when set to "no", user name and password parameters are not used and can be empty.
AuthTypeValuepublic void setAuthType(AuthTypeValue authType)
The authentication type you use to access the MongoDB source endpoint.
When when set to "no", user name and password parameters are not used and can be empty.
authType - The authentication type you use to access the MongoDB source endpoint.
When when set to "no", user name and password parameters are not used and can be empty.
AuthTypeValuepublic MongoDbSettings withAuthType(AuthTypeValue authType)
The authentication type you use to access the MongoDB source endpoint.
When when set to "no", user name and password parameters are not used and can be empty.
authType - The authentication type you use to access the MongoDB source endpoint.
When when set to "no", user name and password parameters are not used and can be empty.
AuthTypeValuepublic void setAuthMechanism(String authMechanism)
The authentication mechanism you use to access the MongoDB source endpoint.
For the default value, in MongoDB version 2.x, "default" is "mongodb_cr". For MongoDB
version 3.x or later, "default" is "scram_sha_1". This setting isn't used when
AuthType is set to "no".
authMechanism - The authentication mechanism you use to access the MongoDB source endpoint.
For the default value, in MongoDB version 2.x, "default" is "mongodb_cr". For
MongoDB version 3.x or later, "default" is "scram_sha_1". This setting isn't
used when AuthType is set to "no".
AuthMechanismValuepublic String getAuthMechanism()
The authentication mechanism you use to access the MongoDB source endpoint.
For the default value, in MongoDB version 2.x, "default" is "mongodb_cr". For MongoDB
version 3.x or later, "default" is "scram_sha_1". This setting isn't used when
AuthType is set to "no".
For the default value, in MongoDB version 2.x, "default" is "mongodb_cr". For
MongoDB version 3.x or later, "default" is "scram_sha_1". This setting isn't
used when AuthType is set to "no".
AuthMechanismValuepublic MongoDbSettings withAuthMechanism(String authMechanism)
The authentication mechanism you use to access the MongoDB source endpoint.
For the default value, in MongoDB version 2.x, "default" is "mongodb_cr". For MongoDB
version 3.x or later, "default" is "scram_sha_1". This setting isn't used when
AuthType is set to "no".
authMechanism - The authentication mechanism you use to access the MongoDB source endpoint.
For the default value, in MongoDB version 2.x, "default" is "mongodb_cr". For
MongoDB version 3.x or later, "default" is "scram_sha_1". This setting isn't
used when AuthType is set to "no".
AuthMechanismValuepublic void setAuthMechanism(AuthMechanismValue authMechanism)
The authentication mechanism you use to access the MongoDB source endpoint.
For the default value, in MongoDB version 2.x, "default" is "mongodb_cr". For MongoDB
version 3.x or later, "default" is "scram_sha_1". This setting isn't used when
AuthType is set to "no".
authMechanism - The authentication mechanism you use to access the MongoDB source endpoint.
For the default value, in MongoDB version 2.x, "default" is "mongodb_cr". For
MongoDB version 3.x or later, "default" is "scram_sha_1". This setting isn't
used when AuthType is set to "no".
AuthMechanismValuepublic MongoDbSettings withAuthMechanism(AuthMechanismValue authMechanism)
The authentication mechanism you use to access the MongoDB source endpoint.
For the default value, in MongoDB version 2.x, "default" is "mongodb_cr". For MongoDB
version 3.x or later, "default" is "scram_sha_1". This setting isn't used when
AuthType is set to "no".
authMechanism - The authentication mechanism you use to access the MongoDB source endpoint.
For the default value, in MongoDB version 2.x, "default" is "mongodb_cr". For
MongoDB version 3.x or later, "default" is "scram_sha_1". This setting isn't
used when AuthType is set to "no".
AuthMechanismValuepublic void setNestingLevel(String nestingLevel)
Specifies either document or table mode.
Default value is "none". Specify "none" to use document mode. Specify
"one" to use table mode.
nestingLevel - Specifies either document or table mode.
Default value is "none". Specify "none" to use document mode. Specify
"one" to use table mode.
NestingLevelValuepublic String getNestingLevel()
Specifies either document or table mode.
Default value is "none". Specify "none" to use document mode. Specify
"one" to use table mode.
Default value is "none". Specify "none" to use document mode. Specify
"one" to use table mode.
NestingLevelValuepublic MongoDbSettings withNestingLevel(String nestingLevel)
Specifies either document or table mode.
Default value is "none". Specify "none" to use document mode. Specify
"one" to use table mode.
nestingLevel - Specifies either document or table mode.
Default value is "none". Specify "none" to use document mode. Specify
"one" to use table mode.
NestingLevelValuepublic void setNestingLevel(NestingLevelValue nestingLevel)
Specifies either document or table mode.
Default value is "none". Specify "none" to use document mode. Specify
"one" to use table mode.
nestingLevel - Specifies either document or table mode.
Default value is "none". Specify "none" to use document mode. Specify
"one" to use table mode.
NestingLevelValuepublic MongoDbSettings withNestingLevel(NestingLevelValue nestingLevel)
Specifies either document or table mode.
Default value is "none". Specify "none" to use document mode. Specify
"one" to use table mode.
nestingLevel - Specifies either document or table mode.
Default value is "none". Specify "none" to use document mode. Specify
"one" to use table mode.
NestingLevelValuepublic void setExtractDocId(String extractDocId)
Specifies the document ID. Use this setting when NestingLevel is set to "none".
Default value is "false".
extractDocId - Specifies the document ID. Use this setting when NestingLevel is set to "none".
Default value is "false".
public String getExtractDocId()
Specifies the document ID. Use this setting when NestingLevel is set to "none".
Default value is "false".
NestingLevel is set to "none".
Default value is "false".
public MongoDbSettings withExtractDocId(String extractDocId)
Specifies the document ID. Use this setting when NestingLevel is set to "none".
Default value is "false".
extractDocId - Specifies the document ID. Use this setting when NestingLevel is set to "none".
Default value is "false".
public void setDocsToInvestigate(String docsToInvestigate)
Indicates the number of documents to preview to determine the document organization. Use this setting when
NestingLevel is set to "one".
Must be a positive value greater than 0. Default value is 1000.
docsToInvestigate - Indicates the number of documents to preview to determine the document organization. Use this setting when
NestingLevel is set to "one".
Must be a positive value greater than 0. Default value is 1000.
public String getDocsToInvestigate()
Indicates the number of documents to preview to determine the document organization. Use this setting when
NestingLevel is set to "one".
Must be a positive value greater than 0. Default value is 1000.
NestingLevel is set to "one".
Must be a positive value greater than 0. Default value is 1000.
public MongoDbSettings withDocsToInvestigate(String docsToInvestigate)
Indicates the number of documents to preview to determine the document organization. Use this setting when
NestingLevel is set to "one".
Must be a positive value greater than 0. Default value is 1000.
docsToInvestigate - Indicates the number of documents to preview to determine the document organization. Use this setting when
NestingLevel is set to "one".
Must be a positive value greater than 0. Default value is 1000.
public void setAuthSource(String authSource)
The MongoDB database name. This setting isn't used when AuthType is set to "no".
The default is "admin".
authSource - The MongoDB database name. This setting isn't used when AuthType is set to "no".
The default is "admin".
public String getAuthSource()
The MongoDB database name. This setting isn't used when AuthType is set to "no".
The default is "admin".
AuthType is set to "no"
.
The default is "admin".
public MongoDbSettings withAuthSource(String authSource)
The MongoDB database name. This setting isn't used when AuthType is set to "no".
The default is "admin".
authSource - The MongoDB database name. This setting isn't used when AuthType is set to "no".
The default is "admin".
public void setKmsKeyId(String kmsKeyId)
The KMS key identifier that is used to encrypt the content on the replication instance. If you don't specify a
value for the KmsKeyId parameter, then DMS uses your default encryption key. KMS creates the default
encryption key for your account. Your account has a different default encryption key for each Region.
kmsKeyId - The KMS key identifier that is used to encrypt the content on the replication instance. If you don't
specify a value for the KmsKeyId parameter, then DMS uses your default encryption key. KMS
creates the default encryption key for your account. Your account has a different default encryption key
for each Region.public String getKmsKeyId()
The KMS key identifier that is used to encrypt the content on the replication instance. If you don't specify a
value for the KmsKeyId parameter, then DMS uses your default encryption key. KMS creates the default
encryption key for your account. Your account has a different default encryption key for each Region.
KmsKeyId parameter, then DMS uses your default encryption key. KMS
creates the default encryption key for your account. Your account has a different default encryption key
for each Region.public MongoDbSettings withKmsKeyId(String kmsKeyId)
The KMS key identifier that is used to encrypt the content on the replication instance. If you don't specify a
value for the KmsKeyId parameter, then DMS uses your default encryption key. KMS creates the default
encryption key for your account. Your account has a different default encryption key for each Region.
kmsKeyId - The KMS key identifier that is used to encrypt the content on the replication instance. If you don't
specify a value for the KmsKeyId parameter, then DMS uses your default encryption key. KMS
creates the default encryption key for your account. Your account has a different default encryption key
for each Region.public void setSecretsManagerAccessRoleArn(String secretsManagerAccessRoleArn)
The full Amazon Resource Name (ARN) of the IAM role that specifies DMS as the trusted entity and grants the
required permissions to access the value in SecretsManagerSecret. The role must allow the
iam:PassRole action. SecretsManagerSecret has the value of the Amazon Web Services
Secrets Manager secret that allows access to the MongoDB endpoint.
You can specify one of two sets of values for these permissions. You can specify the values for this setting and
SecretsManagerSecretId. Or you can specify clear-text values for UserName,
Password, ServerName, and Port. You can't specify both. For more
information on creating this SecretsManagerSecret and the SecretsManagerAccessRoleArn
and SecretsManagerSecretId required to access it, see Using
secrets to access Database Migration Service resources in the Database Migration Service User Guide.
secretsManagerAccessRoleArn - The full Amazon Resource Name (ARN) of the IAM role that specifies DMS as the trusted entity and grants
the required permissions to access the value in SecretsManagerSecret. The role must allow the
iam:PassRole action. SecretsManagerSecret has the value of the Amazon Web
Services Secrets Manager secret that allows access to the MongoDB endpoint.
You can specify one of two sets of values for these permissions. You can specify the values for this
setting and SecretsManagerSecretId. Or you can specify clear-text values for
UserName, Password, ServerName, and Port. You can't
specify both. For more information on creating this SecretsManagerSecret and the
SecretsManagerAccessRoleArn and SecretsManagerSecretId required to access it,
see Using secrets to access Database Migration Service resources in the Database Migration Service
User Guide.
public String getSecretsManagerAccessRoleArn()
The full Amazon Resource Name (ARN) of the IAM role that specifies DMS as the trusted entity and grants the
required permissions to access the value in SecretsManagerSecret. The role must allow the
iam:PassRole action. SecretsManagerSecret has the value of the Amazon Web Services
Secrets Manager secret that allows access to the MongoDB endpoint.
You can specify one of two sets of values for these permissions. You can specify the values for this setting and
SecretsManagerSecretId. Or you can specify clear-text values for UserName,
Password, ServerName, and Port. You can't specify both. For more
information on creating this SecretsManagerSecret and the SecretsManagerAccessRoleArn
and SecretsManagerSecretId required to access it, see Using
secrets to access Database Migration Service resources in the Database Migration Service User Guide.
SecretsManagerSecret. The role must allow
the iam:PassRole action. SecretsManagerSecret has the value of the Amazon Web
Services Secrets Manager secret that allows access to the MongoDB endpoint.
You can specify one of two sets of values for these permissions. You can specify the values for this
setting and SecretsManagerSecretId. Or you can specify clear-text values for
UserName, Password, ServerName, and Port. You can't
specify both. For more information on creating this SecretsManagerSecret and the
SecretsManagerAccessRoleArn and SecretsManagerSecretId required to access it,
see Using secrets to access Database Migration Service resources in the Database Migration Service
User Guide.
public MongoDbSettings withSecretsManagerAccessRoleArn(String secretsManagerAccessRoleArn)
The full Amazon Resource Name (ARN) of the IAM role that specifies DMS as the trusted entity and grants the
required permissions to access the value in SecretsManagerSecret. The role must allow the
iam:PassRole action. SecretsManagerSecret has the value of the Amazon Web Services
Secrets Manager secret that allows access to the MongoDB endpoint.
You can specify one of two sets of values for these permissions. You can specify the values for this setting and
SecretsManagerSecretId. Or you can specify clear-text values for UserName,
Password, ServerName, and Port. You can't specify both. For more
information on creating this SecretsManagerSecret and the SecretsManagerAccessRoleArn
and SecretsManagerSecretId required to access it, see Using
secrets to access Database Migration Service resources in the Database Migration Service User Guide.
secretsManagerAccessRoleArn - The full Amazon Resource Name (ARN) of the IAM role that specifies DMS as the trusted entity and grants
the required permissions to access the value in SecretsManagerSecret. The role must allow the
iam:PassRole action. SecretsManagerSecret has the value of the Amazon Web
Services Secrets Manager secret that allows access to the MongoDB endpoint.
You can specify one of two sets of values for these permissions. You can specify the values for this
setting and SecretsManagerSecretId. Or you can specify clear-text values for
UserName, Password, ServerName, and Port. You can't
specify both. For more information on creating this SecretsManagerSecret and the
SecretsManagerAccessRoleArn and SecretsManagerSecretId required to access it,
see Using secrets to access Database Migration Service resources in the Database Migration Service
User Guide.
public void setSecretsManagerSecretId(String secretsManagerSecretId)
The full ARN, partial ARN, or friendly name of the SecretsManagerSecret that contains the MongoDB
endpoint connection details.
secretsManagerSecretId - The full ARN, partial ARN, or friendly name of the SecretsManagerSecret that contains the
MongoDB endpoint connection details.public String getSecretsManagerSecretId()
The full ARN, partial ARN, or friendly name of the SecretsManagerSecret that contains the MongoDB
endpoint connection details.
SecretsManagerSecret that contains the
MongoDB endpoint connection details.public MongoDbSettings withSecretsManagerSecretId(String secretsManagerSecretId)
The full ARN, partial ARN, or friendly name of the SecretsManagerSecret that contains the MongoDB
endpoint connection details.
secretsManagerSecretId - The full ARN, partial ARN, or friendly name of the SecretsManagerSecret that contains the
MongoDB endpoint connection details.public String toString()
toString in class ObjectObject.toString()public MongoDbSettings clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2021. All rights reserved.