AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LoginAttribute.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GuardDuty
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_GUARDDUTY_API LoginAttribute();
35 AWS_GUARDDUTY_API LoginAttribute(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetUser() const{ return m_user; }
45 inline bool UserHasBeenSet() const { return m_userHasBeenSet; }
46 inline void SetUser(const Aws::String& value) { m_userHasBeenSet = true; m_user = value; }
47 inline void SetUser(Aws::String&& value) { m_userHasBeenSet = true; m_user = std::move(value); }
48 inline void SetUser(const char* value) { m_userHasBeenSet = true; m_user.assign(value); }
49 inline LoginAttribute& WithUser(const Aws::String& value) { SetUser(value); return *this;}
50 inline LoginAttribute& WithUser(Aws::String&& value) { SetUser(std::move(value)); return *this;}
51 inline LoginAttribute& WithUser(const char* value) { SetUser(value); return *this;}
53
55
58 inline const Aws::String& GetApplication() const{ return m_application; }
59 inline bool ApplicationHasBeenSet() const { return m_applicationHasBeenSet; }
60 inline void SetApplication(const Aws::String& value) { m_applicationHasBeenSet = true; m_application = value; }
61 inline void SetApplication(Aws::String&& value) { m_applicationHasBeenSet = true; m_application = std::move(value); }
62 inline void SetApplication(const char* value) { m_applicationHasBeenSet = true; m_application.assign(value); }
63 inline LoginAttribute& WithApplication(const Aws::String& value) { SetApplication(value); return *this;}
64 inline LoginAttribute& WithApplication(Aws::String&& value) { SetApplication(std::move(value)); return *this;}
65 inline LoginAttribute& WithApplication(const char* value) { SetApplication(value); return *this;}
67
69
73 inline int GetFailedLoginAttempts() const{ return m_failedLoginAttempts; }
74 inline bool FailedLoginAttemptsHasBeenSet() const { return m_failedLoginAttemptsHasBeenSet; }
75 inline void SetFailedLoginAttempts(int value) { m_failedLoginAttemptsHasBeenSet = true; m_failedLoginAttempts = value; }
76 inline LoginAttribute& WithFailedLoginAttempts(int value) { SetFailedLoginAttempts(value); return *this;}
78
80
84 inline int GetSuccessfulLoginAttempts() const{ return m_successfulLoginAttempts; }
85 inline bool SuccessfulLoginAttemptsHasBeenSet() const { return m_successfulLoginAttemptsHasBeenSet; }
86 inline void SetSuccessfulLoginAttempts(int value) { m_successfulLoginAttemptsHasBeenSet = true; m_successfulLoginAttempts = value; }
87 inline LoginAttribute& WithSuccessfulLoginAttempts(int value) { SetSuccessfulLoginAttempts(value); return *this;}
89 private:
90
91 Aws::String m_user;
92 bool m_userHasBeenSet = false;
93
94 Aws::String m_application;
95 bool m_applicationHasBeenSet = false;
96
97 int m_failedLoginAttempts;
98 bool m_failedLoginAttemptsHasBeenSet = false;
99
100 int m_successfulLoginAttempts;
101 bool m_successfulLoginAttemptsHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace GuardDuty
106} // namespace Aws
const Aws::String & GetApplication() const
void SetApplication(Aws::String &&value)
LoginAttribute & WithApplication(Aws::String &&value)
void SetApplication(const char *value)
LoginAttribute & WithApplication(const Aws::String &value)
AWS_GUARDDUTY_API LoginAttribute & operator=(Aws::Utils::Json::JsonView jsonValue)
LoginAttribute & WithUser(const char *value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GUARDDUTY_API LoginAttribute(Aws::Utils::Json::JsonView jsonValue)
void SetApplication(const Aws::String &value)
LoginAttribute & WithSuccessfulLoginAttempts(int value)
LoginAttribute & WithUser(const Aws::String &value)
LoginAttribute & WithApplication(const char *value)
void SetUser(const Aws::String &value)
const Aws::String & GetUser() const
void SetUser(Aws::String &&value)
LoginAttribute & WithFailedLoginAttempts(int value)
LoginAttribute & WithUser(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue