AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
NetworkConnectionAction.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/guardduty/model/LocalPortDetails.h>
10#include <aws/guardduty/model/LocalIpDetails.h>
11#include <aws/guardduty/model/RemoteIpDetails.h>
12#include <aws/guardduty/model/RemotePortDetails.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 GuardDuty
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_GUARDDUTY_API NetworkConnectionAction();
42 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline bool GetBlocked() const{ return m_blocked; }
50 inline bool BlockedHasBeenSet() const { return m_blockedHasBeenSet; }
51 inline void SetBlocked(bool value) { m_blockedHasBeenSet = true; m_blocked = value; }
52 inline NetworkConnectionAction& WithBlocked(bool value) { SetBlocked(value); return *this;}
54
56
59 inline const Aws::String& GetConnectionDirection() const{ return m_connectionDirection; }
60 inline bool ConnectionDirectionHasBeenSet() const { return m_connectionDirectionHasBeenSet; }
61 inline void SetConnectionDirection(const Aws::String& value) { m_connectionDirectionHasBeenSet = true; m_connectionDirection = value; }
62 inline void SetConnectionDirection(Aws::String&& value) { m_connectionDirectionHasBeenSet = true; m_connectionDirection = std::move(value); }
63 inline void SetConnectionDirection(const char* value) { m_connectionDirectionHasBeenSet = true; m_connectionDirection.assign(value); }
65 inline NetworkConnectionAction& WithConnectionDirection(Aws::String&& value) { SetConnectionDirection(std::move(value)); return *this;}
66 inline NetworkConnectionAction& WithConnectionDirection(const char* value) { SetConnectionDirection(value); return *this;}
68
70
73 inline const LocalPortDetails& GetLocalPortDetails() const{ return m_localPortDetails; }
74 inline bool LocalPortDetailsHasBeenSet() const { return m_localPortDetailsHasBeenSet; }
75 inline void SetLocalPortDetails(const LocalPortDetails& value) { m_localPortDetailsHasBeenSet = true; m_localPortDetails = value; }
76 inline void SetLocalPortDetails(LocalPortDetails&& value) { m_localPortDetailsHasBeenSet = true; m_localPortDetails = std::move(value); }
78 inline NetworkConnectionAction& WithLocalPortDetails(LocalPortDetails&& value) { SetLocalPortDetails(std::move(value)); return *this;}
80
82
85 inline const Aws::String& GetProtocol() const{ return m_protocol; }
86 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
87 inline void SetProtocol(const Aws::String& value) { m_protocolHasBeenSet = true; m_protocol = value; }
88 inline void SetProtocol(Aws::String&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
89 inline void SetProtocol(const char* value) { m_protocolHasBeenSet = true; m_protocol.assign(value); }
90 inline NetworkConnectionAction& WithProtocol(const Aws::String& value) { SetProtocol(value); return *this;}
91 inline NetworkConnectionAction& WithProtocol(Aws::String&& value) { SetProtocol(std::move(value)); return *this;}
92 inline NetworkConnectionAction& WithProtocol(const char* value) { SetProtocol(value); return *this;}
94
96
99 inline const LocalIpDetails& GetLocalIpDetails() const{ return m_localIpDetails; }
100 inline bool LocalIpDetailsHasBeenSet() const { return m_localIpDetailsHasBeenSet; }
101 inline void SetLocalIpDetails(const LocalIpDetails& value) { m_localIpDetailsHasBeenSet = true; m_localIpDetails = value; }
102 inline void SetLocalIpDetails(LocalIpDetails&& value) { m_localIpDetailsHasBeenSet = true; m_localIpDetails = std::move(value); }
103 inline NetworkConnectionAction& WithLocalIpDetails(const LocalIpDetails& value) { SetLocalIpDetails(value); return *this;}
104 inline NetworkConnectionAction& WithLocalIpDetails(LocalIpDetails&& value) { SetLocalIpDetails(std::move(value)); return *this;}
106
108
112 inline const Aws::String& GetLocalNetworkInterface() const{ return m_localNetworkInterface; }
113 inline bool LocalNetworkInterfaceHasBeenSet() const { return m_localNetworkInterfaceHasBeenSet; }
114 inline void SetLocalNetworkInterface(const Aws::String& value) { m_localNetworkInterfaceHasBeenSet = true; m_localNetworkInterface = value; }
115 inline void SetLocalNetworkInterface(Aws::String&& value) { m_localNetworkInterfaceHasBeenSet = true; m_localNetworkInterface = std::move(value); }
116 inline void SetLocalNetworkInterface(const char* value) { m_localNetworkInterfaceHasBeenSet = true; m_localNetworkInterface.assign(value); }
119 inline NetworkConnectionAction& WithLocalNetworkInterface(const char* value) { SetLocalNetworkInterface(value); return *this;}
121
123
126 inline const RemoteIpDetails& GetRemoteIpDetails() const{ return m_remoteIpDetails; }
127 inline bool RemoteIpDetailsHasBeenSet() const { return m_remoteIpDetailsHasBeenSet; }
128 inline void SetRemoteIpDetails(const RemoteIpDetails& value) { m_remoteIpDetailsHasBeenSet = true; m_remoteIpDetails = value; }
129 inline void SetRemoteIpDetails(RemoteIpDetails&& value) { m_remoteIpDetailsHasBeenSet = true; m_remoteIpDetails = std::move(value); }
131 inline NetworkConnectionAction& WithRemoteIpDetails(RemoteIpDetails&& value) { SetRemoteIpDetails(std::move(value)); return *this;}
133
135
138 inline const RemotePortDetails& GetRemotePortDetails() const{ return m_remotePortDetails; }
139 inline bool RemotePortDetailsHasBeenSet() const { return m_remotePortDetailsHasBeenSet; }
140 inline void SetRemotePortDetails(const RemotePortDetails& value) { m_remotePortDetailsHasBeenSet = true; m_remotePortDetails = value; }
141 inline void SetRemotePortDetails(RemotePortDetails&& value) { m_remotePortDetailsHasBeenSet = true; m_remotePortDetails = std::move(value); }
143 inline NetworkConnectionAction& WithRemotePortDetails(RemotePortDetails&& value) { SetRemotePortDetails(std::move(value)); return *this;}
145 private:
146
147 bool m_blocked;
148 bool m_blockedHasBeenSet = false;
149
150 Aws::String m_connectionDirection;
151 bool m_connectionDirectionHasBeenSet = false;
152
153 LocalPortDetails m_localPortDetails;
154 bool m_localPortDetailsHasBeenSet = false;
155
156 Aws::String m_protocol;
157 bool m_protocolHasBeenSet = false;
158
159 LocalIpDetails m_localIpDetails;
160 bool m_localIpDetailsHasBeenSet = false;
161
162 Aws::String m_localNetworkInterface;
163 bool m_localNetworkInterfaceHasBeenSet = false;
164
165 RemoteIpDetails m_remoteIpDetails;
166 bool m_remoteIpDetailsHasBeenSet = false;
167
168 RemotePortDetails m_remotePortDetails;
169 bool m_remotePortDetailsHasBeenSet = false;
170 };
171
172} // namespace Model
173} // namespace GuardDuty
174} // namespace Aws
NetworkConnectionAction & WithLocalPortDetails(const LocalPortDetails &value)
void SetRemotePortDetails(const RemotePortDetails &value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
NetworkConnectionAction & WithConnectionDirection(const Aws::String &value)
NetworkConnectionAction & WithRemotePortDetails(RemotePortDetails &&value)
const RemotePortDetails & GetRemotePortDetails() const
NetworkConnectionAction & WithProtocol(Aws::String &&value)
NetworkConnectionAction & WithConnectionDirection(const char *value)
AWS_GUARDDUTY_API NetworkConnectionAction(Aws::Utils::Json::JsonView jsonValue)
NetworkConnectionAction & WithRemotePortDetails(const RemotePortDetails &value)
NetworkConnectionAction & WithLocalIpDetails(LocalIpDetails &&value)
NetworkConnectionAction & WithLocalIpDetails(const LocalIpDetails &value)
NetworkConnectionAction & WithRemoteIpDetails(const RemoteIpDetails &value)
void SetLocalPortDetails(const LocalPortDetails &value)
NetworkConnectionAction & WithLocalNetworkInterface(const Aws::String &value)
NetworkConnectionAction & WithProtocol(const char *value)
NetworkConnectionAction & WithConnectionDirection(Aws::String &&value)
NetworkConnectionAction & WithBlocked(bool value)
AWS_GUARDDUTY_API NetworkConnectionAction & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRemoteIpDetails(const RemoteIpDetails &value)
NetworkConnectionAction & WithRemoteIpDetails(RemoteIpDetails &&value)
NetworkConnectionAction & WithLocalNetworkInterface(Aws::String &&value)
NetworkConnectionAction & WithProtocol(const Aws::String &value)
NetworkConnectionAction & WithLocalNetworkInterface(const char *value)
NetworkConnectionAction & WithLocalPortDetails(LocalPortDetails &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue