AWS SDK for C++

AWS SDK for C++ Version 1.11.761

Loading...
Searching...
No Matches
RdsLoginAttemptAction.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/guardduty/GuardDuty_EXPORTS.h>
9#include <aws/guardduty/model/LoginAttribute.h>
10#include <aws/guardduty/model/RemoteIpDetails.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GuardDuty {
22namespace Model {
23
31 public:
32 AWS_GUARDDUTY_API RdsLoginAttemptAction() = default;
35 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
39 inline const RemoteIpDetails& GetRemoteIpDetails() const { return m_remoteIpDetails; }
40 inline bool RemoteIpDetailsHasBeenSet() const { return m_remoteIpDetailsHasBeenSet; }
41 template <typename RemoteIpDetailsT = RemoteIpDetails>
42 void SetRemoteIpDetails(RemoteIpDetailsT&& value) {
43 m_remoteIpDetailsHasBeenSet = true;
44 m_remoteIpDetails = std::forward<RemoteIpDetailsT>(value);
45 }
46 template <typename RemoteIpDetailsT = RemoteIpDetails>
47 RdsLoginAttemptAction& WithRemoteIpDetails(RemoteIpDetailsT&& value) {
48 SetRemoteIpDetails(std::forward<RemoteIpDetailsT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Vector<LoginAttribute>& GetLoginAttributes() const { return m_loginAttributes; }
58 inline bool LoginAttributesHasBeenSet() const { return m_loginAttributesHasBeenSet; }
59 template <typename LoginAttributesT = Aws::Vector<LoginAttribute>>
60 void SetLoginAttributes(LoginAttributesT&& value) {
61 m_loginAttributesHasBeenSet = true;
62 m_loginAttributes = std::forward<LoginAttributesT>(value);
63 }
64 template <typename LoginAttributesT = Aws::Vector<LoginAttribute>>
65 RdsLoginAttemptAction& WithLoginAttributes(LoginAttributesT&& value) {
66 SetLoginAttributes(std::forward<LoginAttributesT>(value));
67 return *this;
68 }
69 template <typename LoginAttributesT = LoginAttribute>
70 RdsLoginAttemptAction& AddLoginAttributes(LoginAttributesT&& value) {
71 m_loginAttributesHasBeenSet = true;
72 m_loginAttributes.emplace_back(std::forward<LoginAttributesT>(value));
73 return *this;
74 }
76 private:
77 RemoteIpDetails m_remoteIpDetails;
78
79 Aws::Vector<LoginAttribute> m_loginAttributes;
80 bool m_remoteIpDetailsHasBeenSet = false;
81 bool m_loginAttributesHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace GuardDuty
86} // namespace Aws
AWS_GUARDDUTY_API RdsLoginAttemptAction(Aws::Utils::Json::JsonView jsonValue)
RdsLoginAttemptAction & WithRemoteIpDetails(RemoteIpDetailsT &&value)
void SetLoginAttributes(LoginAttributesT &&value)
AWS_GUARDDUTY_API RdsLoginAttemptAction & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRemoteIpDetails(RemoteIpDetailsT &&value)
AWS_GUARDDUTY_API RdsLoginAttemptAction()=default
RdsLoginAttemptAction & WithLoginAttributes(LoginAttributesT &&value)
const Aws::Vector< LoginAttribute > & GetLoginAttributes() const
RdsLoginAttemptAction & AddLoginAttributes(LoginAttributesT &&value)
const RemoteIpDetails & GetRemoteIpDetails() const
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue