7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/securityhub/model/ActionRemoteIpDetails.h>
10#include <aws/securityhub/model/ActionRemotePortDetails.h>
11#include <aws/securityhub/model/ActionLocalPortDetails.h>
54 inline void SetConnectionDirection(
const char* value) { m_connectionDirectionHasBeenSet =
true; m_connectionDirection.assign(value); }
106 inline void SetProtocol(
const char* value) { m_protocolHasBeenSet =
true; m_protocol.assign(value); }
118 inline void SetBlocked(
bool value) { m_blockedHasBeenSet =
true; m_blocked = value; }
124 bool m_connectionDirectionHasBeenSet =
false;
127 bool m_remoteIpDetailsHasBeenSet =
false;
130 bool m_remotePortDetailsHasBeenSet =
false;
133 bool m_localPortDetailsHasBeenSet =
false;
136 bool m_protocolHasBeenSet =
false;
139 bool m_blockedHasBeenSet =
false;
NetworkConnectionAction & WithRemoteIpDetails(const ActionRemoteIpDetails &value)
NetworkConnectionAction & WithProtocol(const char *value)
NetworkConnectionAction & WithRemoteIpDetails(ActionRemoteIpDetails &&value)
NetworkConnectionAction & WithLocalPortDetails(const ActionLocalPortDetails &value)
const ActionRemotePortDetails & GetRemotePortDetails() const
bool ConnectionDirectionHasBeenSet() const
void SetConnectionDirection(const char *value)
void SetRemotePortDetails(ActionRemotePortDetails &&value)
NetworkConnectionAction & WithProtocol(Aws::String &&value)
bool RemotePortDetailsHasBeenSet() const
void SetBlocked(bool value)
void SetConnectionDirection(Aws::String &&value)
bool ProtocolHasBeenSet() const
AWS_SECURITYHUB_API NetworkConnectionAction & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLocalPortDetails(const ActionLocalPortDetails &value)
void SetProtocol(Aws::String &&value)
NetworkConnectionAction & WithBlocked(bool value)
const Aws::String & GetProtocol() const
bool LocalPortDetailsHasBeenSet() const
const ActionLocalPortDetails & GetLocalPortDetails() const
void SetRemoteIpDetails(ActionRemoteIpDetails &&value)
void SetRemoteIpDetails(const ActionRemoteIpDetails &value)
const ActionRemoteIpDetails & GetRemoteIpDetails() const
NetworkConnectionAction & WithConnectionDirection(Aws::String &&value)
NetworkConnectionAction & WithProtocol(const Aws::String &value)
NetworkConnectionAction & WithRemotePortDetails(const ActionRemotePortDetails &value)
NetworkConnectionAction & WithRemotePortDetails(ActionRemotePortDetails &&value)
NetworkConnectionAction & WithLocalPortDetails(ActionLocalPortDetails &&value)
void SetProtocol(const Aws::String &value)
NetworkConnectionAction & WithConnectionDirection(const Aws::String &value)
void SetConnectionDirection(const Aws::String &value)
bool RemoteIpDetailsHasBeenSet() const
AWS_SECURITYHUB_API NetworkConnectionAction(Aws::Utils::Json::JsonView jsonValue)
NetworkConnectionAction & WithConnectionDirection(const char *value)
AWS_SECURITYHUB_API NetworkConnectionAction()
void SetProtocol(const char *value)
void SetRemotePortDetails(const ActionRemotePortDetails &value)
const Aws::String & GetConnectionDirection() const
bool BlockedHasBeenSet() const
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLocalPortDetails(ActionLocalPortDetails &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue