AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MatchAttributes.h
1
6#pragma once
7#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/network-firewall/model/Address.h>
10#include <aws/network-firewall/model/PortRange.h>
11#include <aws/network-firewall/model/TCPFlagField.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 NetworkFirewall
25{
26namespace Model
27{
28
38 {
39 public:
40 AWS_NETWORKFIREWALL_API MatchAttributes();
41 AWS_NETWORKFIREWALL_API MatchAttributes(Aws::Utils::Json::JsonView jsonValue);
42 AWS_NETWORKFIREWALL_API MatchAttributes& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline const Aws::Vector<Address>& GetSources() const{ return m_sources; }
52 inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
53 inline void SetSources(const Aws::Vector<Address>& value) { m_sourcesHasBeenSet = true; m_sources = value; }
54 inline void SetSources(Aws::Vector<Address>&& value) { m_sourcesHasBeenSet = true; m_sources = std::move(value); }
55 inline MatchAttributes& WithSources(const Aws::Vector<Address>& value) { SetSources(value); return *this;}
56 inline MatchAttributes& WithSources(Aws::Vector<Address>&& value) { SetSources(std::move(value)); return *this;}
57 inline MatchAttributes& AddSources(const Address& value) { m_sourcesHasBeenSet = true; m_sources.push_back(value); return *this; }
58 inline MatchAttributes& AddSources(Address&& value) { m_sourcesHasBeenSet = true; m_sources.push_back(std::move(value)); return *this; }
60
62
66 inline const Aws::Vector<Address>& GetDestinations() const{ return m_destinations; }
67 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
68 inline void SetDestinations(const Aws::Vector<Address>& value) { m_destinationsHasBeenSet = true; m_destinations = value; }
69 inline void SetDestinations(Aws::Vector<Address>&& value) { m_destinationsHasBeenSet = true; m_destinations = std::move(value); }
70 inline MatchAttributes& WithDestinations(const Aws::Vector<Address>& value) { SetDestinations(value); return *this;}
71 inline MatchAttributes& WithDestinations(Aws::Vector<Address>&& value) { SetDestinations(std::move(value)); return *this;}
72 inline MatchAttributes& AddDestinations(const Address& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(value); return *this; }
73 inline MatchAttributes& AddDestinations(Address&& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(std::move(value)); return *this; }
75
77
83 inline const Aws::Vector<PortRange>& GetSourcePorts() const{ return m_sourcePorts; }
84 inline bool SourcePortsHasBeenSet() const { return m_sourcePortsHasBeenSet; }
85 inline void SetSourcePorts(const Aws::Vector<PortRange>& value) { m_sourcePortsHasBeenSet = true; m_sourcePorts = value; }
86 inline void SetSourcePorts(Aws::Vector<PortRange>&& value) { m_sourcePortsHasBeenSet = true; m_sourcePorts = std::move(value); }
87 inline MatchAttributes& WithSourcePorts(const Aws::Vector<PortRange>& value) { SetSourcePorts(value); return *this;}
88 inline MatchAttributes& WithSourcePorts(Aws::Vector<PortRange>&& value) { SetSourcePorts(std::move(value)); return *this;}
89 inline MatchAttributes& AddSourcePorts(const PortRange& value) { m_sourcePortsHasBeenSet = true; m_sourcePorts.push_back(value); return *this; }
90 inline MatchAttributes& AddSourcePorts(PortRange&& value) { m_sourcePortsHasBeenSet = true; m_sourcePorts.push_back(std::move(value)); return *this; }
92
94
100 inline const Aws::Vector<PortRange>& GetDestinationPorts() const{ return m_destinationPorts; }
101 inline bool DestinationPortsHasBeenSet() const { return m_destinationPortsHasBeenSet; }
102 inline void SetDestinationPorts(const Aws::Vector<PortRange>& value) { m_destinationPortsHasBeenSet = true; m_destinationPorts = value; }
103 inline void SetDestinationPorts(Aws::Vector<PortRange>&& value) { m_destinationPortsHasBeenSet = true; m_destinationPorts = std::move(value); }
105 inline MatchAttributes& WithDestinationPorts(Aws::Vector<PortRange>&& value) { SetDestinationPorts(std::move(value)); return *this;}
106 inline MatchAttributes& AddDestinationPorts(const PortRange& value) { m_destinationPortsHasBeenSet = true; m_destinationPorts.push_back(value); return *this; }
107 inline MatchAttributes& AddDestinationPorts(PortRange&& value) { m_destinationPortsHasBeenSet = true; m_destinationPorts.push_back(std::move(value)); return *this; }
109
111
116 inline const Aws::Vector<int>& GetProtocols() const{ return m_protocols; }
117 inline bool ProtocolsHasBeenSet() const { return m_protocolsHasBeenSet; }
118 inline void SetProtocols(const Aws::Vector<int>& value) { m_protocolsHasBeenSet = true; m_protocols = value; }
119 inline void SetProtocols(Aws::Vector<int>&& value) { m_protocolsHasBeenSet = true; m_protocols = std::move(value); }
120 inline MatchAttributes& WithProtocols(const Aws::Vector<int>& value) { SetProtocols(value); return *this;}
121 inline MatchAttributes& WithProtocols(Aws::Vector<int>&& value) { SetProtocols(std::move(value)); return *this;}
122 inline MatchAttributes& AddProtocols(int value) { m_protocolsHasBeenSet = true; m_protocols.push_back(value); return *this; }
124
126
130 inline const Aws::Vector<TCPFlagField>& GetTCPFlags() const{ return m_tCPFlags; }
131 inline bool TCPFlagsHasBeenSet() const { return m_tCPFlagsHasBeenSet; }
132 inline void SetTCPFlags(const Aws::Vector<TCPFlagField>& value) { m_tCPFlagsHasBeenSet = true; m_tCPFlags = value; }
133 inline void SetTCPFlags(Aws::Vector<TCPFlagField>&& value) { m_tCPFlagsHasBeenSet = true; m_tCPFlags = std::move(value); }
134 inline MatchAttributes& WithTCPFlags(const Aws::Vector<TCPFlagField>& value) { SetTCPFlags(value); return *this;}
135 inline MatchAttributes& WithTCPFlags(Aws::Vector<TCPFlagField>&& value) { SetTCPFlags(std::move(value)); return *this;}
136 inline MatchAttributes& AddTCPFlags(const TCPFlagField& value) { m_tCPFlagsHasBeenSet = true; m_tCPFlags.push_back(value); return *this; }
137 inline MatchAttributes& AddTCPFlags(TCPFlagField&& value) { m_tCPFlagsHasBeenSet = true; m_tCPFlags.push_back(std::move(value)); return *this; }
139 private:
140
141 Aws::Vector<Address> m_sources;
142 bool m_sourcesHasBeenSet = false;
143
144 Aws::Vector<Address> m_destinations;
145 bool m_destinationsHasBeenSet = false;
146
147 Aws::Vector<PortRange> m_sourcePorts;
148 bool m_sourcePortsHasBeenSet = false;
149
150 Aws::Vector<PortRange> m_destinationPorts;
151 bool m_destinationPortsHasBeenSet = false;
152
153 Aws::Vector<int> m_protocols;
154 bool m_protocolsHasBeenSet = false;
155
156 Aws::Vector<TCPFlagField> m_tCPFlags;
157 bool m_tCPFlagsHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace NetworkFirewall
162} // namespace Aws
AWS_NETWORKFIREWALL_API MatchAttributes & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSourcePorts(const Aws::Vector< PortRange > &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
Aws::Utils::Json::JsonValue JsonValue