AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
MatchAttributes.h
Go to the documentation of this file.
1
6#pragma once
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 NetworkFirewall
25{
26namespace Model
27{
28
38 {
39 public:
44
45
50 inline const Aws::Vector<Address>& GetSources() const{ return m_sources; }
51
56 inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
57
62 inline void SetSources(const Aws::Vector<Address>& value) { m_sourcesHasBeenSet = true; m_sources = value; }
63
68 inline void SetSources(Aws::Vector<Address>&& value) { m_sourcesHasBeenSet = true; m_sources = std::move(value); }
69
74 inline MatchAttributes& WithSources(const Aws::Vector<Address>& value) { SetSources(value); return *this;}
75
80 inline MatchAttributes& WithSources(Aws::Vector<Address>&& value) { SetSources(std::move(value)); return *this;}
81
86 inline MatchAttributes& AddSources(const Address& value) { m_sourcesHasBeenSet = true; m_sources.push_back(value); return *this; }
87
92 inline MatchAttributes& AddSources(Address&& value) { m_sourcesHasBeenSet = true; m_sources.push_back(std::move(value)); return *this; }
93
94
99 inline const Aws::Vector<Address>& GetDestinations() const{ return m_destinations; }
100
105 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
106
111 inline void SetDestinations(const Aws::Vector<Address>& value) { m_destinationsHasBeenSet = true; m_destinations = value; }
112
117 inline void SetDestinations(Aws::Vector<Address>&& value) { m_destinationsHasBeenSet = true; m_destinations = std::move(value); }
118
123 inline MatchAttributes& WithDestinations(const Aws::Vector<Address>& value) { SetDestinations(value); return *this;}
124
129 inline MatchAttributes& WithDestinations(Aws::Vector<Address>&& value) { SetDestinations(std::move(value)); return *this;}
130
135 inline MatchAttributes& AddDestinations(const Address& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(value); return *this; }
136
141 inline MatchAttributes& AddDestinations(Address&& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(std::move(value)); return *this; }
142
143
150 inline const Aws::Vector<PortRange>& GetSourcePorts() const{ return m_sourcePorts; }
151
158 inline bool SourcePortsHasBeenSet() const { return m_sourcePortsHasBeenSet; }
159
166 inline void SetSourcePorts(const Aws::Vector<PortRange>& value) { m_sourcePortsHasBeenSet = true; m_sourcePorts = value; }
167
174 inline void SetSourcePorts(Aws::Vector<PortRange>&& value) { m_sourcePortsHasBeenSet = true; m_sourcePorts = std::move(value); }
175
182 inline MatchAttributes& WithSourcePorts(const Aws::Vector<PortRange>& value) { SetSourcePorts(value); return *this;}
183
190 inline MatchAttributes& WithSourcePorts(Aws::Vector<PortRange>&& value) { SetSourcePorts(std::move(value)); return *this;}
191
198 inline MatchAttributes& AddSourcePorts(const PortRange& value) { m_sourcePortsHasBeenSet = true; m_sourcePorts.push_back(value); return *this; }
199
206 inline MatchAttributes& AddSourcePorts(PortRange&& value) { m_sourcePortsHasBeenSet = true; m_sourcePorts.push_back(std::move(value)); return *this; }
207
208
215 inline const Aws::Vector<PortRange>& GetDestinationPorts() const{ return m_destinationPorts; }
216
223 inline bool DestinationPortsHasBeenSet() const { return m_destinationPortsHasBeenSet; }
224
231 inline void SetDestinationPorts(const Aws::Vector<PortRange>& value) { m_destinationPortsHasBeenSet = true; m_destinationPorts = value; }
232
239 inline void SetDestinationPorts(Aws::Vector<PortRange>&& value) { m_destinationPortsHasBeenSet = true; m_destinationPorts = std::move(value); }
240
248
255 inline MatchAttributes& WithDestinationPorts(Aws::Vector<PortRange>&& value) { SetDestinationPorts(std::move(value)); return *this;}
256
263 inline MatchAttributes& AddDestinationPorts(const PortRange& value) { m_destinationPortsHasBeenSet = true; m_destinationPorts.push_back(value); return *this; }
264
271 inline MatchAttributes& AddDestinationPorts(PortRange&& value) { m_destinationPortsHasBeenSet = true; m_destinationPorts.push_back(std::move(value)); return *this; }
272
273
279 inline const Aws::Vector<int>& GetProtocols() const{ return m_protocols; }
280
286 inline bool ProtocolsHasBeenSet() const { return m_protocolsHasBeenSet; }
287
293 inline void SetProtocols(const Aws::Vector<int>& value) { m_protocolsHasBeenSet = true; m_protocols = value; }
294
300 inline void SetProtocols(Aws::Vector<int>&& value) { m_protocolsHasBeenSet = true; m_protocols = std::move(value); }
301
307 inline MatchAttributes& WithProtocols(const Aws::Vector<int>& value) { SetProtocols(value); return *this;}
308
314 inline MatchAttributes& WithProtocols(Aws::Vector<int>&& value) { SetProtocols(std::move(value)); return *this;}
315
321 inline MatchAttributes& AddProtocols(int value) { m_protocolsHasBeenSet = true; m_protocols.push_back(value); return *this; }
322
323
328 inline const Aws::Vector<TCPFlagField>& GetTCPFlags() const{ return m_tCPFlags; }
329
334 inline bool TCPFlagsHasBeenSet() const { return m_tCPFlagsHasBeenSet; }
335
340 inline void SetTCPFlags(const Aws::Vector<TCPFlagField>& value) { m_tCPFlagsHasBeenSet = true; m_tCPFlags = value; }
341
346 inline void SetTCPFlags(Aws::Vector<TCPFlagField>&& value) { m_tCPFlagsHasBeenSet = true; m_tCPFlags = std::move(value); }
347
352 inline MatchAttributes& WithTCPFlags(const Aws::Vector<TCPFlagField>& value) { SetTCPFlags(value); return *this;}
353
358 inline MatchAttributes& WithTCPFlags(Aws::Vector<TCPFlagField>&& value) { SetTCPFlags(std::move(value)); return *this;}
359
364 inline MatchAttributes& AddTCPFlags(const TCPFlagField& value) { m_tCPFlagsHasBeenSet = true; m_tCPFlags.push_back(value); return *this; }
365
370 inline MatchAttributes& AddTCPFlags(TCPFlagField&& value) { m_tCPFlagsHasBeenSet = true; m_tCPFlags.push_back(std::move(value)); return *this; }
371
372 private:
373
374 Aws::Vector<Address> m_sources;
375 bool m_sourcesHasBeenSet = false;
376
377 Aws::Vector<Address> m_destinations;
378 bool m_destinationsHasBeenSet = false;
379
380 Aws::Vector<PortRange> m_sourcePorts;
381 bool m_sourcePortsHasBeenSet = false;
382
383 Aws::Vector<PortRange> m_destinationPorts;
384 bool m_destinationPortsHasBeenSet = false;
385
386 Aws::Vector<int> m_protocols;
387 bool m_protocolsHasBeenSet = false;
388
389 Aws::Vector<TCPFlagField> m_tCPFlags;
390 bool m_tCPFlagsHasBeenSet = false;
391 };
392
393} // namespace Model
394} // namespace NetworkFirewall
395} // namespace Aws
#define AWS_NETWORKFIREWALL_API
AWS_NETWORKFIREWALL_API MatchAttributes & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSourcePorts(const Aws::Vector< PortRange > &value)
MatchAttributes & AddProtocols(int value)
MatchAttributes & WithTCPFlags(Aws::Vector< TCPFlagField > &&value)
MatchAttributes & WithDestinations(Aws::Vector< Address > &&value)
MatchAttributes & AddDestinations(const Address &value)
void SetDestinations(const Aws::Vector< Address > &value)
const Aws::Vector< int > & GetProtocols() const
MatchAttributes & WithDestinations(const Aws::Vector< Address > &value)
MatchAttributes & WithSources(Aws::Vector< Address > &&value)
MatchAttributes & WithDestinationPorts(const Aws::Vector< PortRange > &value)
MatchAttributes & AddDestinationPorts(const PortRange &value)
MatchAttributes & AddTCPFlags(const TCPFlagField &value)
const Aws::Vector< PortRange > & GetSourcePorts() const
void SetDestinationPorts(const Aws::Vector< PortRange > &value)
MatchAttributes & AddDestinations(Address &&value)
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
MatchAttributes & WithDestinationPorts(Aws::Vector< PortRange > &&value)
MatchAttributes & AddTCPFlags(TCPFlagField &&value)
MatchAttributes & AddSources(const Address &value)
MatchAttributes & WithProtocols(const Aws::Vector< int > &value)
MatchAttributes & WithSources(const Aws::Vector< Address > &value)
const Aws::Vector< PortRange > & GetDestinationPorts() const
MatchAttributes & WithSourcePorts(const Aws::Vector< PortRange > &value)
MatchAttributes & AddSources(Address &&value)
void SetSources(Aws::Vector< Address > &&value)
MatchAttributes & AddDestinationPorts(PortRange &&value)
void SetSourcePorts(Aws::Vector< PortRange > &&value)
void SetSources(const Aws::Vector< Address > &value)
MatchAttributes & AddSourcePorts(PortRange &&value)
MatchAttributes & WithProtocols(Aws::Vector< int > &&value)
AWS_NETWORKFIREWALL_API MatchAttributes(Aws::Utils::Json::JsonView jsonValue)
void SetDestinationPorts(Aws::Vector< PortRange > &&value)
const Aws::Vector< TCPFlagField > & GetTCPFlags() const
void SetDestinations(Aws::Vector< Address > &&value)
MatchAttributes & AddSourcePorts(const PortRange &value)
AWS_NETWORKFIREWALL_API MatchAttributes()
void SetProtocols(Aws::Vector< int > &&value)
void SetTCPFlags(const Aws::Vector< TCPFlagField > &value)
MatchAttributes & WithSourcePorts(Aws::Vector< PortRange > &&value)
const Aws::Vector< Address > & GetDestinations() const
const Aws::Vector< Address > & GetSources() const
MatchAttributes & WithTCPFlags(const Aws::Vector< TCPFlagField > &value)
void SetProtocols(const Aws::Vector< int > &value)
void SetTCPFlags(Aws::Vector< TCPFlagField > &&value)
std::vector< T, Aws::Allocator< T > > Vector