AWS SDK for C++  1.9.104
AWS SDK for C++
NetworkConnectionAction.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 
37  {
38  public:
43 
44 
48  inline bool GetBlocked() const{ return m_blocked; }
49 
53  inline bool BlockedHasBeenSet() const { return m_blockedHasBeenSet; }
54 
58  inline void SetBlocked(bool value) { m_blockedHasBeenSet = true; m_blocked = value; }
59 
63  inline NetworkConnectionAction& WithBlocked(bool value) { SetBlocked(value); return *this;}
64 
65 
69  inline const Aws::String& GetConnectionDirection() const{ return m_connectionDirection; }
70 
74  inline bool ConnectionDirectionHasBeenSet() const { return m_connectionDirectionHasBeenSet; }
75 
79  inline void SetConnectionDirection(const Aws::String& value) { m_connectionDirectionHasBeenSet = true; m_connectionDirection = value; }
80 
84  inline void SetConnectionDirection(Aws::String&& value) { m_connectionDirectionHasBeenSet = true; m_connectionDirection = std::move(value); }
85 
89  inline void SetConnectionDirection(const char* value) { m_connectionDirectionHasBeenSet = true; m_connectionDirection.assign(value); }
90 
94  inline NetworkConnectionAction& WithConnectionDirection(const Aws::String& value) { SetConnectionDirection(value); return *this;}
95 
99  inline NetworkConnectionAction& WithConnectionDirection(Aws::String&& value) { SetConnectionDirection(std::move(value)); return *this;}
100 
104  inline NetworkConnectionAction& WithConnectionDirection(const char* value) { SetConnectionDirection(value); return *this;}
105 
106 
110  inline const LocalPortDetails& GetLocalPortDetails() const{ return m_localPortDetails; }
111 
115  inline bool LocalPortDetailsHasBeenSet() const { return m_localPortDetailsHasBeenSet; }
116 
120  inline void SetLocalPortDetails(const LocalPortDetails& value) { m_localPortDetailsHasBeenSet = true; m_localPortDetails = value; }
121 
125  inline void SetLocalPortDetails(LocalPortDetails&& value) { m_localPortDetailsHasBeenSet = true; m_localPortDetails = std::move(value); }
126 
130  inline NetworkConnectionAction& WithLocalPortDetails(const LocalPortDetails& value) { SetLocalPortDetails(value); return *this;}
131 
135  inline NetworkConnectionAction& WithLocalPortDetails(LocalPortDetails&& value) { SetLocalPortDetails(std::move(value)); return *this;}
136 
137 
141  inline const Aws::String& GetProtocol() const{ return m_protocol; }
142 
146  inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
147 
151  inline void SetProtocol(const Aws::String& value) { m_protocolHasBeenSet = true; m_protocol = value; }
152 
156  inline void SetProtocol(Aws::String&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
157 
161  inline void SetProtocol(const char* value) { m_protocolHasBeenSet = true; m_protocol.assign(value); }
162 
166  inline NetworkConnectionAction& WithProtocol(const Aws::String& value) { SetProtocol(value); return *this;}
167 
171  inline NetworkConnectionAction& WithProtocol(Aws::String&& value) { SetProtocol(std::move(value)); return *this;}
172 
176  inline NetworkConnectionAction& WithProtocol(const char* value) { SetProtocol(value); return *this;}
177 
178 
182  inline const LocalIpDetails& GetLocalIpDetails() const{ return m_localIpDetails; }
183 
187  inline bool LocalIpDetailsHasBeenSet() const { return m_localIpDetailsHasBeenSet; }
188 
192  inline void SetLocalIpDetails(const LocalIpDetails& value) { m_localIpDetailsHasBeenSet = true; m_localIpDetails = value; }
193 
197  inline void SetLocalIpDetails(LocalIpDetails&& value) { m_localIpDetailsHasBeenSet = true; m_localIpDetails = std::move(value); }
198 
202  inline NetworkConnectionAction& WithLocalIpDetails(const LocalIpDetails& value) { SetLocalIpDetails(value); return *this;}
203 
207  inline NetworkConnectionAction& WithLocalIpDetails(LocalIpDetails&& value) { SetLocalIpDetails(std::move(value)); return *this;}
208 
209 
213  inline const RemoteIpDetails& GetRemoteIpDetails() const{ return m_remoteIpDetails; }
214 
218  inline bool RemoteIpDetailsHasBeenSet() const { return m_remoteIpDetailsHasBeenSet; }
219 
223  inline void SetRemoteIpDetails(const RemoteIpDetails& value) { m_remoteIpDetailsHasBeenSet = true; m_remoteIpDetails = value; }
224 
228  inline void SetRemoteIpDetails(RemoteIpDetails&& value) { m_remoteIpDetailsHasBeenSet = true; m_remoteIpDetails = std::move(value); }
229 
233  inline NetworkConnectionAction& WithRemoteIpDetails(const RemoteIpDetails& value) { SetRemoteIpDetails(value); return *this;}
234 
238  inline NetworkConnectionAction& WithRemoteIpDetails(RemoteIpDetails&& value) { SetRemoteIpDetails(std::move(value)); return *this;}
239 
240 
244  inline const RemotePortDetails& GetRemotePortDetails() const{ return m_remotePortDetails; }
245 
249  inline bool RemotePortDetailsHasBeenSet() const { return m_remotePortDetailsHasBeenSet; }
250 
254  inline void SetRemotePortDetails(const RemotePortDetails& value) { m_remotePortDetailsHasBeenSet = true; m_remotePortDetails = value; }
255 
259  inline void SetRemotePortDetails(RemotePortDetails&& value) { m_remotePortDetailsHasBeenSet = true; m_remotePortDetails = std::move(value); }
260 
264  inline NetworkConnectionAction& WithRemotePortDetails(const RemotePortDetails& value) { SetRemotePortDetails(value); return *this;}
265 
269  inline NetworkConnectionAction& WithRemotePortDetails(RemotePortDetails&& value) { SetRemotePortDetails(std::move(value)); return *this;}
270 
271  private:
272 
273  bool m_blocked;
274  bool m_blockedHasBeenSet;
275 
276  Aws::String m_connectionDirection;
277  bool m_connectionDirectionHasBeenSet;
278 
279  LocalPortDetails m_localPortDetails;
280  bool m_localPortDetailsHasBeenSet;
281 
282  Aws::String m_protocol;
283  bool m_protocolHasBeenSet;
284 
285  LocalIpDetails m_localIpDetails;
286  bool m_localIpDetailsHasBeenSet;
287 
288  RemoteIpDetails m_remoteIpDetails;
289  bool m_remoteIpDetailsHasBeenSet;
290 
291  RemotePortDetails m_remotePortDetails;
292  bool m_remotePortDetailsHasBeenSet;
293  };
294 
295 } // namespace Model
296 } // namespace GuardDuty
297 } // namespace Aws
Aws::GuardDuty::Model::NetworkConnectionAction::SetRemotePortDetails
void SetRemotePortDetails(const RemotePortDetails &value)
Definition: NetworkConnectionAction.h:254
LocalPortDetails.h
Aws::GuardDuty::Model::NetworkConnectionAction::SetConnectionDirection
void SetConnectionDirection(Aws::String &&value)
Definition: NetworkConnectionAction.h:84
Aws::GuardDuty::Model::NetworkConnectionAction
Definition: NetworkConnectionAction.h:37
Aws::GuardDuty::Model::NetworkConnectionAction::ProtocolHasBeenSet
bool ProtocolHasBeenSet() const
Definition: NetworkConnectionAction.h:146
Aws::GuardDuty::Model::NetworkConnectionAction::SetBlocked
void SetBlocked(bool value)
Definition: NetworkConnectionAction.h:58
Aws::GuardDuty::Model::NetworkConnectionAction::WithRemotePortDetails
NetworkConnectionAction & WithRemotePortDetails(const RemotePortDetails &value)
Definition: NetworkConnectionAction.h:264
Aws::GuardDuty::Model::NetworkConnectionAction::NetworkConnectionAction
NetworkConnectionAction(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::NetworkConnectionAction::SetLocalPortDetails
void SetLocalPortDetails(LocalPortDetails &&value)
Definition: NetworkConnectionAction.h:125
Aws::GuardDuty::Model::NetworkConnectionAction::NetworkConnectionAction
NetworkConnectionAction()
Aws::GuardDuty::Model::NetworkConnectionAction::GetConnectionDirection
const Aws::String & GetConnectionDirection() const
Definition: NetworkConnectionAction.h:69
Aws::GuardDuty::Model::NetworkConnectionAction::WithLocalPortDetails
NetworkConnectionAction & WithLocalPortDetails(LocalPortDetails &&value)
Definition: NetworkConnectionAction.h:135
Aws::GuardDuty::Model::NetworkConnectionAction::WithLocalPortDetails
NetworkConnectionAction & WithLocalPortDetails(const LocalPortDetails &value)
Definition: NetworkConnectionAction.h:130
Aws::GuardDuty::Model::NetworkConnectionAction::WithBlocked
NetworkConnectionAction & WithBlocked(bool value)
Definition: NetworkConnectionAction.h:63
Aws::GuardDuty::Model::NetworkConnectionAction::WithProtocol
NetworkConnectionAction & WithProtocol(const Aws::String &value)
Definition: NetworkConnectionAction.h:166
Aws::GuardDuty::Model::NetworkConnectionAction::SetProtocol
void SetProtocol(const Aws::String &value)
Definition: NetworkConnectionAction.h:151
Aws::GuardDuty::Model::LocalIpDetails
Definition: LocalIpDetails.h:33
Aws::GuardDuty::Model::NetworkConnectionAction::WithConnectionDirection
NetworkConnectionAction & WithConnectionDirection(const char *value)
Definition: NetworkConnectionAction.h:104
Aws::GuardDuty::Model::NetworkConnectionAction::GetLocalPortDetails
const LocalPortDetails & GetLocalPortDetails() const
Definition: NetworkConnectionAction.h:110
Aws::GuardDuty::Model::LocalPortDetails
Definition: LocalPortDetails.h:33
Aws::GuardDuty::Model::NetworkConnectionAction::RemotePortDetailsHasBeenSet
bool RemotePortDetailsHasBeenSet() const
Definition: NetworkConnectionAction.h:249
Aws::GuardDuty::Model::NetworkConnectionAction::WithRemoteIpDetails
NetworkConnectionAction & WithRemoteIpDetails(const RemoteIpDetails &value)
Definition: NetworkConnectionAction.h:233
Aws::GuardDuty::Model::NetworkConnectionAction::SetLocalIpDetails
void SetLocalIpDetails(LocalIpDetails &&value)
Definition: NetworkConnectionAction.h:197
Aws::GuardDuty::Model::NetworkConnectionAction::SetRemoteIpDetails
void SetRemoteIpDetails(const RemoteIpDetails &value)
Definition: NetworkConnectionAction.h:223
Aws::GuardDuty::Model::NetworkConnectionAction::WithRemoteIpDetails
NetworkConnectionAction & WithRemoteIpDetails(RemoteIpDetails &&value)
Definition: NetworkConnectionAction.h:238
Aws::GuardDuty::Model::NetworkConnectionAction::GetLocalIpDetails
const LocalIpDetails & GetLocalIpDetails() const
Definition: NetworkConnectionAction.h:182
Aws::GuardDuty::Model::NetworkConnectionAction::SetProtocol
void SetProtocol(Aws::String &&value)
Definition: NetworkConnectionAction.h:156
Aws::GuardDuty::Model::NetworkConnectionAction::WithRemotePortDetails
NetworkConnectionAction & WithRemotePortDetails(RemotePortDetails &&value)
Definition: NetworkConnectionAction.h:269
Aws::GuardDuty::Model::NetworkConnectionAction::GetBlocked
bool GetBlocked() const
Definition: NetworkConnectionAction.h:48
Aws::GuardDuty::Model::NetworkConnectionAction::LocalPortDetailsHasBeenSet
bool LocalPortDetailsHasBeenSet() const
Definition: NetworkConnectionAction.h:115
Aws::GuardDuty::Model::NetworkConnectionAction::SetLocalIpDetails
void SetLocalIpDetails(const LocalIpDetails &value)
Definition: NetworkConnectionAction.h:192
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::RemotePortDetails
Definition: RemotePortDetails.h:32
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::NetworkConnectionAction::WithLocalIpDetails
NetworkConnectionAction & WithLocalIpDetails(LocalIpDetails &&value)
Definition: NetworkConnectionAction.h:207
Aws::GuardDuty::Model::NetworkConnectionAction::GetRemotePortDetails
const RemotePortDetails & GetRemotePortDetails() const
Definition: NetworkConnectionAction.h:244
Aws::GuardDuty::Model::NetworkConnectionAction::WithLocalIpDetails
NetworkConnectionAction & WithLocalIpDetails(const LocalIpDetails &value)
Definition: NetworkConnectionAction.h:202
RemoteIpDetails.h
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::GuardDuty::Model::NetworkConnectionAction::SetConnectionDirection
void SetConnectionDirection(const Aws::String &value)
Definition: NetworkConnectionAction.h:79
Aws::GuardDuty::Model::NetworkConnectionAction::SetProtocol
void SetProtocol(const char *value)
Definition: NetworkConnectionAction.h:161
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::GuardDuty::Model::NetworkConnectionAction::SetRemoteIpDetails
void SetRemoteIpDetails(RemoteIpDetails &&value)
Definition: NetworkConnectionAction.h:228
Aws::GuardDuty::Model::NetworkConnectionAction::WithProtocol
NetworkConnectionAction & WithProtocol(const char *value)
Definition: NetworkConnectionAction.h:176
Aws::GuardDuty::Model::NetworkConnectionAction::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
LocalIpDetails.h
Aws::GuardDuty::Model::NetworkConnectionAction::RemoteIpDetailsHasBeenSet
bool RemoteIpDetailsHasBeenSet() const
Definition: NetworkConnectionAction.h:218
Aws::GuardDuty::Model::NetworkConnectionAction::WithProtocol
NetworkConnectionAction & WithProtocol(Aws::String &&value)
Definition: NetworkConnectionAction.h:171
Aws::GuardDuty::Model::NetworkConnectionAction::operator=
NetworkConnectionAction & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::RemoteIpDetails
Definition: RemoteIpDetails.h:37
Aws::GuardDuty::Model::NetworkConnectionAction::GetProtocol
const Aws::String & GetProtocol() const
Definition: NetworkConnectionAction.h:141
Aws
Definition: AccessManagementClient.h:15
Aws::GuardDuty::Model::NetworkConnectionAction::SetConnectionDirection
void SetConnectionDirection(const char *value)
Definition: NetworkConnectionAction.h:89
Aws::GuardDuty::Model::NetworkConnectionAction::BlockedHasBeenSet
bool BlockedHasBeenSet() const
Definition: NetworkConnectionAction.h:53
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::Model::NetworkConnectionAction::SetRemotePortDetails
void SetRemotePortDetails(RemotePortDetails &&value)
Definition: NetworkConnectionAction.h:259
Aws::GuardDuty::Model::NetworkConnectionAction::WithConnectionDirection
NetworkConnectionAction & WithConnectionDirection(Aws::String &&value)
Definition: NetworkConnectionAction.h:99
Aws::GuardDuty::Model::NetworkConnectionAction::ConnectionDirectionHasBeenSet
bool ConnectionDirectionHasBeenSet() const
Definition: NetworkConnectionAction.h:74
Aws::GuardDuty::Model::NetworkConnectionAction::SetLocalPortDetails
void SetLocalPortDetails(const LocalPortDetails &value)
Definition: NetworkConnectionAction.h:120
Aws::GuardDuty::Model::NetworkConnectionAction::WithConnectionDirection
NetworkConnectionAction & WithConnectionDirection(const Aws::String &value)
Definition: NetworkConnectionAction.h:94
RemotePortDetails.h
Aws::GuardDuty::Model::NetworkConnectionAction::GetRemoteIpDetails
const RemoteIpDetails & GetRemoteIpDetails() const
Definition: NetworkConnectionAction.h:213
Aws::GuardDuty::Model::NetworkConnectionAction::LocalIpDetailsHasBeenSet
bool LocalIpDetailsHasBeenSet() const
Definition: NetworkConnectionAction.h:187