AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Header.h
1
6#pragma once
7#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
8#include <aws/network-firewall/model/StatefulRuleProtocol.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/network-firewall/model/StatefulRuleDirection.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 NetworkFirewall
24{
25namespace Model
26{
27
35 class Header
36 {
37 public:
38 AWS_NETWORKFIREWALL_API Header();
39 AWS_NETWORKFIREWALL_API Header(Aws::Utils::Json::JsonView jsonValue);
40 AWS_NETWORKFIREWALL_API Header& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const StatefulRuleProtocol& GetProtocol() const{ return m_protocol; }
50 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
51 inline void SetProtocol(const StatefulRuleProtocol& value) { m_protocolHasBeenSet = true; m_protocol = value; }
52 inline void SetProtocol(StatefulRuleProtocol&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
53 inline Header& WithProtocol(const StatefulRuleProtocol& value) { SetProtocol(value); return *this;}
54 inline Header& WithProtocol(StatefulRuleProtocol&& value) { SetProtocol(std::move(value)); return *this;}
56
58
78 inline const Aws::String& GetSource() const{ return m_source; }
79 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
80 inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; }
81 inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
82 inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); }
83 inline Header& WithSource(const Aws::String& value) { SetSource(value); return *this;}
84 inline Header& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;}
85 inline Header& WithSource(const char* value) { SetSource(value); return *this;}
87
89
94 inline const Aws::String& GetSourcePort() const{ return m_sourcePort; }
95 inline bool SourcePortHasBeenSet() const { return m_sourcePortHasBeenSet; }
96 inline void SetSourcePort(const Aws::String& value) { m_sourcePortHasBeenSet = true; m_sourcePort = value; }
97 inline void SetSourcePort(Aws::String&& value) { m_sourcePortHasBeenSet = true; m_sourcePort = std::move(value); }
98 inline void SetSourcePort(const char* value) { m_sourcePortHasBeenSet = true; m_sourcePort.assign(value); }
99 inline Header& WithSourcePort(const Aws::String& value) { SetSourcePort(value); return *this;}
100 inline Header& WithSourcePort(Aws::String&& value) { SetSourcePort(std::move(value)); return *this;}
101 inline Header& WithSourcePort(const char* value) { SetSourcePort(value); return *this;}
103
105
112 inline const StatefulRuleDirection& GetDirection() const{ return m_direction; }
113 inline bool DirectionHasBeenSet() const { return m_directionHasBeenSet; }
114 inline void SetDirection(const StatefulRuleDirection& value) { m_directionHasBeenSet = true; m_direction = value; }
115 inline void SetDirection(StatefulRuleDirection&& value) { m_directionHasBeenSet = true; m_direction = std::move(value); }
116 inline Header& WithDirection(const StatefulRuleDirection& value) { SetDirection(value); return *this;}
117 inline Header& WithDirection(StatefulRuleDirection&& value) { SetDirection(std::move(value)); return *this;}
119
121
141 inline const Aws::String& GetDestination() const{ return m_destination; }
142 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
143 inline void SetDestination(const Aws::String& value) { m_destinationHasBeenSet = true; m_destination = value; }
144 inline void SetDestination(Aws::String&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); }
145 inline void SetDestination(const char* value) { m_destinationHasBeenSet = true; m_destination.assign(value); }
146 inline Header& WithDestination(const Aws::String& value) { SetDestination(value); return *this;}
147 inline Header& WithDestination(Aws::String&& value) { SetDestination(std::move(value)); return *this;}
148 inline Header& WithDestination(const char* value) { SetDestination(value); return *this;}
150
152
157 inline const Aws::String& GetDestinationPort() const{ return m_destinationPort; }
158 inline bool DestinationPortHasBeenSet() const { return m_destinationPortHasBeenSet; }
159 inline void SetDestinationPort(const Aws::String& value) { m_destinationPortHasBeenSet = true; m_destinationPort = value; }
160 inline void SetDestinationPort(Aws::String&& value) { m_destinationPortHasBeenSet = true; m_destinationPort = std::move(value); }
161 inline void SetDestinationPort(const char* value) { m_destinationPortHasBeenSet = true; m_destinationPort.assign(value); }
162 inline Header& WithDestinationPort(const Aws::String& value) { SetDestinationPort(value); return *this;}
163 inline Header& WithDestinationPort(Aws::String&& value) { SetDestinationPort(std::move(value)); return *this;}
164 inline Header& WithDestinationPort(const char* value) { SetDestinationPort(value); return *this;}
166 private:
167
168 StatefulRuleProtocol m_protocol;
169 bool m_protocolHasBeenSet = false;
170
171 Aws::String m_source;
172 bool m_sourceHasBeenSet = false;
173
174 Aws::String m_sourcePort;
175 bool m_sourcePortHasBeenSet = false;
176
177 StatefulRuleDirection m_direction;
178 bool m_directionHasBeenSet = false;
179
180 Aws::String m_destination;
181 bool m_destinationHasBeenSet = false;
182
183 Aws::String m_destinationPort;
184 bool m_destinationPortHasBeenSet = false;
185 };
186
187} // namespace Model
188} // namespace NetworkFirewall
189} // namespace Aws
const StatefulRuleProtocol & GetProtocol() const
Definition Header.h:49
Header & WithProtocol(const StatefulRuleProtocol &value)
Definition Header.h:53
Header & WithSourcePort(const char *value)
Definition Header.h:101
const Aws::String & GetSourcePort() const
Definition Header.h:94
void SetProtocol(StatefulRuleProtocol &&value)
Definition Header.h:52
Header & WithSourcePort(const Aws::String &value)
Definition Header.h:99
void SetDirection(StatefulRuleDirection &&value)
Definition Header.h:115
void SetSourcePort(const Aws::String &value)
Definition Header.h:96
const Aws::String & GetSource() const
Definition Header.h:78
void SetSource(const char *value)
Definition Header.h:82
void SetDestinationPort(const char *value)
Definition Header.h:161
Header & WithDestinationPort(Aws::String &&value)
Definition Header.h:163
void SetSourcePort(Aws::String &&value)
Definition Header.h:97
Header & WithSource(Aws::String &&value)
Definition Header.h:84
void SetDestinationPort(const Aws::String &value)
Definition Header.h:159
void SetDestination(Aws::String &&value)
Definition Header.h:144
void SetSourcePort(const char *value)
Definition Header.h:98
void SetSource(Aws::String &&value)
Definition Header.h:81
Header & WithSource(const Aws::String &value)
Definition Header.h:83
Header & WithSourcePort(Aws::String &&value)
Definition Header.h:100
AWS_NETWORKFIREWALL_API Header()
Header & WithDestination(const char *value)
Definition Header.h:148
void SetDestination(const Aws::String &value)
Definition Header.h:143
void SetSource(const Aws::String &value)
Definition Header.h:80
Header & WithDestinationPort(const char *value)
Definition Header.h:164
void SetDestinationPort(Aws::String &&value)
Definition Header.h:160
void SetProtocol(const StatefulRuleProtocol &value)
Definition Header.h:51
const Aws::String & GetDestinationPort() const
Definition Header.h:157
Header & WithSource(const char *value)
Definition Header.h:85
AWS_NETWORKFIREWALL_API Header(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDestination() const
Definition Header.h:141
void SetDestination(const char *value)
Definition Header.h:145
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_NETWORKFIREWALL_API Header & operator=(Aws::Utils::Json::JsonView jsonValue)
Header & WithDestinationPort(const Aws::String &value)
Definition Header.h:162
void SetDirection(const StatefulRuleDirection &value)
Definition Header.h:114
Header & WithDestination(Aws::String &&value)
Definition Header.h:147
Header & WithDirection(StatefulRuleDirection &&value)
Definition Header.h:117
Header & WithDestination(const Aws::String &value)
Definition Header.h:146
Header & WithDirection(const StatefulRuleDirection &value)
Definition Header.h:116
Header & WithProtocol(StatefulRuleProtocol &&value)
Definition Header.h:54
const StatefulRuleDirection & GetDirection() const
Definition Header.h:112
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue