AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Action.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/securityhub/model/NetworkConnectionAction.h>
10#include <aws/securityhub/model/AwsApiCallAction.h>
11#include <aws/securityhub/model/DnsRequestAction.h>
12#include <aws/securityhub/model/PortProbeAction.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace SecurityHub
26{
27namespace Model
28{
29
40 class Action
41 {
42 public:
43 AWS_SECURITYHUB_API Action();
44 AWS_SECURITYHUB_API Action(Aws::Utils::Json::JsonView jsonValue);
45 AWS_SECURITYHUB_API Action& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
56 inline const Aws::String& GetActionType() const{ return m_actionType; }
57 inline bool ActionTypeHasBeenSet() const { return m_actionTypeHasBeenSet; }
58 inline void SetActionType(const Aws::String& value) { m_actionTypeHasBeenSet = true; m_actionType = value; }
59 inline void SetActionType(Aws::String&& value) { m_actionTypeHasBeenSet = true; m_actionType = std::move(value); }
60 inline void SetActionType(const char* value) { m_actionTypeHasBeenSet = true; m_actionType.assign(value); }
61 inline Action& WithActionType(const Aws::String& value) { SetActionType(value); return *this;}
62 inline Action& WithActionType(Aws::String&& value) { SetActionType(std::move(value)); return *this;}
63 inline Action& WithActionType(const char* value) { SetActionType(value); return *this;}
65
67
71 inline const NetworkConnectionAction& GetNetworkConnectionAction() const{ return m_networkConnectionAction; }
72 inline bool NetworkConnectionActionHasBeenSet() const { return m_networkConnectionActionHasBeenSet; }
73 inline void SetNetworkConnectionAction(const NetworkConnectionAction& value) { m_networkConnectionActionHasBeenSet = true; m_networkConnectionAction = value; }
74 inline void SetNetworkConnectionAction(NetworkConnectionAction&& value) { m_networkConnectionActionHasBeenSet = true; m_networkConnectionAction = std::move(value); }
76 inline Action& WithNetworkConnectionAction(NetworkConnectionAction&& value) { SetNetworkConnectionAction(std::move(value)); return *this;}
78
80
84 inline const AwsApiCallAction& GetAwsApiCallAction() const{ return m_awsApiCallAction; }
85 inline bool AwsApiCallActionHasBeenSet() const { return m_awsApiCallActionHasBeenSet; }
86 inline void SetAwsApiCallAction(const AwsApiCallAction& value) { m_awsApiCallActionHasBeenSet = true; m_awsApiCallAction = value; }
87 inline void SetAwsApiCallAction(AwsApiCallAction&& value) { m_awsApiCallActionHasBeenSet = true; m_awsApiCallAction = std::move(value); }
88 inline Action& WithAwsApiCallAction(const AwsApiCallAction& value) { SetAwsApiCallAction(value); return *this;}
89 inline Action& WithAwsApiCallAction(AwsApiCallAction&& value) { SetAwsApiCallAction(std::move(value)); return *this;}
91
93
97 inline const DnsRequestAction& GetDnsRequestAction() const{ return m_dnsRequestAction; }
98 inline bool DnsRequestActionHasBeenSet() const { return m_dnsRequestActionHasBeenSet; }
99 inline void SetDnsRequestAction(const DnsRequestAction& value) { m_dnsRequestActionHasBeenSet = true; m_dnsRequestAction = value; }
100 inline void SetDnsRequestAction(DnsRequestAction&& value) { m_dnsRequestActionHasBeenSet = true; m_dnsRequestAction = std::move(value); }
101 inline Action& WithDnsRequestAction(const DnsRequestAction& value) { SetDnsRequestAction(value); return *this;}
102 inline Action& WithDnsRequestAction(DnsRequestAction&& value) { SetDnsRequestAction(std::move(value)); return *this;}
104
106
110 inline const PortProbeAction& GetPortProbeAction() const{ return m_portProbeAction; }
111 inline bool PortProbeActionHasBeenSet() const { return m_portProbeActionHasBeenSet; }
112 inline void SetPortProbeAction(const PortProbeAction& value) { m_portProbeActionHasBeenSet = true; m_portProbeAction = value; }
113 inline void SetPortProbeAction(PortProbeAction&& value) { m_portProbeActionHasBeenSet = true; m_portProbeAction = std::move(value); }
114 inline Action& WithPortProbeAction(const PortProbeAction& value) { SetPortProbeAction(value); return *this;}
115 inline Action& WithPortProbeAction(PortProbeAction&& value) { SetPortProbeAction(std::move(value)); return *this;}
117 private:
118
119 Aws::String m_actionType;
120 bool m_actionTypeHasBeenSet = false;
121
122 NetworkConnectionAction m_networkConnectionAction;
123 bool m_networkConnectionActionHasBeenSet = false;
124
125 AwsApiCallAction m_awsApiCallAction;
126 bool m_awsApiCallActionHasBeenSet = false;
127
128 DnsRequestAction m_dnsRequestAction;
129 bool m_dnsRequestActionHasBeenSet = false;
130
131 PortProbeAction m_portProbeAction;
132 bool m_portProbeActionHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace SecurityHub
137} // namespace Aws
const DnsRequestAction & GetDnsRequestAction() const
Definition Action.h:97
Action & WithNetworkConnectionAction(NetworkConnectionAction &&value)
Definition Action.h:76
AWS_SECURITYHUB_API Action()
bool AwsApiCallActionHasBeenSet() const
Definition Action.h:85
Action & WithDnsRequestAction(const DnsRequestAction &value)
Definition Action.h:101
bool PortProbeActionHasBeenSet() const
Definition Action.h:111
void SetAwsApiCallAction(const AwsApiCallAction &value)
Definition Action.h:86
void SetNetworkConnectionAction(NetworkConnectionAction &&value)
Definition Action.h:74
void SetDnsRequestAction(const DnsRequestAction &value)
Definition Action.h:99
Action & WithActionType(const char *value)
Definition Action.h:63
Action & WithAwsApiCallAction(AwsApiCallAction &&value)
Definition Action.h:89
void SetActionType(const char *value)
Definition Action.h:60
void SetPortProbeAction(const PortProbeAction &value)
Definition Action.h:112
Action & WithAwsApiCallAction(const AwsApiCallAction &value)
Definition Action.h:88
void SetNetworkConnectionAction(const NetworkConnectionAction &value)
Definition Action.h:73
const NetworkConnectionAction & GetNetworkConnectionAction() const
Definition Action.h:71
void SetActionType(Aws::String &&value)
Definition Action.h:59
Action & WithActionType(Aws::String &&value)
Definition Action.h:62
Action & WithDnsRequestAction(DnsRequestAction &&value)
Definition Action.h:102
Action & WithPortProbeAction(PortProbeAction &&value)
Definition Action.h:115
Action & WithPortProbeAction(const PortProbeAction &value)
Definition Action.h:114
const PortProbeAction & GetPortProbeAction() const
Definition Action.h:110
bool DnsRequestActionHasBeenSet() const
Definition Action.h:98
bool ActionTypeHasBeenSet() const
Definition Action.h:57
const Aws::String & GetActionType() const
Definition Action.h:56
void SetActionType(const Aws::String &value)
Definition Action.h:58
void SetDnsRequestAction(DnsRequestAction &&value)
Definition Action.h:100
AWS_SECURITYHUB_API Action & operator=(Aws::Utils::Json::JsonView jsonValue)
Action & WithNetworkConnectionAction(const NetworkConnectionAction &value)
Definition Action.h:75
Action & WithActionType(const Aws::String &value)
Definition Action.h:61
const AwsApiCallAction & GetAwsApiCallAction() const
Definition Action.h:84
AWS_SECURITYHUB_API Action(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
bool NetworkConnectionActionHasBeenSet() const
Definition Action.h:72
void SetPortProbeAction(PortProbeAction &&value)
Definition Action.h:113
void SetAwsApiCallAction(AwsApiCallAction &&value)
Definition Action.h:87
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue