/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace GuardDuty { namespace Model { /** *

Contains information about the user and authentication details for a database * instance involved in the finding.

See Also:

AWS * API Reference

*/ class RdsDbUserDetails { public: AWS_GUARDDUTY_API RdsDbUserDetails(); AWS_GUARDDUTY_API RdsDbUserDetails(Aws::Utils::Json::JsonView jsonValue); AWS_GUARDDUTY_API RdsDbUserDetails& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The user name used in the anomalous login attempt.

*/ inline const Aws::String& GetUser() const{ return m_user; } /** *

The user name used in the anomalous login attempt.

*/ inline bool UserHasBeenSet() const { return m_userHasBeenSet; } /** *

The user name used in the anomalous login attempt.

*/ inline void SetUser(const Aws::String& value) { m_userHasBeenSet = true; m_user = value; } /** *

The user name used in the anomalous login attempt.

*/ inline void SetUser(Aws::String&& value) { m_userHasBeenSet = true; m_user = std::move(value); } /** *

The user name used in the anomalous login attempt.

*/ inline void SetUser(const char* value) { m_userHasBeenSet = true; m_user.assign(value); } /** *

The user name used in the anomalous login attempt.

*/ inline RdsDbUserDetails& WithUser(const Aws::String& value) { SetUser(value); return *this;} /** *

The user name used in the anomalous login attempt.

*/ inline RdsDbUserDetails& WithUser(Aws::String&& value) { SetUser(std::move(value)); return *this;} /** *

The user name used in the anomalous login attempt.

*/ inline RdsDbUserDetails& WithUser(const char* value) { SetUser(value); return *this;} /** *

The application name used in the anomalous login attempt.

*/ inline const Aws::String& GetApplication() const{ return m_application; } /** *

The application name used in the anomalous login attempt.

*/ inline bool ApplicationHasBeenSet() const { return m_applicationHasBeenSet; } /** *

The application name used in the anomalous login attempt.

*/ inline void SetApplication(const Aws::String& value) { m_applicationHasBeenSet = true; m_application = value; } /** *

The application name used in the anomalous login attempt.

*/ inline void SetApplication(Aws::String&& value) { m_applicationHasBeenSet = true; m_application = std::move(value); } /** *

The application name used in the anomalous login attempt.

*/ inline void SetApplication(const char* value) { m_applicationHasBeenSet = true; m_application.assign(value); } /** *

The application name used in the anomalous login attempt.

*/ inline RdsDbUserDetails& WithApplication(const Aws::String& value) { SetApplication(value); return *this;} /** *

The application name used in the anomalous login attempt.

*/ inline RdsDbUserDetails& WithApplication(Aws::String&& value) { SetApplication(std::move(value)); return *this;} /** *

The application name used in the anomalous login attempt.

*/ inline RdsDbUserDetails& WithApplication(const char* value) { SetApplication(value); return *this;} /** *

The name of the database instance involved in the anomalous login * attempt.

*/ inline const Aws::String& GetDatabase() const{ return m_database; } /** *

The name of the database instance involved in the anomalous login * attempt.

*/ inline bool DatabaseHasBeenSet() const { return m_databaseHasBeenSet; } /** *

The name of the database instance involved in the anomalous login * attempt.

*/ inline void SetDatabase(const Aws::String& value) { m_databaseHasBeenSet = true; m_database = value; } /** *

The name of the database instance involved in the anomalous login * attempt.

*/ inline void SetDatabase(Aws::String&& value) { m_databaseHasBeenSet = true; m_database = std::move(value); } /** *

The name of the database instance involved in the anomalous login * attempt.

*/ inline void SetDatabase(const char* value) { m_databaseHasBeenSet = true; m_database.assign(value); } /** *

The name of the database instance involved in the anomalous login * attempt.

*/ inline RdsDbUserDetails& WithDatabase(const Aws::String& value) { SetDatabase(value); return *this;} /** *

The name of the database instance involved in the anomalous login * attempt.

*/ inline RdsDbUserDetails& WithDatabase(Aws::String&& value) { SetDatabase(std::move(value)); return *this;} /** *

The name of the database instance involved in the anomalous login * attempt.

*/ inline RdsDbUserDetails& WithDatabase(const char* value) { SetDatabase(value); return *this;} /** *

The version of the Secure Socket Layer (SSL) used for the network.

*/ inline const Aws::String& GetSsl() const{ return m_ssl; } /** *

The version of the Secure Socket Layer (SSL) used for the network.

*/ inline bool SslHasBeenSet() const { return m_sslHasBeenSet; } /** *

The version of the Secure Socket Layer (SSL) used for the network.

*/ inline void SetSsl(const Aws::String& value) { m_sslHasBeenSet = true; m_ssl = value; } /** *

The version of the Secure Socket Layer (SSL) used for the network.

*/ inline void SetSsl(Aws::String&& value) { m_sslHasBeenSet = true; m_ssl = std::move(value); } /** *

The version of the Secure Socket Layer (SSL) used for the network.

*/ inline void SetSsl(const char* value) { m_sslHasBeenSet = true; m_ssl.assign(value); } /** *

The version of the Secure Socket Layer (SSL) used for the network.

*/ inline RdsDbUserDetails& WithSsl(const Aws::String& value) { SetSsl(value); return *this;} /** *

The version of the Secure Socket Layer (SSL) used for the network.

*/ inline RdsDbUserDetails& WithSsl(Aws::String&& value) { SetSsl(std::move(value)); return *this;} /** *

The version of the Secure Socket Layer (SSL) used for the network.

*/ inline RdsDbUserDetails& WithSsl(const char* value) { SetSsl(value); return *this;} /** *

The authentication method used by the user involved in the finding.

*/ inline const Aws::String& GetAuthMethod() const{ return m_authMethod; } /** *

The authentication method used by the user involved in the finding.

*/ inline bool AuthMethodHasBeenSet() const { return m_authMethodHasBeenSet; } /** *

The authentication method used by the user involved in the finding.

*/ inline void SetAuthMethod(const Aws::String& value) { m_authMethodHasBeenSet = true; m_authMethod = value; } /** *

The authentication method used by the user involved in the finding.

*/ inline void SetAuthMethod(Aws::String&& value) { m_authMethodHasBeenSet = true; m_authMethod = std::move(value); } /** *

The authentication method used by the user involved in the finding.

*/ inline void SetAuthMethod(const char* value) { m_authMethodHasBeenSet = true; m_authMethod.assign(value); } /** *

The authentication method used by the user involved in the finding.

*/ inline RdsDbUserDetails& WithAuthMethod(const Aws::String& value) { SetAuthMethod(value); return *this;} /** *

The authentication method used by the user involved in the finding.

*/ inline RdsDbUserDetails& WithAuthMethod(Aws::String&& value) { SetAuthMethod(std::move(value)); return *this;} /** *

The authentication method used by the user involved in the finding.

*/ inline RdsDbUserDetails& WithAuthMethod(const char* value) { SetAuthMethod(value); return *this;} private: Aws::String m_user; bool m_userHasBeenSet = false; Aws::String m_application; bool m_applicationHasBeenSet = false; Aws::String m_database; bool m_databaseHasBeenSet = false; Aws::String m_ssl; bool m_sslHasBeenSet = false; Aws::String m_authMethod; bool m_authMethodHasBeenSet = false; }; } // namespace Model } // namespace GuardDuty } // namespace Aws