AWS SDK for C++  1.9.104
AWS SDK for C++
Action.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22  class JsonView;
23 } // namespace Json
24 } // namespace Utils
25 namespace GuardDuty
26 {
27 namespace Model
28 {
29 
36  {
37  public:
38  Action();
42 
43 
47  inline const Aws::String& GetActionType() const{ return m_actionType; }
48 
52  inline bool ActionTypeHasBeenSet() const { return m_actionTypeHasBeenSet; }
53 
57  inline void SetActionType(const Aws::String& value) { m_actionTypeHasBeenSet = true; m_actionType = value; }
58 
62  inline void SetActionType(Aws::String&& value) { m_actionTypeHasBeenSet = true; m_actionType = std::move(value); }
63 
67  inline void SetActionType(const char* value) { m_actionTypeHasBeenSet = true; m_actionType.assign(value); }
68 
72  inline Action& WithActionType(const Aws::String& value) { SetActionType(value); return *this;}
73 
77  inline Action& WithActionType(Aws::String&& value) { SetActionType(std::move(value)); return *this;}
78 
82  inline Action& WithActionType(const char* value) { SetActionType(value); return *this;}
83 
84 
88  inline const AwsApiCallAction& GetAwsApiCallAction() const{ return m_awsApiCallAction; }
89 
93  inline bool AwsApiCallActionHasBeenSet() const { return m_awsApiCallActionHasBeenSet; }
94 
98  inline void SetAwsApiCallAction(const AwsApiCallAction& value) { m_awsApiCallActionHasBeenSet = true; m_awsApiCallAction = value; }
99 
103  inline void SetAwsApiCallAction(AwsApiCallAction&& value) { m_awsApiCallActionHasBeenSet = true; m_awsApiCallAction = std::move(value); }
104 
108  inline Action& WithAwsApiCallAction(const AwsApiCallAction& value) { SetAwsApiCallAction(value); return *this;}
109 
113  inline Action& WithAwsApiCallAction(AwsApiCallAction&& value) { SetAwsApiCallAction(std::move(value)); return *this;}
114 
115 
119  inline const DnsRequestAction& GetDnsRequestAction() const{ return m_dnsRequestAction; }
120 
124  inline bool DnsRequestActionHasBeenSet() const { return m_dnsRequestActionHasBeenSet; }
125 
129  inline void SetDnsRequestAction(const DnsRequestAction& value) { m_dnsRequestActionHasBeenSet = true; m_dnsRequestAction = value; }
130 
134  inline void SetDnsRequestAction(DnsRequestAction&& value) { m_dnsRequestActionHasBeenSet = true; m_dnsRequestAction = std::move(value); }
135 
139  inline Action& WithDnsRequestAction(const DnsRequestAction& value) { SetDnsRequestAction(value); return *this;}
140 
144  inline Action& WithDnsRequestAction(DnsRequestAction&& value) { SetDnsRequestAction(std::move(value)); return *this;}
145 
146 
151  inline const NetworkConnectionAction& GetNetworkConnectionAction() const{ return m_networkConnectionAction; }
152 
157  inline bool NetworkConnectionActionHasBeenSet() const { return m_networkConnectionActionHasBeenSet; }
158 
163  inline void SetNetworkConnectionAction(const NetworkConnectionAction& value) { m_networkConnectionActionHasBeenSet = true; m_networkConnectionAction = value; }
164 
169  inline void SetNetworkConnectionAction(NetworkConnectionAction&& value) { m_networkConnectionActionHasBeenSet = true; m_networkConnectionAction = std::move(value); }
170 
175  inline Action& WithNetworkConnectionAction(const NetworkConnectionAction& value) { SetNetworkConnectionAction(value); return *this;}
176 
181  inline Action& WithNetworkConnectionAction(NetworkConnectionAction&& value) { SetNetworkConnectionAction(std::move(value)); return *this;}
182 
183 
187  inline const PortProbeAction& GetPortProbeAction() const{ return m_portProbeAction; }
188 
192  inline bool PortProbeActionHasBeenSet() const { return m_portProbeActionHasBeenSet; }
193 
197  inline void SetPortProbeAction(const PortProbeAction& value) { m_portProbeActionHasBeenSet = true; m_portProbeAction = value; }
198 
202  inline void SetPortProbeAction(PortProbeAction&& value) { m_portProbeActionHasBeenSet = true; m_portProbeAction = std::move(value); }
203 
207  inline Action& WithPortProbeAction(const PortProbeAction& value) { SetPortProbeAction(value); return *this;}
208 
212  inline Action& WithPortProbeAction(PortProbeAction&& value) { SetPortProbeAction(std::move(value)); return *this;}
213 
214  private:
215 
216  Aws::String m_actionType;
217  bool m_actionTypeHasBeenSet;
218 
219  AwsApiCallAction m_awsApiCallAction;
220  bool m_awsApiCallActionHasBeenSet;
221 
222  DnsRequestAction m_dnsRequestAction;
223  bool m_dnsRequestActionHasBeenSet;
224 
225  NetworkConnectionAction m_networkConnectionAction;
226  bool m_networkConnectionActionHasBeenSet;
227 
228  PortProbeAction m_portProbeAction;
229  bool m_portProbeActionHasBeenSet;
230  };
231 
232 } // namespace Model
233 } // namespace GuardDuty
234 } // namespace Aws
Aws::GuardDuty::Model::NetworkConnectionAction
Definition: NetworkConnectionAction.h:37
Aws::GuardDuty::Model::Action::AwsApiCallActionHasBeenSet
bool AwsApiCallActionHasBeenSet() const
Definition: Action.h:93
Aws::GuardDuty::Model::PortProbeAction
Definition: PortProbeAction.h:34
AwsApiCallAction.h
Aws::GuardDuty::Model::Action::ActionTypeHasBeenSet
bool ActionTypeHasBeenSet() const
Definition: Action.h:52
Aws::GuardDuty::Model::Action::WithActionType
Action & WithActionType(const Aws::String &value)
Definition: Action.h:72
Aws::GuardDuty::Model::Action::WithNetworkConnectionAction
Action & WithNetworkConnectionAction(const NetworkConnectionAction &value)
Definition: Action.h:175
Aws::GuardDuty::Model::Action::SetNetworkConnectionAction
void SetNetworkConnectionAction(const NetworkConnectionAction &value)
Definition: Action.h:163
Aws::GuardDuty::Model::Action::WithActionType
Action & WithActionType(const char *value)
Definition: Action.h:82
Aws::GuardDuty::Model::Action::PortProbeActionHasBeenSet
bool PortProbeActionHasBeenSet() const
Definition: Action.h:192
Aws::GuardDuty::Model::Action::SetPortProbeAction
void SetPortProbeAction(const PortProbeAction &value)
Definition: Action.h:197
Aws::GuardDuty::Model::Action::SetActionType
void SetActionType(const char *value)
Definition: Action.h:67
Aws::GuardDuty::Model::Action::Action
Action(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::Action::Action
Action()
Aws::GuardDuty::Model::Action::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GuardDuty::Model::Action::GetAwsApiCallAction
const AwsApiCallAction & GetAwsApiCallAction() const
Definition: Action.h:88
Aws::GuardDuty::Model::Action::DnsRequestActionHasBeenSet
bool DnsRequestActionHasBeenSet() const
Definition: Action.h:124
Aws::GuardDuty::Model::Action::SetActionType
void SetActionType(Aws::String &&value)
Definition: Action.h:62
Aws::GuardDuty::Model::Action::WithDnsRequestAction
Action & WithDnsRequestAction(DnsRequestAction &&value)
Definition: Action.h:144
Aws::GuardDuty::Model::DnsRequestAction
Definition: DnsRequestAction.h:33
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::Action::SetAwsApiCallAction
void SetAwsApiCallAction(AwsApiCallAction &&value)
Definition: Action.h:103
Aws::GuardDuty::Model::Action::WithAwsApiCallAction
Action & WithAwsApiCallAction(AwsApiCallAction &&value)
Definition: Action.h:113
Aws::GuardDuty::Model::Action::WithActionType
Action & WithActionType(Aws::String &&value)
Definition: Action.h:77
Aws::GuardDuty::Model::Action::SetDnsRequestAction
void SetDnsRequestAction(const DnsRequestAction &value)
Definition: Action.h:129
Aws::GuardDuty::Model::Action::GetNetworkConnectionAction
const NetworkConnectionAction & GetNetworkConnectionAction() const
Definition: Action.h:151
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::Action::WithPortProbeAction
Action & WithPortProbeAction(const PortProbeAction &value)
Definition: Action.h:207
Aws::GuardDuty::Model::Action::SetNetworkConnectionAction
void SetNetworkConnectionAction(NetworkConnectionAction &&value)
Definition: Action.h:169
Aws::GuardDuty::Model::Action::SetDnsRequestAction
void SetDnsRequestAction(DnsRequestAction &&value)
Definition: Action.h:134
Aws::GuardDuty::Model::Action::GetDnsRequestAction
const DnsRequestAction & GetDnsRequestAction() const
Definition: Action.h:119
NetworkConnectionAction.h
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::GuardDuty::Model::Action::WithAwsApiCallAction
Action & WithAwsApiCallAction(const AwsApiCallAction &value)
Definition: Action.h:108
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::GuardDuty::Model::Action::SetActionType
void SetActionType(const Aws::String &value)
Definition: Action.h:57
DnsRequestAction.h
Aws::GuardDuty::Model::Action
Definition: Action.h:36
Aws::GuardDuty::Model::Action::NetworkConnectionActionHasBeenSet
bool NetworkConnectionActionHasBeenSet() const
Definition: Action.h:157
Aws::GuardDuty::Model::Action::SetPortProbeAction
void SetPortProbeAction(PortProbeAction &&value)
Definition: Action.h:202
Aws
Definition: AccessManagementClient.h:15
Aws::GuardDuty::Model::Action::GetPortProbeAction
const PortProbeAction & GetPortProbeAction() const
Definition: Action.h:187
Aws::GuardDuty::Model::Action::GetActionType
const Aws::String & GetActionType() const
Definition: Action.h:47
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::Model::Action::WithPortProbeAction
Action & WithPortProbeAction(PortProbeAction &&value)
Definition: Action.h:212
Aws::GuardDuty::Model::Action::SetAwsApiCallAction
void SetAwsApiCallAction(const AwsApiCallAction &value)
Definition: Action.h:98
Aws::GuardDuty::Model::Action::WithDnsRequestAction
Action & WithDnsRequestAction(const DnsRequestAction &value)
Definition: Action.h:139
Aws::GuardDuty::Model::Action::operator=
Action & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::AwsApiCallAction
Definition: AwsApiCallAction.h:34
Aws::GuardDuty::Model::Action::WithNetworkConnectionAction
Action & WithNetworkConnectionAction(NetworkConnectionAction &&value)
Definition: Action.h:181
PortProbeAction.h