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>
23namespace NetworkFirewall
51 template<
typename SourcesT = Aws::Vector<Address>>
52 void SetSources(SourcesT&& value) { m_sourcesHasBeenSet =
true; m_sources = std::forward<SourcesT>(value); }
53 template<
typename SourcesT = Aws::Vector<Address>>
55 template<
typename SourcesT = Address>
66 template<
typename DestinationsT = Aws::Vector<Address>>
67 void SetDestinations(DestinationsT&& value) { m_destinationsHasBeenSet =
true; m_destinations = std::forward<DestinationsT>(value); }
68 template<
typename DestinationsT = Aws::Vector<Address>>
70 template<
typename DestinationsT = Address>
83 template<
typename SourcePortsT = Aws::Vector<PortRange>>
84 void SetSourcePorts(SourcePortsT&& value) { m_sourcePortsHasBeenSet =
true; m_sourcePorts = std::forward<SourcePortsT>(value); }
85 template<
typename SourcePortsT = Aws::Vector<PortRange>>
87 template<
typename SourcePortsT = PortRange>
100 template<
typename DestinationPortsT = Aws::Vector<PortRange>>
101 void SetDestinationPorts(DestinationPortsT&& value) { m_destinationPortsHasBeenSet =
true; m_destinationPorts = std::forward<DestinationPortsT>(value); }
102 template<
typename DestinationPortsT = Aws::Vector<PortRange>>
104 template<
typename DestinationPortsT = PortRange>
116 template<
typename ProtocolsT = Aws::Vector<
int>>
117 void SetProtocols(ProtocolsT&& value) { m_protocolsHasBeenSet =
true; m_protocols = std::forward<ProtocolsT>(value); }
118 template<
typename ProtocolsT = Aws::Vector<
int>>
125 bool m_sourcesHasBeenSet =
false;
128 bool m_destinationsHasBeenSet =
false;
131 bool m_sourcePortsHasBeenSet =
false;
134 bool m_destinationPortsHasBeenSet =
false;
137 bool m_protocolsHasBeenSet =
false;
bool SourcesHasBeenSet() const
ServerCertificateScope & WithSourcePorts(SourcePortsT &&value)
void SetDestinations(DestinationsT &&value)
void SetSources(SourcesT &&value)
ServerCertificateScope & AddProtocols(int value)
bool DestinationsHasBeenSet() const
bool ProtocolsHasBeenSet() const
AWS_NETWORKFIREWALL_API ServerCertificateScope & operator=(Aws::Utils::Json::JsonView jsonValue)
ServerCertificateScope & AddDestinationPorts(DestinationPortsT &&value)
ServerCertificateScope & AddSources(SourcesT &&value)
ServerCertificateScope & AddSourcePorts(SourcePortsT &&value)
void SetProtocols(ProtocolsT &&value)
bool DestinationPortsHasBeenSet() const
const Aws::Vector< PortRange > & GetDestinationPorts() const
ServerCertificateScope & WithDestinationPorts(DestinationPortsT &&value)
const Aws::Vector< Address > & GetSources() const
AWS_NETWORKFIREWALL_API ServerCertificateScope()=default
AWS_NETWORKFIREWALL_API ServerCertificateScope(Aws::Utils::Json::JsonView jsonValue)
ServerCertificateScope & AddDestinations(DestinationsT &&value)
const Aws::Vector< Address > & GetDestinations() const
void SetSourcePorts(SourcePortsT &&value)
const Aws::Vector< int > & GetProtocols() const
const Aws::Vector< PortRange > & GetSourcePorts() const
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
ServerCertificateScope & WithSources(SourcesT &&value)
bool SourcePortsHasBeenSet() const
void SetDestinationPorts(DestinationPortsT &&value)
ServerCertificateScope & WithDestinations(DestinationsT &&value)
ServerCertificateScope & WithProtocols(ProtocolsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue