AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
LoginAttribute.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/guardduty/GuardDuty_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GuardDuty {
20namespace Model {
21
28 public:
29 AWS_GUARDDUTY_API LoginAttribute() = default;
30 AWS_GUARDDUTY_API LoginAttribute(Aws::Utils::Json::JsonView jsonValue);
32 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetUser() const { return m_user; }
39 inline bool UserHasBeenSet() const { return m_userHasBeenSet; }
40 template <typename UserT = Aws::String>
41 void SetUser(UserT&& value) {
42 m_userHasBeenSet = true;
43 m_user = std::forward<UserT>(value);
44 }
45 template <typename UserT = Aws::String>
46 LoginAttribute& WithUser(UserT&& value) {
47 SetUser(std::forward<UserT>(value));
48 return *this;
49 }
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) {
60 m_applicationHasBeenSet = true;
61 m_application = std::forward<ApplicationT>(value);
62 }
63 template <typename ApplicationT = Aws::String>
64 LoginAttribute& WithApplication(ApplicationT&& value) {
65 SetApplication(std::forward<ApplicationT>(value));
66 return *this;
67 }
69
71
75 inline int GetFailedLoginAttempts() const { return m_failedLoginAttempts; }
76 inline bool FailedLoginAttemptsHasBeenSet() const { return m_failedLoginAttemptsHasBeenSet; }
77 inline void SetFailedLoginAttempts(int value) {
78 m_failedLoginAttemptsHasBeenSet = true;
79 m_failedLoginAttempts = value;
80 }
83 return *this;
84 }
86
88
92 inline int GetSuccessfulLoginAttempts() const { return m_successfulLoginAttempts; }
93 inline bool SuccessfulLoginAttemptsHasBeenSet() const { return m_successfulLoginAttemptsHasBeenSet; }
94 inline void SetSuccessfulLoginAttempts(int value) {
95 m_successfulLoginAttemptsHasBeenSet = true;
96 m_successfulLoginAttempts = value;
97 }
100 return *this;
101 }
103 private:
104 Aws::String m_user;
105
106 Aws::String m_application;
107
108 int m_failedLoginAttempts{0};
109
110 int m_successfulLoginAttempts{0};
111 bool m_userHasBeenSet = false;
112 bool m_applicationHasBeenSet = false;
113 bool m_failedLoginAttemptsHasBeenSet = false;
114 bool m_successfulLoginAttemptsHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace GuardDuty
119} // 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