@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MongoDbDataProviderSettings extends Object implements Serializable, Cloneable, StructuredPojo
Provides information that defines a MongoDB data provider.
Constructor and Description |
---|
MongoDbDataProviderSettings() |
Modifier and Type | Method and Description |
---|---|
MongoDbDataProviderSettings |
clone() |
boolean |
equals(Object obj) |
String |
getAuthMechanism()
The authentication method for connecting to the data provider.
|
String |
getAuthSource()
The MongoDB database name.
|
String |
getAuthType()
The authentication type for the database connection.
|
String |
getCertificateArn()
The Amazon Resource Name (ARN) of the certificate used for SSL connection.
|
String |
getDatabaseName()
The database name on the MongoDB data provider.
|
Integer |
getPort()
The port value for the MongoDB data provider.
|
String |
getServerName()
The name of the MongoDB server.
|
String |
getSslMode()
The SSL mode used to connect to the MongoDB data provider.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAuthMechanism(String authMechanism)
The authentication method for connecting to the data provider.
|
void |
setAuthSource(String authSource)
The MongoDB database name.
|
void |
setAuthType(String authType)
The authentication type for the database connection.
|
void |
setCertificateArn(String certificateArn)
The Amazon Resource Name (ARN) of the certificate used for SSL connection.
|
void |
setDatabaseName(String databaseName)
The database name on the MongoDB data provider.
|
void |
setPort(Integer port)
The port value for the MongoDB data provider.
|
void |
setServerName(String serverName)
The name of the MongoDB server.
|
void |
setSslMode(String sslMode)
The SSL mode used to connect to the MongoDB data provider.
|
String |
toString()
Returns a string representation of this object.
|
MongoDbDataProviderSettings |
withAuthMechanism(AuthMechanismValue authMechanism)
The authentication method for connecting to the data provider.
|
MongoDbDataProviderSettings |
withAuthMechanism(String authMechanism)
The authentication method for connecting to the data provider.
|
MongoDbDataProviderSettings |
withAuthSource(String authSource)
The MongoDB database name.
|
MongoDbDataProviderSettings |
withAuthType(AuthTypeValue authType)
The authentication type for the database connection.
|
MongoDbDataProviderSettings |
withAuthType(String authType)
The authentication type for the database connection.
|
MongoDbDataProviderSettings |
withCertificateArn(String certificateArn)
The Amazon Resource Name (ARN) of the certificate used for SSL connection.
|
MongoDbDataProviderSettings |
withDatabaseName(String databaseName)
The database name on the MongoDB data provider.
|
MongoDbDataProviderSettings |
withPort(Integer port)
The port value for the MongoDB data provider.
|
MongoDbDataProviderSettings |
withServerName(String serverName)
The name of the MongoDB server.
|
MongoDbDataProviderSettings |
withSslMode(DmsSslModeValue sslMode)
The SSL mode used to connect to the MongoDB data provider.
|
MongoDbDataProviderSettings |
withSslMode(String sslMode)
The SSL mode used to connect to the MongoDB data provider.
|
public void setServerName(String serverName)
The name of the MongoDB server.
serverName
- The name of the MongoDB server.public String getServerName()
The name of the MongoDB server.
public MongoDbDataProviderSettings withServerName(String serverName)
The name of the MongoDB server.
serverName
- The name of the MongoDB server.public void setPort(Integer port)
The port value for the MongoDB data provider.
port
- The port value for the MongoDB data provider.public Integer getPort()
The port value for the MongoDB data provider.
public MongoDbDataProviderSettings withPort(Integer port)
The port value for the MongoDB data provider.
port
- The port value for the MongoDB data provider.public void setDatabaseName(String databaseName)
The database name on the MongoDB data provider.
databaseName
- The database name on the MongoDB data provider.public String getDatabaseName()
The database name on the MongoDB data provider.
public MongoDbDataProviderSettings withDatabaseName(String databaseName)
The database name on the MongoDB data provider.
databaseName
- The database name on the MongoDB data provider.public void setSslMode(String sslMode)
The SSL mode used to connect to the MongoDB data provider. The default value is none
.
sslMode
- The SSL mode used to connect to the MongoDB data provider. The default value is none
.DmsSslModeValue
public String getSslMode()
The SSL mode used to connect to the MongoDB data provider. The default value is none
.
none
.DmsSslModeValue
public MongoDbDataProviderSettings withSslMode(String sslMode)
The SSL mode used to connect to the MongoDB data provider. The default value is none
.
sslMode
- The SSL mode used to connect to the MongoDB data provider. The default value is none
.DmsSslModeValue
public MongoDbDataProviderSettings withSslMode(DmsSslModeValue sslMode)
The SSL mode used to connect to the MongoDB data provider. The default value is none
.
sslMode
- The SSL mode used to connect to the MongoDB data provider. The default value is none
.DmsSslModeValue
public void setCertificateArn(String certificateArn)
The Amazon Resource Name (ARN) of the certificate used for SSL connection.
certificateArn
- The Amazon Resource Name (ARN) of the certificate used for SSL connection.public String getCertificateArn()
The Amazon Resource Name (ARN) of the certificate used for SSL connection.
public MongoDbDataProviderSettings withCertificateArn(String certificateArn)
The Amazon Resource Name (ARN) of the certificate used for SSL connection.
certificateArn
- The Amazon Resource Name (ARN) of the certificate used for SSL connection.public void setAuthType(String authType)
The authentication type for the database connection. Valid values are PASSWORD or NO.
authType
- The authentication type for the database connection. Valid values are PASSWORD or NO.AuthTypeValue
public String getAuthType()
The authentication type for the database connection. Valid values are PASSWORD or NO.
AuthTypeValue
public MongoDbDataProviderSettings withAuthType(String authType)
The authentication type for the database connection. Valid values are PASSWORD or NO.
authType
- The authentication type for the database connection. Valid values are PASSWORD or NO.AuthTypeValue
public MongoDbDataProviderSettings withAuthType(AuthTypeValue authType)
The authentication type for the database connection. Valid values are PASSWORD or NO.
authType
- The authentication type for the database connection. Valid values are PASSWORD or NO.AuthTypeValue
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 MongoDbDataProviderSettings 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 setAuthMechanism(String authMechanism)
The authentication method for connecting to the data provider. Valid values are DEFAULT, MONGODB_CR, or SCRAM_SHA_1.
authMechanism
- The authentication method for connecting to the data provider. Valid values are DEFAULT, MONGODB_CR, or
SCRAM_SHA_1.AuthMechanismValue
public String getAuthMechanism()
The authentication method for connecting to the data provider. Valid values are DEFAULT, MONGODB_CR, or SCRAM_SHA_1.
AuthMechanismValue
public MongoDbDataProviderSettings withAuthMechanism(String authMechanism)
The authentication method for connecting to the data provider. Valid values are DEFAULT, MONGODB_CR, or SCRAM_SHA_1.
authMechanism
- The authentication method for connecting to the data provider. Valid values are DEFAULT, MONGODB_CR, or
SCRAM_SHA_1.AuthMechanismValue
public MongoDbDataProviderSettings withAuthMechanism(AuthMechanismValue authMechanism)
The authentication method for connecting to the data provider. Valid values are DEFAULT, MONGODB_CR, or SCRAM_SHA_1.
authMechanism
- The authentication method for connecting to the data provider. Valid values are DEFAULT, MONGODB_CR, or
SCRAM_SHA_1.AuthMechanismValue
public String toString()
toString
in class Object
Object.toString()
public MongoDbDataProviderSettings clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.