AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
ServerCertificateScope.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
10#include <aws/network-firewall/model/Address.h>
11#include <aws/network-firewall/model/DecryptionAction.h>
12#include <aws/network-firewall/model/DomainMatch.h>
13#include <aws/network-firewall/model/PortRange.h>
14#include <aws/network-firewall/model/TLSInspectionScopeDeploymentMode.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Cbor {
21class CborValue;
22} // namespace Cbor
23} // namespace Utils
24namespace NetworkFirewall {
25namespace Model {
26
35 public:
36 AWS_NETWORKFIREWALL_API ServerCertificateScope() = default;
37 AWS_NETWORKFIREWALL_API ServerCertificateScope(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
38 AWS_NETWORKFIREWALL_API ServerCertificateScope& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
39 AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
40
42
46 inline const Aws::Vector<Address>& GetSources() const { return m_sources; }
47 inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
48 template <typename SourcesT = Aws::Vector<Address>>
49 void SetSources(SourcesT&& value) {
50 m_sourcesHasBeenSet = true;
51 m_sources = std::forward<SourcesT>(value);
52 }
53 template <typename SourcesT = Aws::Vector<Address>>
55 SetSources(std::forward<SourcesT>(value));
56 return *this;
57 }
58 template <typename SourcesT = Address>
60 m_sourcesHasBeenSet = true;
61 m_sources.emplace_back(std::forward<SourcesT>(value));
62 return *this;
63 }
65
67
71 inline const Aws::Vector<Address>& GetDestinations() const { return m_destinations; }
72 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
73 template <typename DestinationsT = Aws::Vector<Address>>
74 void SetDestinations(DestinationsT&& value) {
75 m_destinationsHasBeenSet = true;
76 m_destinations = std::forward<DestinationsT>(value);
77 }
78 template <typename DestinationsT = Aws::Vector<Address>>
79 ServerCertificateScope& WithDestinations(DestinationsT&& value) {
80 SetDestinations(std::forward<DestinationsT>(value));
81 return *this;
82 }
83 template <typename DestinationsT = Address>
84 ServerCertificateScope& AddDestinations(DestinationsT&& value) {
85 m_destinationsHasBeenSet = true;
86 m_destinations.emplace_back(std::forward<DestinationsT>(value));
87 return *this;
88 }
90
92
98 inline const Aws::Vector<PortRange>& GetSourcePorts() const { return m_sourcePorts; }
99 inline bool SourcePortsHasBeenSet() const { return m_sourcePortsHasBeenSet; }
100 template <typename SourcePortsT = Aws::Vector<PortRange>>
101 void SetSourcePorts(SourcePortsT&& value) {
102 m_sourcePortsHasBeenSet = true;
103 m_sourcePorts = std::forward<SourcePortsT>(value);
104 }
105 template <typename SourcePortsT = Aws::Vector<PortRange>>
107 SetSourcePorts(std::forward<SourcePortsT>(value));
108 return *this;
109 }
110 template <typename SourcePortsT = PortRange>
111 ServerCertificateScope& AddSourcePorts(SourcePortsT&& value) {
112 m_sourcePortsHasBeenSet = true;
113 m_sourcePorts.emplace_back(std::forward<SourcePortsT>(value));
114 return *this;
115 }
117
119
125 inline const Aws::Vector<PortRange>& GetDestinationPorts() const { return m_destinationPorts; }
126 inline bool DestinationPortsHasBeenSet() const { return m_destinationPortsHasBeenSet; }
127 template <typename DestinationPortsT = Aws::Vector<PortRange>>
128 void SetDestinationPorts(DestinationPortsT&& value) {
129 m_destinationPortsHasBeenSet = true;
130 m_destinationPorts = std::forward<DestinationPortsT>(value);
131 }
132 template <typename DestinationPortsT = Aws::Vector<PortRange>>
133 ServerCertificateScope& WithDestinationPorts(DestinationPortsT&& value) {
134 SetDestinationPorts(std::forward<DestinationPortsT>(value));
135 return *this;
136 }
137 template <typename DestinationPortsT = PortRange>
138 ServerCertificateScope& AddDestinationPorts(DestinationPortsT&& value) {
139 m_destinationPortsHasBeenSet = true;
140 m_destinationPorts.emplace_back(std::forward<DestinationPortsT>(value));
141 return *this;
142 }
144
146
151 inline const Aws::Vector<int64_t>& GetProtocols() const { return m_protocols; }
152 inline bool ProtocolsHasBeenSet() const { return m_protocolsHasBeenSet; }
153 template <typename ProtocolsT = Aws::Vector<int64_t>>
154 void SetProtocols(ProtocolsT&& value) {
155 m_protocolsHasBeenSet = true;
156 m_protocols = std::forward<ProtocolsT>(value);
157 }
158 template <typename ProtocolsT = Aws::Vector<int64_t>>
160 SetProtocols(std::forward<ProtocolsT>(value));
161 return *this;
162 }
163 inline ServerCertificateScope& AddProtocols(int64_t value) {
164 m_protocolsHasBeenSet = true;
165 m_protocols.push_back(value);
166 return *this;
167 }
169
171
179 inline const DomainMatch& GetDomainMatch() const { return m_domainMatch; }
180 inline bool DomainMatchHasBeenSet() const { return m_domainMatchHasBeenSet; }
181 template <typename DomainMatchT = DomainMatch>
182 void SetDomainMatch(DomainMatchT&& value) {
183 m_domainMatchHasBeenSet = true;
184 m_domainMatch = std::forward<DomainMatchT>(value);
185 }
186 template <typename DomainMatchT = DomainMatch>
188 SetDomainMatch(std::forward<DomainMatchT>(value));
189 return *this;
190 }
192
194
200 inline DecryptionAction GetDecryptionAction() const { return m_decryptionAction; }
201 inline bool DecryptionActionHasBeenSet() const { return m_decryptionActionHasBeenSet; }
203 m_decryptionActionHasBeenSet = true;
204 m_decryptionAction = value;
205 }
207 SetDecryptionAction(value);
208 return *this;
209 }
211
213
223 inline TLSInspectionScopeDeploymentMode GetDeploymentMode() const { return m_deploymentMode; }
224 inline bool DeploymentModeHasBeenSet() const { return m_deploymentModeHasBeenSet; }
226 m_deploymentModeHasBeenSet = true;
227 m_deploymentMode = value;
228 }
234 private:
235 Aws::Vector<Address> m_sources;
236
237 Aws::Vector<Address> m_destinations;
238
239 Aws::Vector<PortRange> m_sourcePorts;
240
241 Aws::Vector<PortRange> m_destinationPorts;
242
243 Aws::Vector<int64_t> m_protocols;
244
245 DomainMatch m_domainMatch;
246
248
250 bool m_sourcesHasBeenSet = false;
251 bool m_destinationsHasBeenSet = false;
252 bool m_sourcePortsHasBeenSet = false;
253 bool m_destinationPortsHasBeenSet = false;
254 bool m_protocolsHasBeenSet = false;
255 bool m_domainMatchHasBeenSet = false;
256 bool m_decryptionActionHasBeenSet = false;
257 bool m_deploymentModeHasBeenSet = false;
258};
259
260} // namespace Model
261} // namespace NetworkFirewall
262} // namespace Aws
ServerCertificateScope & WithDomainMatch(DomainMatchT &&value)
ServerCertificateScope & WithSourcePorts(SourcePortsT &&value)
ServerCertificateScope & AddDestinationPorts(DestinationPortsT &&value)
ServerCertificateScope & AddSources(SourcesT &&value)
ServerCertificateScope & AddSourcePorts(SourcePortsT &&value)
void SetDeploymentMode(TLSInspectionScopeDeploymentMode value)
ServerCertificateScope & WithDeploymentMode(TLSInspectionScopeDeploymentMode value)
const Aws::Vector< PortRange > & GetDestinationPorts() const
ServerCertificateScope & WithDestinationPorts(DestinationPortsT &&value)
const Aws::Vector< Address > & GetSources() const
AWS_NETWORKFIREWALL_API ServerCertificateScope()=default
ServerCertificateScope & AddProtocols(int64_t value)
ServerCertificateScope & AddDestinations(DestinationsT &&value)
ServerCertificateScope & WithDecryptionAction(DecryptionAction value)
AWS_NETWORKFIREWALL_API ServerCertificateScope(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::Vector< Address > & GetDestinations() const
AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const Aws::Vector< PortRange > & GetSourcePorts() const
ServerCertificateScope & WithSources(SourcesT &&value)
AWS_NETWORKFIREWALL_API ServerCertificateScope & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ServerCertificateScope & WithDestinations(DestinationsT &&value)
ServerCertificateScope & WithProtocols(ProtocolsT &&value)
const Aws::Vector< int64_t > & GetProtocols() const
TLSInspectionScopeDeploymentMode GetDeploymentMode() const
std::vector< T, Aws::Allocator< T > > Vector