AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ServerCertificateScope.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 <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
36 {
37 public:
38 AWS_NETWORKFIREWALL_API ServerCertificateScope() = default;
39 AWS_NETWORKFIREWALL_API ServerCertificateScope(Aws::Utils::Json::JsonView jsonValue);
40 AWS_NETWORKFIREWALL_API ServerCertificateScope& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::Vector<Address>& GetSources() const { return m_sources; }
50 inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
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>>
54 ServerCertificateScope& WithSources(SourcesT&& value) { SetSources(std::forward<SourcesT>(value)); return *this;}
55 template<typename SourcesT = Address>
56 ServerCertificateScope& AddSources(SourcesT&& value) { m_sourcesHasBeenSet = true; m_sources.emplace_back(std::forward<SourcesT>(value)); return *this; }
58
60
64 inline const Aws::Vector<Address>& GetDestinations() const { return m_destinations; }
65 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
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>>
69 ServerCertificateScope& WithDestinations(DestinationsT&& value) { SetDestinations(std::forward<DestinationsT>(value)); return *this;}
70 template<typename DestinationsT = Address>
71 ServerCertificateScope& AddDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations.emplace_back(std::forward<DestinationsT>(value)); return *this; }
73
75
81 inline const Aws::Vector<PortRange>& GetSourcePorts() const { return m_sourcePorts; }
82 inline bool SourcePortsHasBeenSet() const { return m_sourcePortsHasBeenSet; }
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>>
86 ServerCertificateScope& WithSourcePorts(SourcePortsT&& value) { SetSourcePorts(std::forward<SourcePortsT>(value)); return *this;}
87 template<typename SourcePortsT = PortRange>
88 ServerCertificateScope& AddSourcePorts(SourcePortsT&& value) { m_sourcePortsHasBeenSet = true; m_sourcePorts.emplace_back(std::forward<SourcePortsT>(value)); return *this; }
90
92
98 inline const Aws::Vector<PortRange>& GetDestinationPorts() const { return m_destinationPorts; }
99 inline bool DestinationPortsHasBeenSet() const { return m_destinationPortsHasBeenSet; }
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>>
103 ServerCertificateScope& WithDestinationPorts(DestinationPortsT&& value) { SetDestinationPorts(std::forward<DestinationPortsT>(value)); return *this;}
104 template<typename DestinationPortsT = PortRange>
105 ServerCertificateScope& AddDestinationPorts(DestinationPortsT&& value) { m_destinationPortsHasBeenSet = true; m_destinationPorts.emplace_back(std::forward<DestinationPortsT>(value)); return *this; }
107
109
114 inline const Aws::Vector<int>& GetProtocols() const { return m_protocols; }
115 inline bool ProtocolsHasBeenSet() const { return m_protocolsHasBeenSet; }
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>>
119 ServerCertificateScope& WithProtocols(ProtocolsT&& value) { SetProtocols(std::forward<ProtocolsT>(value)); return *this;}
120 inline ServerCertificateScope& AddProtocols(int value) { m_protocolsHasBeenSet = true; m_protocols.push_back(value); return *this; }
122 private:
123
124 Aws::Vector<Address> m_sources;
125 bool m_sourcesHasBeenSet = false;
126
127 Aws::Vector<Address> m_destinations;
128 bool m_destinationsHasBeenSet = false;
129
130 Aws::Vector<PortRange> m_sourcePorts;
131 bool m_sourcePortsHasBeenSet = false;
132
133 Aws::Vector<PortRange> m_destinationPorts;
134 bool m_destinationPortsHasBeenSet = false;
135
136 Aws::Vector<int> m_protocols;
137 bool m_protocolsHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace NetworkFirewall
142} // namespace Aws
ServerCertificateScope & WithSourcePorts(SourcePortsT &&value)
AWS_NETWORKFIREWALL_API ServerCertificateScope & operator=(Aws::Utils::Json::JsonView jsonValue)
ServerCertificateScope & AddDestinationPorts(DestinationPortsT &&value)
ServerCertificateScope & AddSources(SourcesT &&value)
ServerCertificateScope & AddSourcePorts(SourcePortsT &&value)
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
const Aws::Vector< PortRange > & GetSourcePorts() const
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
ServerCertificateScope & WithSources(SourcesT &&value)
ServerCertificateScope & WithDestinations(DestinationsT &&value)
ServerCertificateScope & WithProtocols(ProtocolsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue