AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename UserT = Aws::String>
47 void SetUser(UserT&& value) { m_userHasBeenSet = true; m_user = std::forward<UserT>(value); }
48 template<typename UserT = Aws::String>
49 LoginAttribute& WithUser(UserT&& value) { SetUser(std::forward<UserT>(value)); return *this;}
51
53
56 inline const Aws::String& GetApplication() const { return m_application; }
57 inline bool ApplicationHasBeenSet() const { return m_applicationHasBeenSet; }
58 template<typename ApplicationT = Aws::String>
59 void SetApplication(ApplicationT&& value) { m_applicationHasBeenSet = true; m_application = std::forward<ApplicationT>(value); }
60 template<typename ApplicationT = Aws::String>
61 LoginAttribute& WithApplication(ApplicationT&& value) { SetApplication(std::forward<ApplicationT>(value)); return *this;}
63
65
69 inline int GetFailedLoginAttempts() const { return m_failedLoginAttempts; }
70 inline bool FailedLoginAttemptsHasBeenSet() const { return m_failedLoginAttemptsHasBeenSet; }
71 inline void SetFailedLoginAttempts(int value) { m_failedLoginAttemptsHasBeenSet = true; m_failedLoginAttempts = value; }
72 inline LoginAttribute& WithFailedLoginAttempts(int value) { SetFailedLoginAttempts(value); return *this;}
74
76
80 inline int GetSuccessfulLoginAttempts() const { return m_successfulLoginAttempts; }
81 inline bool SuccessfulLoginAttemptsHasBeenSet() const { return m_successfulLoginAttemptsHasBeenSet; }
82 inline void SetSuccessfulLoginAttempts(int value) { m_successfulLoginAttemptsHasBeenSet = true; m_successfulLoginAttempts = value; }
83 inline LoginAttribute& WithSuccessfulLoginAttempts(int value) { SetSuccessfulLoginAttempts(value); return *this;}
85 private:
86
87 Aws::String m_user;
88 bool m_userHasBeenSet = false;
89
90 Aws::String m_application;
91 bool m_applicationHasBeenSet = false;
92
93 int m_failedLoginAttempts{0};
94 bool m_failedLoginAttemptsHasBeenSet = false;
95
96 int m_successfulLoginAttempts{0};
97 bool m_successfulLoginAttemptsHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace GuardDuty
102} // namespace Aws
const Aws::String & GetApplication() const
LoginAttribute & WithApplication(ApplicationT &&value)
AWS_GUARDDUTY_API LoginAttribute & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
LoginAttribute & WithUser(UserT &&value)
void SetApplication(ApplicationT &&value)
AWS_GUARDDUTY_API LoginAttribute(Aws::Utils::Json::JsonView jsonValue)
LoginAttribute & WithSuccessfulLoginAttempts(int value)
AWS_GUARDDUTY_API LoginAttribute()=default
const Aws::String & GetUser() const
LoginAttribute & WithFailedLoginAttempts(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue