AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Network.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/securityhub/model/NetworkDirection.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/securityhub/model/PortRange.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 SecurityHub
24{
25namespace Model
26{
27
34 class Network
35 {
36 public:
37 AWS_SECURITYHUB_API Network();
38 AWS_SECURITYHUB_API Network(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SECURITYHUB_API Network& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const NetworkDirection& GetDirection() const{ return m_direction; }
48 inline bool DirectionHasBeenSet() const { return m_directionHasBeenSet; }
49 inline void SetDirection(const NetworkDirection& value) { m_directionHasBeenSet = true; m_direction = value; }
50 inline void SetDirection(NetworkDirection&& value) { m_directionHasBeenSet = true; m_direction = std::move(value); }
51 inline Network& WithDirection(const NetworkDirection& value) { SetDirection(value); return *this;}
52 inline Network& WithDirection(NetworkDirection&& value) { SetDirection(std::move(value)); return *this;}
54
56
60 inline const Aws::String& GetProtocol() const{ return m_protocol; }
61 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
62 inline void SetProtocol(const Aws::String& value) { m_protocolHasBeenSet = true; m_protocol = value; }
63 inline void SetProtocol(Aws::String&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
64 inline void SetProtocol(const char* value) { m_protocolHasBeenSet = true; m_protocol.assign(value); }
65 inline Network& WithProtocol(const Aws::String& value) { SetProtocol(value); return *this;}
66 inline Network& WithProtocol(Aws::String&& value) { SetProtocol(std::move(value)); return *this;}
67 inline Network& WithProtocol(const char* value) { SetProtocol(value); return *this;}
69
71
74 inline const PortRange& GetOpenPortRange() const{ return m_openPortRange; }
75 inline bool OpenPortRangeHasBeenSet() const { return m_openPortRangeHasBeenSet; }
76 inline void SetOpenPortRange(const PortRange& value) { m_openPortRangeHasBeenSet = true; m_openPortRange = value; }
77 inline void SetOpenPortRange(PortRange&& value) { m_openPortRangeHasBeenSet = true; m_openPortRange = std::move(value); }
78 inline Network& WithOpenPortRange(const PortRange& value) { SetOpenPortRange(value); return *this;}
79 inline Network& WithOpenPortRange(PortRange&& value) { SetOpenPortRange(std::move(value)); return *this;}
81
83
86 inline const Aws::String& GetSourceIpV4() const{ return m_sourceIpV4; }
87 inline bool SourceIpV4HasBeenSet() const { return m_sourceIpV4HasBeenSet; }
88 inline void SetSourceIpV4(const Aws::String& value) { m_sourceIpV4HasBeenSet = true; m_sourceIpV4 = value; }
89 inline void SetSourceIpV4(Aws::String&& value) { m_sourceIpV4HasBeenSet = true; m_sourceIpV4 = std::move(value); }
90 inline void SetSourceIpV4(const char* value) { m_sourceIpV4HasBeenSet = true; m_sourceIpV4.assign(value); }
91 inline Network& WithSourceIpV4(const Aws::String& value) { SetSourceIpV4(value); return *this;}
92 inline Network& WithSourceIpV4(Aws::String&& value) { SetSourceIpV4(std::move(value)); return *this;}
93 inline Network& WithSourceIpV4(const char* value) { SetSourceIpV4(value); return *this;}
95
97
100 inline const Aws::String& GetSourceIpV6() const{ return m_sourceIpV6; }
101 inline bool SourceIpV6HasBeenSet() const { return m_sourceIpV6HasBeenSet; }
102 inline void SetSourceIpV6(const Aws::String& value) { m_sourceIpV6HasBeenSet = true; m_sourceIpV6 = value; }
103 inline void SetSourceIpV6(Aws::String&& value) { m_sourceIpV6HasBeenSet = true; m_sourceIpV6 = std::move(value); }
104 inline void SetSourceIpV6(const char* value) { m_sourceIpV6HasBeenSet = true; m_sourceIpV6.assign(value); }
105 inline Network& WithSourceIpV6(const Aws::String& value) { SetSourceIpV6(value); return *this;}
106 inline Network& WithSourceIpV6(Aws::String&& value) { SetSourceIpV6(std::move(value)); return *this;}
107 inline Network& WithSourceIpV6(const char* value) { SetSourceIpV6(value); return *this;}
109
111
114 inline int GetSourcePort() const{ return m_sourcePort; }
115 inline bool SourcePortHasBeenSet() const { return m_sourcePortHasBeenSet; }
116 inline void SetSourcePort(int value) { m_sourcePortHasBeenSet = true; m_sourcePort = value; }
117 inline Network& WithSourcePort(int value) { SetSourcePort(value); return *this;}
119
121
125 inline const Aws::String& GetSourceDomain() const{ return m_sourceDomain; }
126 inline bool SourceDomainHasBeenSet() const { return m_sourceDomainHasBeenSet; }
127 inline void SetSourceDomain(const Aws::String& value) { m_sourceDomainHasBeenSet = true; m_sourceDomain = value; }
128 inline void SetSourceDomain(Aws::String&& value) { m_sourceDomainHasBeenSet = true; m_sourceDomain = std::move(value); }
129 inline void SetSourceDomain(const char* value) { m_sourceDomainHasBeenSet = true; m_sourceDomain.assign(value); }
130 inline Network& WithSourceDomain(const Aws::String& value) { SetSourceDomain(value); return *this;}
131 inline Network& WithSourceDomain(Aws::String&& value) { SetSourceDomain(std::move(value)); return *this;}
132 inline Network& WithSourceDomain(const char* value) { SetSourceDomain(value); return *this;}
134
136
140 inline const Aws::String& GetSourceMac() const{ return m_sourceMac; }
141 inline bool SourceMacHasBeenSet() const { return m_sourceMacHasBeenSet; }
142 inline void SetSourceMac(const Aws::String& value) { m_sourceMacHasBeenSet = true; m_sourceMac = value; }
143 inline void SetSourceMac(Aws::String&& value) { m_sourceMacHasBeenSet = true; m_sourceMac = std::move(value); }
144 inline void SetSourceMac(const char* value) { m_sourceMacHasBeenSet = true; m_sourceMac.assign(value); }
145 inline Network& WithSourceMac(const Aws::String& value) { SetSourceMac(value); return *this;}
146 inline Network& WithSourceMac(Aws::String&& value) { SetSourceMac(std::move(value)); return *this;}
147 inline Network& WithSourceMac(const char* value) { SetSourceMac(value); return *this;}
149
151
155 inline const Aws::String& GetDestinationIpV4() const{ return m_destinationIpV4; }
156 inline bool DestinationIpV4HasBeenSet() const { return m_destinationIpV4HasBeenSet; }
157 inline void SetDestinationIpV4(const Aws::String& value) { m_destinationIpV4HasBeenSet = true; m_destinationIpV4 = value; }
158 inline void SetDestinationIpV4(Aws::String&& value) { m_destinationIpV4HasBeenSet = true; m_destinationIpV4 = std::move(value); }
159 inline void SetDestinationIpV4(const char* value) { m_destinationIpV4HasBeenSet = true; m_destinationIpV4.assign(value); }
160 inline Network& WithDestinationIpV4(const Aws::String& value) { SetDestinationIpV4(value); return *this;}
161 inline Network& WithDestinationIpV4(Aws::String&& value) { SetDestinationIpV4(std::move(value)); return *this;}
162 inline Network& WithDestinationIpV4(const char* value) { SetDestinationIpV4(value); return *this;}
164
166
170 inline const Aws::String& GetDestinationIpV6() const{ return m_destinationIpV6; }
171 inline bool DestinationIpV6HasBeenSet() const { return m_destinationIpV6HasBeenSet; }
172 inline void SetDestinationIpV6(const Aws::String& value) { m_destinationIpV6HasBeenSet = true; m_destinationIpV6 = value; }
173 inline void SetDestinationIpV6(Aws::String&& value) { m_destinationIpV6HasBeenSet = true; m_destinationIpV6 = std::move(value); }
174 inline void SetDestinationIpV6(const char* value) { m_destinationIpV6HasBeenSet = true; m_destinationIpV6.assign(value); }
175 inline Network& WithDestinationIpV6(const Aws::String& value) { SetDestinationIpV6(value); return *this;}
176 inline Network& WithDestinationIpV6(Aws::String&& value) { SetDestinationIpV6(std::move(value)); return *this;}
177 inline Network& WithDestinationIpV6(const char* value) { SetDestinationIpV6(value); return *this;}
179
181
184 inline int GetDestinationPort() const{ return m_destinationPort; }
185 inline bool DestinationPortHasBeenSet() const { return m_destinationPortHasBeenSet; }
186 inline void SetDestinationPort(int value) { m_destinationPortHasBeenSet = true; m_destinationPort = value; }
187 inline Network& WithDestinationPort(int value) { SetDestinationPort(value); return *this;}
189
191
195 inline const Aws::String& GetDestinationDomain() const{ return m_destinationDomain; }
196 inline bool DestinationDomainHasBeenSet() const { return m_destinationDomainHasBeenSet; }
197 inline void SetDestinationDomain(const Aws::String& value) { m_destinationDomainHasBeenSet = true; m_destinationDomain = value; }
198 inline void SetDestinationDomain(Aws::String&& value) { m_destinationDomainHasBeenSet = true; m_destinationDomain = std::move(value); }
199 inline void SetDestinationDomain(const char* value) { m_destinationDomainHasBeenSet = true; m_destinationDomain.assign(value); }
200 inline Network& WithDestinationDomain(const Aws::String& value) { SetDestinationDomain(value); return *this;}
201 inline Network& WithDestinationDomain(Aws::String&& value) { SetDestinationDomain(std::move(value)); return *this;}
202 inline Network& WithDestinationDomain(const char* value) { SetDestinationDomain(value); return *this;}
204 private:
205
206 NetworkDirection m_direction;
207 bool m_directionHasBeenSet = false;
208
209 Aws::String m_protocol;
210 bool m_protocolHasBeenSet = false;
211
212 PortRange m_openPortRange;
213 bool m_openPortRangeHasBeenSet = false;
214
215 Aws::String m_sourceIpV4;
216 bool m_sourceIpV4HasBeenSet = false;
217
218 Aws::String m_sourceIpV6;
219 bool m_sourceIpV6HasBeenSet = false;
220
221 int m_sourcePort;
222 bool m_sourcePortHasBeenSet = false;
223
224 Aws::String m_sourceDomain;
225 bool m_sourceDomainHasBeenSet = false;
226
227 Aws::String m_sourceMac;
228 bool m_sourceMacHasBeenSet = false;
229
230 Aws::String m_destinationIpV4;
231 bool m_destinationIpV4HasBeenSet = false;
232
233 Aws::String m_destinationIpV6;
234 bool m_destinationIpV6HasBeenSet = false;
235
236 int m_destinationPort;
237 bool m_destinationPortHasBeenSet = false;
238
239 Aws::String m_destinationDomain;
240 bool m_destinationDomainHasBeenSet = false;
241 };
242
243} // namespace Model
244} // namespace SecurityHub
245} // namespace Aws
void SetDestinationDomain(Aws::String &&value)
Definition Network.h:198
void SetSourceIpV6(Aws::String &&value)
Definition Network.h:103
const Aws::String & GetDestinationIpV6() const
Definition Network.h:170
void SetSourceIpV6(const Aws::String &value)
Definition Network.h:102
const Aws::String & GetDestinationDomain() const
Definition Network.h:195
Network & WithSourceMac(Aws::String &&value)
Definition Network.h:146
void SetSourceMac(const Aws::String &value)
Definition Network.h:142
Network & WithProtocol(const char *value)
Definition Network.h:67
void SetSourceDomain(Aws::String &&value)
Definition Network.h:128
bool SourceDomainHasBeenSet() const
Definition Network.h:126
void SetSourceMac(const char *value)
Definition Network.h:144
Network & WithDestinationIpV4(const Aws::String &value)
Definition Network.h:160
Network & WithDestinationPort(int value)
Definition Network.h:187
Network & WithSourceMac(const Aws::String &value)
Definition Network.h:145
void SetDestinationIpV4(const char *value)
Definition Network.h:159
Network & WithProtocol(Aws::String &&value)
Definition Network.h:66
void SetDestinationIpV6(const Aws::String &value)
Definition Network.h:172
void SetDestinationIpV4(Aws::String &&value)
Definition Network.h:158
void SetDestinationIpV6(const char *value)
Definition Network.h:174
const NetworkDirection & GetDirection() const
Definition Network.h:47
void SetDestinationIpV4(const Aws::String &value)
Definition Network.h:157
void SetDestinationDomain(const char *value)
Definition Network.h:199
void SetSourceDomain(const char *value)
Definition Network.h:129
const Aws::String & GetSourceMac() const
Definition Network.h:140
Network & WithDestinationIpV4(const char *value)
Definition Network.h:162
Network & WithSourceMac(const char *value)
Definition Network.h:147
Network & WithOpenPortRange(const PortRange &value)
Definition Network.h:78
Network & WithSourceDomain(const char *value)
Definition Network.h:132
void SetDirection(NetworkDirection &&value)
Definition Network.h:50
const Aws::String & GetDestinationIpV4() const
Definition Network.h:155
void SetSourceIpV4(const char *value)
Definition Network.h:90
void SetSourceIpV4(const Aws::String &value)
Definition Network.h:88
Network & WithDirection(const NetworkDirection &value)
Definition Network.h:51
void SetSourceDomain(const Aws::String &value)
Definition Network.h:127
void SetOpenPortRange(PortRange &&value)
Definition Network.h:77
Network & WithDestinationIpV6(const Aws::String &value)
Definition Network.h:175
const Aws::String & GetSourceIpV4() const
Definition Network.h:86
void SetDestinationDomain(const Aws::String &value)
Definition Network.h:197
void SetProtocol(Aws::String &&value)
Definition Network.h:63
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
Network & WithDestinationIpV4(Aws::String &&value)
Definition Network.h:161
bool DestinationDomainHasBeenSet() const
Definition Network.h:196
Network & WithSourceIpV4(Aws::String &&value)
Definition Network.h:92
void SetSourceIpV6(const char *value)
Definition Network.h:104
Network & WithSourceIpV6(const char *value)
Definition Network.h:107
void SetOpenPortRange(const PortRange &value)
Definition Network.h:76
void SetProtocol(const Aws::String &value)
Definition Network.h:62
bool DestinationIpV6HasBeenSet() const
Definition Network.h:171
void SetDirection(const NetworkDirection &value)
Definition Network.h:49
AWS_SECURITYHUB_API Network & operator=(Aws::Utils::Json::JsonView jsonValue)
Network & WithSourceIpV4(const Aws::String &value)
Definition Network.h:91
bool DestinationPortHasBeenSet() const
Definition Network.h:185
Network & WithSourceIpV4(const char *value)
Definition Network.h:93
Network & WithDestinationIpV6(const char *value)
Definition Network.h:177
Network & WithProtocol(const Aws::String &value)
Definition Network.h:65
const Aws::String & GetSourceDomain() const
Definition Network.h:125
Network & WithDestinationDomain(const Aws::String &value)
Definition Network.h:200
const PortRange & GetOpenPortRange() const
Definition Network.h:74
void SetDestinationPort(int value)
Definition Network.h:186
Network & WithDestinationIpV6(Aws::String &&value)
Definition Network.h:176
Network & WithDestinationDomain(const char *value)
Definition Network.h:202
bool OpenPortRangeHasBeenSet() const
Definition Network.h:75
const Aws::String & GetProtocol() const
Definition Network.h:60
Network & WithOpenPortRange(PortRange &&value)
Definition Network.h:79
Network & WithSourceIpV6(const Aws::String &value)
Definition Network.h:105
Network & WithSourcePort(int value)
Definition Network.h:117
void SetDestinationIpV6(Aws::String &&value)
Definition Network.h:173
const Aws::String & GetSourceIpV6() const
Definition Network.h:100
Network & WithSourceDomain(const Aws::String &value)
Definition Network.h:130
bool DestinationIpV4HasBeenSet() const
Definition Network.h:156
Network & WithSourceDomain(Aws::String &&value)
Definition Network.h:131
AWS_SECURITYHUB_API Network(Aws::Utils::Json::JsonView jsonValue)
Network & WithDestinationDomain(Aws::String &&value)
Definition Network.h:201
bool SourceIpV4HasBeenSet() const
Definition Network.h:87
void SetProtocol(const char *value)
Definition Network.h:64
void SetSourcePort(int value)
Definition Network.h:116
Network & WithSourceIpV6(Aws::String &&value)
Definition Network.h:106
void SetSourceIpV4(Aws::String &&value)
Definition Network.h:89
void SetSourceMac(Aws::String &&value)
Definition Network.h:143
AWS_SECURITYHUB_API Network()
Network & WithDirection(NetworkDirection &&value)
Definition Network.h:52
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue