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>
60 template<
typename ProtocolT = Aws::String>
61 void SetProtocol(ProtocolT&& value) { m_protocolHasBeenSet =
true; m_protocol = std::forward<ProtocolT>(value); }
62 template<
typename ProtocolT = Aws::String>
72 template<
typename OpenPortRangeT = PortRange>
73 void SetOpenPortRange(OpenPortRangeT&& value) { m_openPortRangeHasBeenSet =
true; m_openPortRange = std::forward<OpenPortRangeT>(value); }
74 template<
typename OpenPortRangeT = PortRange>
84 template<
typename SourceIpV4T = Aws::String>
85 void SetSourceIpV4(SourceIpV4T&& value) { m_sourceIpV4HasBeenSet =
true; m_sourceIpV4 = std::forward<SourceIpV4T>(value); }
86 template<
typename SourceIpV4T = Aws::String>
96 template<
typename SourceIpV6T = Aws::String>
97 void SetSourceIpV6(SourceIpV6T&& value) { m_sourceIpV6HasBeenSet =
true; m_sourceIpV6 = std::forward<SourceIpV6T>(value); }
98 template<
typename SourceIpV6T = Aws::String>
108 inline void SetSourcePort(
int value) { m_sourcePortHasBeenSet =
true; m_sourcePort = value; }
119 template<
typename SourceDomainT = Aws::String>
120 void SetSourceDomain(SourceDomainT&& value) { m_sourceDomainHasBeenSet =
true; m_sourceDomain = std::forward<SourceDomainT>(value); }
121 template<
typename SourceDomainT = Aws::String>
132 template<
typename SourceMacT = Aws::String>
133 void SetSourceMac(SourceMacT&& value) { m_sourceMacHasBeenSet =
true; m_sourceMac = std::forward<SourceMacT>(value); }
134 template<
typename SourceMacT = Aws::String>
145 template<
typename DestinationIpV4T = Aws::String>
146 void SetDestinationIpV4(DestinationIpV4T&& value) { m_destinationIpV4HasBeenSet =
true; m_destinationIpV4 = std::forward<DestinationIpV4T>(value); }
147 template<
typename DestinationIpV4T = Aws::String>
158 template<
typename DestinationIpV6T = Aws::String>
159 void SetDestinationIpV6(DestinationIpV6T&& value) { m_destinationIpV6HasBeenSet =
true; m_destinationIpV6 = std::forward<DestinationIpV6T>(value); }
160 template<
typename DestinationIpV6T = Aws::String>
170 inline void SetDestinationPort(
int value) { m_destinationPortHasBeenSet =
true; m_destinationPort = value; }
181 template<
typename DestinationDomainT = Aws::String>
182 void SetDestinationDomain(DestinationDomainT&& value) { m_destinationDomainHasBeenSet =
true; m_destinationDomain = std::forward<DestinationDomainT>(value); }
183 template<
typename DestinationDomainT = Aws::String>
189 bool m_directionHasBeenSet =
false;
192 bool m_protocolHasBeenSet =
false;
194 PortRange m_openPortRange;
195 bool m_openPortRangeHasBeenSet =
false;
198 bool m_sourceIpV4HasBeenSet =
false;
201 bool m_sourceIpV6HasBeenSet =
false;
204 bool m_sourcePortHasBeenSet =
false;
207 bool m_sourceDomainHasBeenSet =
false;
210 bool m_sourceMacHasBeenSet =
false;
213 bool m_destinationIpV4HasBeenSet =
false;
216 bool m_destinationIpV6HasBeenSet =
false;
218 int m_destinationPort{0};
219 bool m_destinationPortHasBeenSet =
false;
222 bool m_destinationDomainHasBeenSet =
false;
const Aws::String & GetDestinationIpV6() const
const Aws::String & GetDestinationDomain() const
void SetSourceIpV4(SourceIpV4T &&value)
void SetSourceIpV6(SourceIpV6T &&value)
int GetSourcePort() const
bool SourceDomainHasBeenSet() const
Network & WithProtocol(ProtocolT &&value)
bool DirectionHasBeenSet() const
Network & WithDestinationPort(int value)
void SetDestinationIpV4(DestinationIpV4T &&value)
int GetDestinationPort() const
void SetSourceDomain(SourceDomainT &&value)
bool ProtocolHasBeenSet() const
Network & WithSourceDomain(SourceDomainT &&value)
const Aws::String & GetSourceMac() const
Network & WithSourceIpV4(SourceIpV4T &&value)
const Aws::String & GetDestinationIpV4() const
void SetProtocol(ProtocolT &&value)
Network & WithDestinationIpV4(DestinationIpV4T &&value)
void SetDestinationIpV6(DestinationIpV6T &&value)
Network & WithOpenPortRange(OpenPortRangeT &&value)
NetworkDirection GetDirection() const
AWS_SECURITYHUB_API Network()=default
const Aws::String & GetSourceIpV4() const
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
bool SourceMacHasBeenSet() const
bool DestinationDomainHasBeenSet() const
void SetOpenPortRange(OpenPortRangeT &&value)
bool DestinationIpV6HasBeenSet() const
void SetSourceMac(SourceMacT &&value)
void SetDestinationDomain(DestinationDomainT &&value)
AWS_SECURITYHUB_API Network & operator=(Aws::Utils::Json::JsonView jsonValue)
Network & WithSourceIpV6(SourceIpV6T &&value)
bool DestinationPortHasBeenSet() const
bool SourcePortHasBeenSet() const
void SetDirection(NetworkDirection value)
const Aws::String & GetSourceDomain() const
bool SourceIpV6HasBeenSet() const
const PortRange & GetOpenPortRange() const
void SetDestinationPort(int value)
Network & WithDestinationIpV6(DestinationIpV6T &&value)
bool OpenPortRangeHasBeenSet() const
const Aws::String & GetProtocol() const
Network & WithDestinationDomain(DestinationDomainT &&value)
Network & WithSourcePort(int value)
const Aws::String & GetSourceIpV6() const
Network & WithSourceMac(SourceMacT &&value)
bool DestinationIpV4HasBeenSet() const
AWS_SECURITYHUB_API Network(Aws::Utils::Json::JsonView jsonValue)
bool SourceIpV4HasBeenSet() const
void SetSourcePort(int value)
Network & WithDirection(NetworkDirection value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue