/** * <p> * The authentication mechanism you use to access the MongoDB source endpoint. * </p> * <p> * Valid values: DEFAULT, MONGODB_CR, SCRAM_SHA_1 * </p> * <p> * DEFAULT – For MongoDB version 2.x, use MONGODB_CR. For MongoDB version 3.x, use SCRAM_SHA_1. This attribute is * not used when authType=No. * </p> * <p> * If the service returns an enum value that is not available in the current SDK version, {@link #authMechanism} * will return {@link AuthMechanismValue#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available * from {@link #authMechanismAsString}. * </p> * * @return The authentication mechanism you use to access the MongoDB source endpoint.</p> * <p> * Valid values: DEFAULT, MONGODB_CR, SCRAM_SHA_1 * </p> * <p> * DEFAULT – For MongoDB version 2.x, use MONGODB_CR. For MongoDB version 3.x, use SCRAM_SHA_1. This * attribute is not used when authType=No. * @see AuthMechanismValue */ public AuthMechanismValue authMechanism() { return AuthMechanismValue.fromValue(authMechanism); }
/** * <p> * The authentication mechanism you use to access the MongoDB source endpoint. * </p> * <p> * Valid values: DEFAULT, MONGODB_CR, SCRAM_SHA_1 * </p> * <p> * DEFAULT – For MongoDB version 2.x, use MONGODB_CR. For MongoDB version 3.x, use SCRAM_SHA_1. This attribute is * not used when authType=No. * </p> * <p> * If the service returns an enum value that is not available in the current SDK version, {@link #authMechanism} * will return {@link AuthMechanismValue#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available * from {@link #authMechanismAsString}. * </p> * * @return The authentication mechanism you use to access the MongoDB source endpoint.</p> * <p> * Valid values: DEFAULT, MONGODB_CR, SCRAM_SHA_1 * </p> * <p> * DEFAULT – For MongoDB version 2.x, use MONGODB_CR. For MongoDB version 3.x, use SCRAM_SHA_1. This * attribute is not used when authType=No. * @see AuthMechanismValue */ public AuthMechanismValue authMechanism() { return AuthMechanismValue.fromValue(authMechanism); }
/** * <p> * The authentication mechanism you use to access the MongoDB source endpoint. * </p> * <p> * Valid values: DEFAULT, MONGODB_CR, SCRAM_SHA_1 * </p> * <p> * DEFAULT – For MongoDB version 2.x, use MONGODB_CR. For MongoDB version 3.x, use SCRAM_SHA_1. This attribute is * not used when authType=No. * </p> * <p> * If the service returns an enum value that is not available in the current SDK version, {@link #authMechanism} * will return {@link AuthMechanismValue#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available * from {@link #authMechanismAsString}. * </p> * * @return The authentication mechanism you use to access the MongoDB source endpoint.</p> * <p> * Valid values: DEFAULT, MONGODB_CR, SCRAM_SHA_1 * </p> * <p> * DEFAULT – For MongoDB version 2.x, use MONGODB_CR. For MongoDB version 3.x, use SCRAM_SHA_1. This * attribute is not used when authType=No. * @see AuthMechanismValue */ public AuthMechanismValue authMechanism() { return AuthMechanismValue.fromValue(authMechanism); }