/** * 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 { /** *

Information about the login attempts.

See Also:

AWS * API Reference

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

Indicates the user name which attempted to log in.

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

Indicates the user name which attempted to log in.

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

Indicates the user name which attempted to log in.

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

Indicates the user name which attempted to log in.

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

Indicates the user name which attempted to log in.

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

Indicates the user name which attempted to log in.

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

Indicates the user name which attempted to log in.

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

Indicates the user name which attempted to log in.

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

Indicates the application name used to attempt log in.

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

Indicates the application name used to attempt log in.

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

Indicates the application name used to attempt log in.

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

Indicates the application name used to attempt log in.

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

Indicates the application name used to attempt log in.

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

Indicates the application name used to attempt log in.

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

Indicates the application name used to attempt log in.

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

Indicates the application name used to attempt log in.

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

Represents the sum of failed (unsuccessful) login attempts made to establish * a connection to the database instance.

*/ inline int GetFailedLoginAttempts() const{ return m_failedLoginAttempts; } /** *

Represents the sum of failed (unsuccessful) login attempts made to establish * a connection to the database instance.

*/ inline bool FailedLoginAttemptsHasBeenSet() const { return m_failedLoginAttemptsHasBeenSet; } /** *

Represents the sum of failed (unsuccessful) login attempts made to establish * a connection to the database instance.

*/ inline void SetFailedLoginAttempts(int value) { m_failedLoginAttemptsHasBeenSet = true; m_failedLoginAttempts = value; } /** *

Represents the sum of failed (unsuccessful) login attempts made to establish * a connection to the database instance.

*/ inline LoginAttribute& WithFailedLoginAttempts(int value) { SetFailedLoginAttempts(value); return *this;} /** *

Represents the sum of successful connections (a correct combination of login * attributes) made to the database instance by the actor.

*/ inline int GetSuccessfulLoginAttempts() const{ return m_successfulLoginAttempts; } /** *

Represents the sum of successful connections (a correct combination of login * attributes) made to the database instance by the actor.

*/ inline bool SuccessfulLoginAttemptsHasBeenSet() const { return m_successfulLoginAttemptsHasBeenSet; } /** *

Represents the sum of successful connections (a correct combination of login * attributes) made to the database instance by the actor.

*/ inline void SetSuccessfulLoginAttempts(int value) { m_successfulLoginAttemptsHasBeenSet = true; m_successfulLoginAttempts = value; } /** *

Represents the sum of successful connections (a correct combination of login * attributes) made to the database instance by the actor.

*/ inline LoginAttribute& WithSuccessfulLoginAttempts(int value) { SetSuccessfulLoginAttempts(value); return *this;} private: Aws::String m_user; bool m_userHasBeenSet = false; Aws::String m_application; bool m_applicationHasBeenSet = false; int m_failedLoginAttempts; bool m_failedLoginAttemptsHasBeenSet = false; int m_successfulLoginAttempts; bool m_successfulLoginAttemptsHasBeenSet = false; }; } // namespace Model } // namespace GuardDuty } // namespace Aws