AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
RdsLoginAttemptAction.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/guardduty/model/RemoteIpDetails.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/guardduty/model/LoginAttribute.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace GuardDuty
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_GUARDDUTY_API RdsLoginAttemptAction() = default;
40 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
45 inline const RemoteIpDetails& GetRemoteIpDetails() const { return m_remoteIpDetails; }
46 inline bool RemoteIpDetailsHasBeenSet() const { return m_remoteIpDetailsHasBeenSet; }
47 template<typename RemoteIpDetailsT = RemoteIpDetails>
48 void SetRemoteIpDetails(RemoteIpDetailsT&& value) { m_remoteIpDetailsHasBeenSet = true; m_remoteIpDetails = std::forward<RemoteIpDetailsT>(value); }
49 template<typename RemoteIpDetailsT = RemoteIpDetails>
50 RdsLoginAttemptAction& WithRemoteIpDetails(RemoteIpDetailsT&& value) { SetRemoteIpDetails(std::forward<RemoteIpDetailsT>(value)); return *this;}
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) { m_loginAttributesHasBeenSet = true; m_loginAttributes = std::forward<LoginAttributesT>(value); }
61 template<typename LoginAttributesT = Aws::Vector<LoginAttribute>>
62 RdsLoginAttemptAction& WithLoginAttributes(LoginAttributesT&& value) { SetLoginAttributes(std::forward<LoginAttributesT>(value)); return *this;}
63 template<typename LoginAttributesT = LoginAttribute>
64 RdsLoginAttemptAction& AddLoginAttributes(LoginAttributesT&& value) { m_loginAttributesHasBeenSet = true; m_loginAttributes.emplace_back(std::forward<LoginAttributesT>(value)); return *this; }
66 private:
67
68 RemoteIpDetails m_remoteIpDetails;
69 bool m_remoteIpDetailsHasBeenSet = false;
70
71 Aws::Vector<LoginAttribute> m_loginAttributes;
72 bool m_loginAttributesHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace GuardDuty
77} // 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