AWS SDK for C++  1.9.131
AWS SDK for C++
Network.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace SecurityHub
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
46  inline const NetworkDirection& GetDirection() const{ return m_direction; }
47 
51  inline bool DirectionHasBeenSet() const { return m_directionHasBeenSet; }
52 
56  inline void SetDirection(const NetworkDirection& value) { m_directionHasBeenSet = true; m_direction = value; }
57 
61  inline void SetDirection(NetworkDirection&& value) { m_directionHasBeenSet = true; m_direction = std::move(value); }
62 
66  inline Network& WithDirection(const NetworkDirection& value) { SetDirection(value); return *this;}
67 
71  inline Network& WithDirection(NetworkDirection&& value) { SetDirection(std::move(value)); return *this;}
72 
73 
77  inline const Aws::String& GetProtocol() const{ return m_protocol; }
78 
82  inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
83 
87  inline void SetProtocol(const Aws::String& value) { m_protocolHasBeenSet = true; m_protocol = value; }
88 
92  inline void SetProtocol(Aws::String&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
93 
97  inline void SetProtocol(const char* value) { m_protocolHasBeenSet = true; m_protocol.assign(value); }
98 
102  inline Network& WithProtocol(const Aws::String& value) { SetProtocol(value); return *this;}
103 
107  inline Network& WithProtocol(Aws::String&& value) { SetProtocol(std::move(value)); return *this;}
108 
112  inline Network& WithProtocol(const char* value) { SetProtocol(value); return *this;}
113 
114 
118  inline const PortRange& GetOpenPortRange() const{ return m_openPortRange; }
119 
123  inline bool OpenPortRangeHasBeenSet() const { return m_openPortRangeHasBeenSet; }
124 
128  inline void SetOpenPortRange(const PortRange& value) { m_openPortRangeHasBeenSet = true; m_openPortRange = value; }
129 
133  inline void SetOpenPortRange(PortRange&& value) { m_openPortRangeHasBeenSet = true; m_openPortRange = std::move(value); }
134 
138  inline Network& WithOpenPortRange(const PortRange& value) { SetOpenPortRange(value); return *this;}
139 
143  inline Network& WithOpenPortRange(PortRange&& value) { SetOpenPortRange(std::move(value)); return *this;}
144 
145 
149  inline const Aws::String& GetSourceIpV4() const{ return m_sourceIpV4; }
150 
154  inline bool SourceIpV4HasBeenSet() const { return m_sourceIpV4HasBeenSet; }
155 
159  inline void SetSourceIpV4(const Aws::String& value) { m_sourceIpV4HasBeenSet = true; m_sourceIpV4 = value; }
160 
164  inline void SetSourceIpV4(Aws::String&& value) { m_sourceIpV4HasBeenSet = true; m_sourceIpV4 = std::move(value); }
165 
169  inline void SetSourceIpV4(const char* value) { m_sourceIpV4HasBeenSet = true; m_sourceIpV4.assign(value); }
170 
174  inline Network& WithSourceIpV4(const Aws::String& value) { SetSourceIpV4(value); return *this;}
175 
179  inline Network& WithSourceIpV4(Aws::String&& value) { SetSourceIpV4(std::move(value)); return *this;}
180 
184  inline Network& WithSourceIpV4(const char* value) { SetSourceIpV4(value); return *this;}
185 
186 
190  inline const Aws::String& GetSourceIpV6() const{ return m_sourceIpV6; }
191 
195  inline bool SourceIpV6HasBeenSet() const { return m_sourceIpV6HasBeenSet; }
196 
200  inline void SetSourceIpV6(const Aws::String& value) { m_sourceIpV6HasBeenSet = true; m_sourceIpV6 = value; }
201 
205  inline void SetSourceIpV6(Aws::String&& value) { m_sourceIpV6HasBeenSet = true; m_sourceIpV6 = std::move(value); }
206 
210  inline void SetSourceIpV6(const char* value) { m_sourceIpV6HasBeenSet = true; m_sourceIpV6.assign(value); }
211 
215  inline Network& WithSourceIpV6(const Aws::String& value) { SetSourceIpV6(value); return *this;}
216 
220  inline Network& WithSourceIpV6(Aws::String&& value) { SetSourceIpV6(std::move(value)); return *this;}
221 
225  inline Network& WithSourceIpV6(const char* value) { SetSourceIpV6(value); return *this;}
226 
227 
231  inline int GetSourcePort() const{ return m_sourcePort; }
232 
236  inline bool SourcePortHasBeenSet() const { return m_sourcePortHasBeenSet; }
237 
241  inline void SetSourcePort(int value) { m_sourcePortHasBeenSet = true; m_sourcePort = value; }
242 
246  inline Network& WithSourcePort(int value) { SetSourcePort(value); return *this;}
247 
248 
252  inline const Aws::String& GetSourceDomain() const{ return m_sourceDomain; }
253 
257  inline bool SourceDomainHasBeenSet() const { return m_sourceDomainHasBeenSet; }
258 
262  inline void SetSourceDomain(const Aws::String& value) { m_sourceDomainHasBeenSet = true; m_sourceDomain = value; }
263 
267  inline void SetSourceDomain(Aws::String&& value) { m_sourceDomainHasBeenSet = true; m_sourceDomain = std::move(value); }
268 
272  inline void SetSourceDomain(const char* value) { m_sourceDomainHasBeenSet = true; m_sourceDomain.assign(value); }
273 
277  inline Network& WithSourceDomain(const Aws::String& value) { SetSourceDomain(value); return *this;}
278 
282  inline Network& WithSourceDomain(Aws::String&& value) { SetSourceDomain(std::move(value)); return *this;}
283 
287  inline Network& WithSourceDomain(const char* value) { SetSourceDomain(value); return *this;}
288 
289 
294  inline const Aws::String& GetSourceMac() const{ return m_sourceMac; }
295 
300  inline bool SourceMacHasBeenSet() const { return m_sourceMacHasBeenSet; }
301 
306  inline void SetSourceMac(const Aws::String& value) { m_sourceMacHasBeenSet = true; m_sourceMac = value; }
307 
312  inline void SetSourceMac(Aws::String&& value) { m_sourceMacHasBeenSet = true; m_sourceMac = std::move(value); }
313 
318  inline void SetSourceMac(const char* value) { m_sourceMacHasBeenSet = true; m_sourceMac.assign(value); }
319 
324  inline Network& WithSourceMac(const Aws::String& value) { SetSourceMac(value); return *this;}
325 
330  inline Network& WithSourceMac(Aws::String&& value) { SetSourceMac(std::move(value)); return *this;}
331 
336  inline Network& WithSourceMac(const char* value) { SetSourceMac(value); return *this;}
337 
338 
343  inline const Aws::String& GetDestinationIpV4() const{ return m_destinationIpV4; }
344 
349  inline bool DestinationIpV4HasBeenSet() const { return m_destinationIpV4HasBeenSet; }
350 
355  inline void SetDestinationIpV4(const Aws::String& value) { m_destinationIpV4HasBeenSet = true; m_destinationIpV4 = value; }
356 
361  inline void SetDestinationIpV4(Aws::String&& value) { m_destinationIpV4HasBeenSet = true; m_destinationIpV4 = std::move(value); }
362 
367  inline void SetDestinationIpV4(const char* value) { m_destinationIpV4HasBeenSet = true; m_destinationIpV4.assign(value); }
368 
373  inline Network& WithDestinationIpV4(const Aws::String& value) { SetDestinationIpV4(value); return *this;}
374 
379  inline Network& WithDestinationIpV4(Aws::String&& value) { SetDestinationIpV4(std::move(value)); return *this;}
380 
385  inline Network& WithDestinationIpV4(const char* value) { SetDestinationIpV4(value); return *this;}
386 
387 
392  inline const Aws::String& GetDestinationIpV6() const{ return m_destinationIpV6; }
393 
398  inline bool DestinationIpV6HasBeenSet() const { return m_destinationIpV6HasBeenSet; }
399 
404  inline void SetDestinationIpV6(const Aws::String& value) { m_destinationIpV6HasBeenSet = true; m_destinationIpV6 = value; }
405 
410  inline void SetDestinationIpV6(Aws::String&& value) { m_destinationIpV6HasBeenSet = true; m_destinationIpV6 = std::move(value); }
411 
416  inline void SetDestinationIpV6(const char* value) { m_destinationIpV6HasBeenSet = true; m_destinationIpV6.assign(value); }
417 
422  inline Network& WithDestinationIpV6(const Aws::String& value) { SetDestinationIpV6(value); return *this;}
423 
428  inline Network& WithDestinationIpV6(Aws::String&& value) { SetDestinationIpV6(std::move(value)); return *this;}
429 
434  inline Network& WithDestinationIpV6(const char* value) { SetDestinationIpV6(value); return *this;}
435 
436 
440  inline int GetDestinationPort() const{ return m_destinationPort; }
441 
445  inline bool DestinationPortHasBeenSet() const { return m_destinationPortHasBeenSet; }
446 
450  inline void SetDestinationPort(int value) { m_destinationPortHasBeenSet = true; m_destinationPort = value; }
451 
455  inline Network& WithDestinationPort(int value) { SetDestinationPort(value); return *this;}
456 
457 
461  inline const Aws::String& GetDestinationDomain() const{ return m_destinationDomain; }
462 
466  inline bool DestinationDomainHasBeenSet() const { return m_destinationDomainHasBeenSet; }
467 
471  inline void SetDestinationDomain(const Aws::String& value) { m_destinationDomainHasBeenSet = true; m_destinationDomain = value; }
472 
476  inline void SetDestinationDomain(Aws::String&& value) { m_destinationDomainHasBeenSet = true; m_destinationDomain = std::move(value); }
477 
481  inline void SetDestinationDomain(const char* value) { m_destinationDomainHasBeenSet = true; m_destinationDomain.assign(value); }
482 
486  inline Network& WithDestinationDomain(const Aws::String& value) { SetDestinationDomain(value); return *this;}
487 
491  inline Network& WithDestinationDomain(Aws::String&& value) { SetDestinationDomain(std::move(value)); return *this;}
492 
496  inline Network& WithDestinationDomain(const char* value) { SetDestinationDomain(value); return *this;}
497 
498  private:
499 
500  NetworkDirection m_direction;
501  bool m_directionHasBeenSet;
502 
503  Aws::String m_protocol;
504  bool m_protocolHasBeenSet;
505 
506  PortRange m_openPortRange;
507  bool m_openPortRangeHasBeenSet;
508 
509  Aws::String m_sourceIpV4;
510  bool m_sourceIpV4HasBeenSet;
511 
512  Aws::String m_sourceIpV6;
513  bool m_sourceIpV6HasBeenSet;
514 
515  int m_sourcePort;
516  bool m_sourcePortHasBeenSet;
517 
518  Aws::String m_sourceDomain;
519  bool m_sourceDomainHasBeenSet;
520 
521  Aws::String m_sourceMac;
522  bool m_sourceMacHasBeenSet;
523 
524  Aws::String m_destinationIpV4;
525  bool m_destinationIpV4HasBeenSet;
526 
527  Aws::String m_destinationIpV6;
528  bool m_destinationIpV6HasBeenSet;
529 
530  int m_destinationPort;
531  bool m_destinationPortHasBeenSet;
532 
533  Aws::String m_destinationDomain;
534  bool m_destinationDomainHasBeenSet;
535  };
536 
537 } // namespace Model
538 } // namespace SecurityHub
539 } // namespace Aws
Aws::SecurityHub::Model::Network::GetDestinationPort
int GetDestinationPort() const
Definition: Network.h:440
Aws::SecurityHub::Model::Network::SetDirection
void SetDirection(NetworkDirection &&value)
Definition: Network.h:61
Aws::SecurityHub::Model::Network::WithOpenPortRange
Network & WithOpenPortRange(PortRange &&value)
Definition: Network.h:143
Aws::SecurityHub::Model::Network::SetSourceIpV6
void SetSourceIpV6(Aws::String &&value)
Definition: Network.h:205
Aws::SecurityHub::Model::Network::WithSourceIpV4
Network & WithSourceIpV4(Aws::String &&value)
Definition: Network.h:179
Aws::SecurityHub::Model::Network::SetSourceIpV6
void SetSourceIpV6(const char *value)
Definition: Network.h:210
Aws::SecurityHub::Model::Network::WithSourceIpV6
Network & WithSourceIpV6(const Aws::String &value)
Definition: Network.h:215
Aws::SecurityHub::Model::Network::SourceDomainHasBeenSet
bool SourceDomainHasBeenSet() const
Definition: Network.h:257
PortRange.h
Aws::SecurityHub::Model::Network::SetProtocol
void SetProtocol(Aws::String &&value)
Definition: Network.h:92
Aws::SecurityHub::Model::Network::WithProtocol
Network & WithProtocol(Aws::String &&value)
Definition: Network.h:107
Aws::SecurityHub::Model::Network::WithSourceDomain
Network & WithSourceDomain(Aws::String &&value)
Definition: Network.h:282
Aws::SecurityHub::Model::Network::WithDestinationIpV4
Network & WithDestinationIpV4(Aws::String &&value)
Definition: Network.h:379
Aws::SecurityHub::Model::Network::GetSourcePort
int GetSourcePort() const
Definition: Network.h:231
Aws::SecurityHub::Model::Network::WithSourceIpV4
Network & WithSourceIpV4(const Aws::String &value)
Definition: Network.h:174
Aws::SecurityHub::Model::Network::GetProtocol
const Aws::String & GetProtocol() const
Definition: Network.h:77
Aws::SecurityHub::Model::Network::SourceIpV4HasBeenSet
bool SourceIpV4HasBeenSet() const
Definition: Network.h:154
Aws::SecurityHub::Model::Network::SetSourceDomain
void SetSourceDomain(const Aws::String &value)
Definition: Network.h:262
Aws::SecurityHub::Model::Network::SetSourcePort
void SetSourcePort(int value)
Definition: Network.h:241
Aws::SecurityHub::Model::Network::GetDestinationIpV6
const Aws::String & GetDestinationIpV6() const
Definition: Network.h:392
Aws::SecurityHub::Model::Network::SetSourceDomain
void SetSourceDomain(Aws::String &&value)
Definition: Network.h:267
Aws::SecurityHub::Model::Network::WithSourceDomain
Network & WithSourceDomain(const Aws::String &value)
Definition: Network.h:277
Aws::SecurityHub::Model::Network::Network
Network(Aws::Utils::Json::JsonView jsonValue)
Aws::SecurityHub::Model::Network::WithSourceMac
Network & WithSourceMac(Aws::String &&value)
Definition: Network.h:330
Aws::SecurityHub::Model::Network
Definition: Network.h:35
Aws::SecurityHub::Model::Network::GetDestinationDomain
const Aws::String & GetDestinationDomain() const
Definition: Network.h:461
Aws::SecurityHub::Model::Network::GetSourceIpV6
const Aws::String & GetSourceIpV6() const
Definition: Network.h:190
Aws::SecurityHub::Model::Network::DestinationDomainHasBeenSet
bool DestinationDomainHasBeenSet() const
Definition: Network.h:466
Aws::SecurityHub::Model::Network::WithSourceDomain
Network & WithSourceDomain(const char *value)
Definition: Network.h:287
Aws::SecurityHub::Model::Network::WithSourceMac
Network & WithSourceMac(const Aws::String &value)
Definition: Network.h:324
Aws::SecurityHub::Model::Network::SetDestinationIpV4
void SetDestinationIpV4(Aws::String &&value)
Definition: Network.h:361
Aws::SecurityHub::Model::Network::WithSourceMac
Network & WithSourceMac(const char *value)
Definition: Network.h:336
Aws::SecurityHub::Model::Network::SetProtocol
void SetProtocol(const Aws::String &value)
Definition: Network.h:87
Aws::SecurityHub::Model::Network::operator=
Network & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::SecurityHub::Model::Network::SetDestinationIpV6
void SetDestinationIpV6(const Aws::String &value)
Definition: Network.h:404
Aws::SecurityHub::Model::Network::SetSourceMac
void SetSourceMac(const Aws::String &value)
Definition: Network.h:306
AWS_SECURITYHUB_API
#define AWS_SECURITYHUB_API
Definition: SecurityHub_EXPORTS.h:28
Aws::SecurityHub::Model::Network::GetSourceMac
const Aws::String & GetSourceMac() const
Definition: Network.h:294
Aws::SecurityHub::Model::Network::WithDestinationIpV6
Network & WithDestinationIpV6(const Aws::String &value)
Definition: Network.h:422
Aws::SecurityHub::Model::Network::SetSourceIpV6
void SetSourceIpV6(const Aws::String &value)
Definition: Network.h:200
Aws::SecurityHub::Model::Network::WithDirection
Network & WithDirection(NetworkDirection &&value)
Definition: Network.h:71
Aws::SecurityHub::Model::Network::SourceMacHasBeenSet
bool SourceMacHasBeenSet() const
Definition: Network.h:300
Aws::SecurityHub::Model::Network::SetSourceIpV4
void SetSourceIpV4(Aws::String &&value)
Definition: Network.h:164
NetworkDirection.h
Aws::SecurityHub::Model::Network::WithDestinationPort
Network & WithDestinationPort(int value)
Definition: Network.h:455
Aws::SecurityHub::Model::Network::DestinationPortHasBeenSet
bool DestinationPortHasBeenSet() const
Definition: Network.h:445
Aws::SecurityHub::Model::Network::GetDirection
const NetworkDirection & GetDirection() const
Definition: Network.h:46
Aws::SecurityHub::Model::Network::SetSourceMac
void SetSourceMac(const char *value)
Definition: Network.h:318
Aws::SecurityHub::Model::Network::GetSourceIpV4
const Aws::String & GetSourceIpV4() const
Definition: Network.h:149
Aws::SecurityHub::Model::Network::WithDestinationIpV4
Network & WithDestinationIpV4(const char *value)
Definition: Network.h:385
Aws::SecurityHub::Model::Network::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SecurityHub::Model::Network::SetOpenPortRange
void SetOpenPortRange(PortRange &&value)
Definition: Network.h:133
Aws::SecurityHub::Model::Network::WithSourcePort
Network & WithSourcePort(int value)
Definition: Network.h:246
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::SecurityHub::Model::Network::WithDestinationIpV4
Network & WithDestinationIpV4(const Aws::String &value)
Definition: Network.h:373
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SecurityHub::Model::Network::SetDestinationDomain
void SetDestinationDomain(const char *value)
Definition: Network.h:481
Aws::SecurityHub::Model::Network::WithSourceIpV6
Network & WithSourceIpV6(const char *value)
Definition: Network.h:225
Aws::SecurityHub::Model::Network::WithProtocol
Network & WithProtocol(const char *value)
Definition: Network.h:112
Aws::SecurityHub::Model::Network::DestinationIpV6HasBeenSet
bool DestinationIpV6HasBeenSet() const
Definition: Network.h:398
Aws::SecurityHub::Model::Network::WithDestinationDomain
Network & WithDestinationDomain(Aws::String &&value)
Definition: Network.h:491
Aws::SecurityHub::Model::Network::OpenPortRangeHasBeenSet
bool OpenPortRangeHasBeenSet() const
Definition: Network.h:123
Aws::SecurityHub::Model::Network::SetDestinationDomain
void SetDestinationDomain(Aws::String &&value)
Definition: Network.h:476
Aws::SecurityHub::Model::Network::SetSourceIpV4
void SetSourceIpV4(const Aws::String &value)
Definition: Network.h:159
Aws::SecurityHub::Model::Network::WithDirection
Network & WithDirection(const NetworkDirection &value)
Definition: Network.h:66
Aws::SecurityHub::Model::Network::WithOpenPortRange
Network & WithOpenPortRange(const PortRange &value)
Definition: Network.h:138
Aws::SecurityHub::Model::Network::SourceIpV6HasBeenSet
bool SourceIpV6HasBeenSet() const
Definition: Network.h:195
Aws::SecurityHub::Model::Network::DirectionHasBeenSet
bool DirectionHasBeenSet() const
Definition: Network.h:51
Aws::SecurityHub::Model::Network::WithSourceIpV6
Network & WithSourceIpV6(Aws::String &&value)
Definition: Network.h:220
Aws::SecurityHub::Model::Network::SetDestinationPort
void SetDestinationPort(int value)
Definition: Network.h:450
Aws::SecurityHub::Model::Network::DestinationIpV4HasBeenSet
bool DestinationIpV4HasBeenSet() const
Definition: Network.h:349
Aws::SecurityHub::Model::Network::GetDestinationIpV4
const Aws::String & GetDestinationIpV4() const
Definition: Network.h:343
Aws::SecurityHub::Model::Network::WithDestinationIpV6
Network & WithDestinationIpV6(Aws::String &&value)
Definition: Network.h:428
Aws::SecurityHub::Model::Network::ProtocolHasBeenSet
bool ProtocolHasBeenSet() const
Definition: Network.h:82
Aws::SecurityHub::Model::Network::SetOpenPortRange
void SetOpenPortRange(const PortRange &value)
Definition: Network.h:128
Aws
Definition: AccessManagementClient.h:15
Aws::SecurityHub::Model::Network::GetSourceDomain
const Aws::String & GetSourceDomain() const
Definition: Network.h:252
Aws::SecurityHub::Model::Network::WithSourceIpV4
Network & WithSourceIpV4(const char *value)
Definition: Network.h:184
Aws::SecurityHub::Model::Network::GetOpenPortRange
const PortRange & GetOpenPortRange() const
Definition: Network.h:118
Aws::SecurityHub::Model::Network::SetDirection
void SetDirection(const NetworkDirection &value)
Definition: Network.h:56
Aws::SecurityHub::Model::Network::WithProtocol
Network & WithProtocol(const Aws::String &value)
Definition: Network.h:102
Aws::SecurityHub::Model::Network::SetProtocol
void SetProtocol(const char *value)
Definition: Network.h:97
Aws::SecurityHub::Model::Network::SetDestinationIpV4
void SetDestinationIpV4(const Aws::String &value)
Definition: Network.h:355
Aws::SecurityHub::Model::NetworkDirection
NetworkDirection
Definition: NetworkDirection.h:17
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SecurityHub::Model::Network::SetSourceDomain
void SetSourceDomain(const char *value)
Definition: Network.h:272
Aws::SecurityHub::Model::Network::WithDestinationIpV6
Network & WithDestinationIpV6(const char *value)
Definition: Network.h:434
Aws::SecurityHub::Model::Network::Network
Network()
Aws::SecurityHub::Model::Network::SetSourceIpV4
void SetSourceIpV4(const char *value)
Definition: Network.h:169
SecurityHub_EXPORTS.h
Aws::SecurityHub::Model::Network::SourcePortHasBeenSet
bool SourcePortHasBeenSet() const
Definition: Network.h:236
Aws::SecurityHub::Model::Network::WithDestinationDomain
Network & WithDestinationDomain(const char *value)
Definition: Network.h:496
Aws::SecurityHub::Model::Network::SetDestinationIpV6
void SetDestinationIpV6(Aws::String &&value)
Definition: Network.h:410
Aws::SecurityHub::Model::Network::SetDestinationDomain
void SetDestinationDomain(const Aws::String &value)
Definition: Network.h:471
Aws::SecurityHub::Model::Network::WithDestinationDomain
Network & WithDestinationDomain(const Aws::String &value)
Definition: Network.h:486
Aws::SecurityHub::Model::Network::SetDestinationIpV6
void SetDestinationIpV6(const char *value)
Definition: Network.h:416
Aws::SecurityHub::Model::Network::SetDestinationIpV4
void SetDestinationIpV4(const char *value)
Definition: Network.h:367
Aws::SecurityHub::Model::PortRange
Definition: PortRange.h:30
Aws::SecurityHub::Model::Network::SetSourceMac
void SetSourceMac(Aws::String &&value)
Definition: Network.h:312