Class MongoDbDataProviderSettings
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<MongoDbDataProviderSettings.Builder,
MongoDbDataProviderSettings>
Provides information that defines a MongoDB data provider.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal AuthMechanismValue
The authentication method for connecting to the data provider.final String
The authentication method for connecting to the data provider.final String
The MongoDB database name.final AuthTypeValue
authType()
The authentication type for the database connection.final String
The authentication type for the database connection.builder()
final String
The Amazon Resource Name (ARN) of the certificate used for SSL connection.final String
The database name on the MongoDB data provider.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final Integer
port()
The port value for the MongoDB data provider.static Class
<? extends MongoDbDataProviderSettings.Builder> final String
The name of the MongoDB server.final DmsSslModeValue
sslMode()
The SSL mode used to connect to the MongoDB data provider.final String
The SSL mode used to connect to the MongoDB data provider.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
serverName
The name of the MongoDB server.
- Returns:
- The name of the MongoDB server.
-
port
The port value for the MongoDB data provider.
- Returns:
- The port value for the MongoDB data provider.
-
databaseName
The database name on the MongoDB data provider.
- Returns:
- The database name on the MongoDB data provider.
-
sslMode
The SSL mode used to connect to the MongoDB data provider. The default value is
none
.If the service returns an enum value that is not available in the current SDK version,
sslMode
will returnDmsSslModeValue.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromsslModeAsString()
.- Returns:
- The SSL mode used to connect to the MongoDB data provider. The default value is
none
. - See Also:
-
sslModeAsString
The SSL mode used to connect to the MongoDB data provider. The default value is
none
.If the service returns an enum value that is not available in the current SDK version,
sslMode
will returnDmsSslModeValue.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromsslModeAsString()
.- Returns:
- The SSL mode used to connect to the MongoDB data provider. The default value is
none
. - See Also:
-
certificateArn
The Amazon Resource Name (ARN) of the certificate used for SSL connection.
- Returns:
- The Amazon Resource Name (ARN) of the certificate used for SSL connection.
-
authType
The authentication type for the database connection. Valid values are PASSWORD or NO.
If the service returns an enum value that is not available in the current SDK version,
authType
will returnAuthTypeValue.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromauthTypeAsString()
.- Returns:
- The authentication type for the database connection. Valid values are PASSWORD or NO.
- See Also:
-
authTypeAsString
The authentication type for the database connection. Valid values are PASSWORD or NO.
If the service returns an enum value that is not available in the current SDK version,
authType
will returnAuthTypeValue.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromauthTypeAsString()
.- Returns:
- The authentication type for the database connection. Valid values are PASSWORD or NO.
- See Also:
-
authSource
The MongoDB database name. This setting isn't used when
AuthType
is set to"no"
.The default is
"admin"
.- Returns:
- The MongoDB database name. This setting isn't used when
AuthType
is set to"no"
.The default is
"admin"
.
-
authMechanism
The authentication method for connecting to the data provider. Valid values are DEFAULT, MONGODB_CR, or SCRAM_SHA_1.
If the service returns an enum value that is not available in the current SDK version,
authMechanism
will returnAuthMechanismValue.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromauthMechanismAsString()
.- Returns:
- The authentication method for connecting to the data provider. Valid values are DEFAULT, MONGODB_CR, or SCRAM_SHA_1.
- See Also:
-
authMechanismAsString
The authentication method for connecting to the data provider. Valid values are DEFAULT, MONGODB_CR, or SCRAM_SHA_1.
If the service returns an enum value that is not available in the current SDK version,
authMechanism
will returnAuthMechanismValue.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromauthMechanismAsString()
.- Returns:
- The authentication method for connecting to the data provider. Valid values are DEFAULT, MONGODB_CR, or SCRAM_SHA_1.
- See Also:
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<MongoDbDataProviderSettings.Builder,
MongoDbDataProviderSettings> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
-