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/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>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SecurityHub
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_SECURITYHUB_API NetworkConnectionAction();
42 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Aws::String& GetConnectionDirection() const{ return m_connectionDirection; }
51 inline bool ConnectionDirectionHasBeenSet() const { return m_connectionDirectionHasBeenSet; }
52 inline void SetConnectionDirection(const Aws::String& value) { m_connectionDirectionHasBeenSet = true; m_connectionDirection = value; }
53 inline void SetConnectionDirection(Aws::String&& value) { m_connectionDirectionHasBeenSet = true; m_connectionDirection = std::move(value); }
54 inline void SetConnectionDirection(const char* value) { m_connectionDirectionHasBeenSet = true; m_connectionDirection.assign(value); }
56 inline NetworkConnectionAction& WithConnectionDirection(Aws::String&& value) { SetConnectionDirection(std::move(value)); return *this;}
57 inline NetworkConnectionAction& WithConnectionDirection(const char* value) { SetConnectionDirection(value); return *this;}
59
61
65 inline const ActionRemoteIpDetails& GetRemoteIpDetails() const{ return m_remoteIpDetails; }
66 inline bool RemoteIpDetailsHasBeenSet() const { return m_remoteIpDetailsHasBeenSet; }
67 inline void SetRemoteIpDetails(const ActionRemoteIpDetails& value) { m_remoteIpDetailsHasBeenSet = true; m_remoteIpDetails = value; }
68 inline void SetRemoteIpDetails(ActionRemoteIpDetails&& value) { m_remoteIpDetailsHasBeenSet = true; m_remoteIpDetails = std::move(value); }
70 inline NetworkConnectionAction& WithRemoteIpDetails(ActionRemoteIpDetails&& value) { SetRemoteIpDetails(std::move(value)); return *this;}
72
74
77 inline const ActionRemotePortDetails& GetRemotePortDetails() const{ return m_remotePortDetails; }
78 inline bool RemotePortDetailsHasBeenSet() const { return m_remotePortDetailsHasBeenSet; }
79 inline void SetRemotePortDetails(const ActionRemotePortDetails& value) { m_remotePortDetailsHasBeenSet = true; m_remotePortDetails = value; }
80 inline void SetRemotePortDetails(ActionRemotePortDetails&& value) { m_remotePortDetailsHasBeenSet = true; m_remotePortDetails = std::move(value); }
84
86
89 inline const ActionLocalPortDetails& GetLocalPortDetails() const{ return m_localPortDetails; }
90 inline bool LocalPortDetailsHasBeenSet() const { return m_localPortDetailsHasBeenSet; }
91 inline void SetLocalPortDetails(const ActionLocalPortDetails& value) { m_localPortDetailsHasBeenSet = true; m_localPortDetails = value; }
92 inline void SetLocalPortDetails(ActionLocalPortDetails&& value) { m_localPortDetailsHasBeenSet = true; m_localPortDetails = std::move(value); }
96
98
102 inline const Aws::String& GetProtocol() const{ return m_protocol; }
103 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
104 inline void SetProtocol(const Aws::String& value) { m_protocolHasBeenSet = true; m_protocol = value; }
105 inline void SetProtocol(Aws::String&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
106 inline void SetProtocol(const char* value) { m_protocolHasBeenSet = true; m_protocol.assign(value); }
107 inline NetworkConnectionAction& WithProtocol(const Aws::String& value) { SetProtocol(value); return *this;}
108 inline NetworkConnectionAction& WithProtocol(Aws::String&& value) { SetProtocol(std::move(value)); return *this;}
109 inline NetworkConnectionAction& WithProtocol(const char* value) { SetProtocol(value); return *this;}
111
113
116 inline bool GetBlocked() const{ return m_blocked; }
117 inline bool BlockedHasBeenSet() const { return m_blockedHasBeenSet; }
118 inline void SetBlocked(bool value) { m_blockedHasBeenSet = true; m_blocked = value; }
119 inline NetworkConnectionAction& WithBlocked(bool value) { SetBlocked(value); return *this;}
121 private:
122
123 Aws::String m_connectionDirection;
124 bool m_connectionDirectionHasBeenSet = false;
125
126 ActionRemoteIpDetails m_remoteIpDetails;
127 bool m_remoteIpDetailsHasBeenSet = false;
128
129 ActionRemotePortDetails m_remotePortDetails;
130 bool m_remotePortDetailsHasBeenSet = false;
131
132 ActionLocalPortDetails m_localPortDetails;
133 bool m_localPortDetailsHasBeenSet = false;
134
135 Aws::String m_protocol;
136 bool m_protocolHasBeenSet = false;
137
138 bool m_blocked;
139 bool m_blockedHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace SecurityHub
144} // namespace Aws
NetworkConnectionAction & WithRemoteIpDetails(const ActionRemoteIpDetails &value)
NetworkConnectionAction & WithProtocol(const char *value)
NetworkConnectionAction & WithRemoteIpDetails(ActionRemoteIpDetails &&value)
NetworkConnectionAction & WithLocalPortDetails(const ActionLocalPortDetails &value)
const ActionRemotePortDetails & GetRemotePortDetails() const
void SetRemotePortDetails(ActionRemotePortDetails &&value)
NetworkConnectionAction & WithProtocol(Aws::String &&value)
AWS_SECURITYHUB_API NetworkConnectionAction & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLocalPortDetails(const ActionLocalPortDetails &value)
NetworkConnectionAction & WithBlocked(bool value)
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)
NetworkConnectionAction & WithConnectionDirection(const Aws::String &value)
AWS_SECURITYHUB_API NetworkConnectionAction(Aws::Utils::Json::JsonView jsonValue)
NetworkConnectionAction & WithConnectionDirection(const char *value)
void SetRemotePortDetails(const ActionRemotePortDetails &value)
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