AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSources(const Aws::Vector<Address>& value) { m_sourcesHasBeenSet = true; m_sources = value; }
52 inline void SetSources(Aws::Vector<Address>&& value) { m_sourcesHasBeenSet = true; m_sources = std::move(value); }
53 inline ServerCertificateScope& WithSources(const Aws::Vector<Address>& value) { SetSources(value); return *this;}
54 inline ServerCertificateScope& WithSources(Aws::Vector<Address>&& value) { SetSources(std::move(value)); return *this;}
55 inline ServerCertificateScope& AddSources(const Address& value) { m_sourcesHasBeenSet = true; m_sources.push_back(value); return *this; }
56 inline ServerCertificateScope& AddSources(Address&& value) { m_sourcesHasBeenSet = true; m_sources.push_back(std::move(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 inline void SetDestinations(const Aws::Vector<Address>& value) { m_destinationsHasBeenSet = true; m_destinations = value; }
67 inline void SetDestinations(Aws::Vector<Address>&& value) { m_destinationsHasBeenSet = true; m_destinations = std::move(value); }
68 inline ServerCertificateScope& WithDestinations(const Aws::Vector<Address>& value) { SetDestinations(value); return *this;}
69 inline ServerCertificateScope& WithDestinations(Aws::Vector<Address>&& value) { SetDestinations(std::move(value)); return *this;}
70 inline ServerCertificateScope& AddDestinations(const Address& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(value); return *this; }
71 inline ServerCertificateScope& AddDestinations(Address&& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(std::move(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 inline void SetSourcePorts(const Aws::Vector<PortRange>& value) { m_sourcePortsHasBeenSet = true; m_sourcePorts = value; }
84 inline void SetSourcePorts(Aws::Vector<PortRange>&& value) { m_sourcePortsHasBeenSet = true; m_sourcePorts = std::move(value); }
85 inline ServerCertificateScope& WithSourcePorts(const Aws::Vector<PortRange>& value) { SetSourcePorts(value); return *this;}
86 inline ServerCertificateScope& WithSourcePorts(Aws::Vector<PortRange>&& value) { SetSourcePorts(std::move(value)); return *this;}
87 inline ServerCertificateScope& AddSourcePorts(const PortRange& value) { m_sourcePortsHasBeenSet = true; m_sourcePorts.push_back(value); return *this; }
88 inline ServerCertificateScope& AddSourcePorts(PortRange&& value) { m_sourcePortsHasBeenSet = true; m_sourcePorts.push_back(std::move(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 inline void SetDestinationPorts(const Aws::Vector<PortRange>& value) { m_destinationPortsHasBeenSet = true; m_destinationPorts = value; }
101 inline void SetDestinationPorts(Aws::Vector<PortRange>&& value) { m_destinationPortsHasBeenSet = true; m_destinationPorts = std::move(value); }
104 inline ServerCertificateScope& AddDestinationPorts(const PortRange& value) { m_destinationPortsHasBeenSet = true; m_destinationPorts.push_back(value); return *this; }
105 inline ServerCertificateScope& AddDestinationPorts(PortRange&& value) { m_destinationPortsHasBeenSet = true; m_destinationPorts.push_back(std::move(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 inline void SetProtocols(const Aws::Vector<int>& value) { m_protocolsHasBeenSet = true; m_protocols = value; }
117 inline void SetProtocols(Aws::Vector<int>&& value) { m_protocolsHasBeenSet = true; m_protocols = std::move(value); }
118 inline ServerCertificateScope& WithProtocols(const Aws::Vector<int>& value) { SetProtocols(value); return *this;}
119 inline ServerCertificateScope& WithProtocols(Aws::Vector<int>&& value) { SetProtocols(std::move(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
void SetDestinations(const Aws::Vector< Address > &value)
void SetDestinationPorts(const Aws::Vector< PortRange > &value)
ServerCertificateScope & AddSources(const Address &value)
ServerCertificateScope & WithProtocols(const Aws::Vector< int > &value)
ServerCertificateScope & WithProtocols(Aws::Vector< int > &&value)
ServerCertificateScope & AddDestinationPorts(PortRange &&value)
void SetSources(const Aws::Vector< Address > &value)
AWS_NETWORKFIREWALL_API ServerCertificateScope & operator=(Aws::Utils::Json::JsonView jsonValue)
ServerCertificateScope & WithDestinationPorts(Aws::Vector< PortRange > &&value)
void SetSourcePorts(Aws::Vector< PortRange > &&value)
ServerCertificateScope & WithDestinations(Aws::Vector< Address > &&value)
ServerCertificateScope & AddDestinationPorts(const PortRange &value)
ServerCertificateScope & AddSourcePorts(const PortRange &value)
const Aws::Vector< PortRange > & GetDestinationPorts() const
ServerCertificateScope & WithSourcePorts(Aws::Vector< PortRange > &&value)
ServerCertificateScope & WithDestinations(const Aws::Vector< Address > &value)
ServerCertificateScope & WithDestinationPorts(const Aws::Vector< PortRange > &value)
ServerCertificateScope & WithSources(Aws::Vector< Address > &&value)
const Aws::Vector< Address > & GetSources() const
ServerCertificateScope & AddSourcePorts(PortRange &&value)
AWS_NETWORKFIREWALL_API ServerCertificateScope(Aws::Utils::Json::JsonView jsonValue)
void SetSourcePorts(const Aws::Vector< PortRange > &value)
const Aws::Vector< Address > & GetDestinations() const
ServerCertificateScope & WithSourcePorts(const Aws::Vector< PortRange > &value)
ServerCertificateScope & AddDestinations(const Address &value)
const Aws::Vector< PortRange > & GetSourcePorts() const
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
ServerCertificateScope & WithSources(const Aws::Vector< Address > &value)
ServerCertificateScope & AddDestinations(Address &&value)
ServerCertificateScope & AddSources(Address &&value)
void SetDestinationPorts(Aws::Vector< PortRange > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue