AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PacketHeaderStatement.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ec2/model/Protocol.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace EC2
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_EC2_API PacketHeaderStatement() = default;
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::Vector<Aws::String>& GetSourceAddresses() const { return m_sourceAddresses; }
49 inline bool SourceAddressesHasBeenSet() const { return m_sourceAddressesHasBeenSet; }
50 template<typename SourceAddressesT = Aws::Vector<Aws::String>>
51 void SetSourceAddresses(SourceAddressesT&& value) { m_sourceAddressesHasBeenSet = true; m_sourceAddresses = std::forward<SourceAddressesT>(value); }
52 template<typename SourceAddressesT = Aws::Vector<Aws::String>>
53 PacketHeaderStatement& WithSourceAddresses(SourceAddressesT&& value) { SetSourceAddresses(std::forward<SourceAddressesT>(value)); return *this;}
54 template<typename SourceAddressesT = Aws::String>
55 PacketHeaderStatement& AddSourceAddresses(SourceAddressesT&& value) { m_sourceAddressesHasBeenSet = true; m_sourceAddresses.emplace_back(std::forward<SourceAddressesT>(value)); return *this; }
57
59
62 inline const Aws::Vector<Aws::String>& GetDestinationAddresses() const { return m_destinationAddresses; }
63 inline bool DestinationAddressesHasBeenSet() const { return m_destinationAddressesHasBeenSet; }
64 template<typename DestinationAddressesT = Aws::Vector<Aws::String>>
65 void SetDestinationAddresses(DestinationAddressesT&& value) { m_destinationAddressesHasBeenSet = true; m_destinationAddresses = std::forward<DestinationAddressesT>(value); }
66 template<typename DestinationAddressesT = Aws::Vector<Aws::String>>
67 PacketHeaderStatement& WithDestinationAddresses(DestinationAddressesT&& value) { SetDestinationAddresses(std::forward<DestinationAddressesT>(value)); return *this;}
68 template<typename DestinationAddressesT = Aws::String>
69 PacketHeaderStatement& AddDestinationAddresses(DestinationAddressesT&& value) { m_destinationAddressesHasBeenSet = true; m_destinationAddresses.emplace_back(std::forward<DestinationAddressesT>(value)); return *this; }
71
73
76 inline const Aws::Vector<Aws::String>& GetSourcePorts() const { return m_sourcePorts; }
77 inline bool SourcePortsHasBeenSet() const { return m_sourcePortsHasBeenSet; }
78 template<typename SourcePortsT = Aws::Vector<Aws::String>>
79 void SetSourcePorts(SourcePortsT&& value) { m_sourcePortsHasBeenSet = true; m_sourcePorts = std::forward<SourcePortsT>(value); }
80 template<typename SourcePortsT = Aws::Vector<Aws::String>>
81 PacketHeaderStatement& WithSourcePorts(SourcePortsT&& value) { SetSourcePorts(std::forward<SourcePortsT>(value)); return *this;}
82 template<typename SourcePortsT = Aws::String>
83 PacketHeaderStatement& AddSourcePorts(SourcePortsT&& value) { m_sourcePortsHasBeenSet = true; m_sourcePorts.emplace_back(std::forward<SourcePortsT>(value)); return *this; }
85
87
90 inline const Aws::Vector<Aws::String>& GetDestinationPorts() const { return m_destinationPorts; }
91 inline bool DestinationPortsHasBeenSet() const { return m_destinationPortsHasBeenSet; }
92 template<typename DestinationPortsT = Aws::Vector<Aws::String>>
93 void SetDestinationPorts(DestinationPortsT&& value) { m_destinationPortsHasBeenSet = true; m_destinationPorts = std::forward<DestinationPortsT>(value); }
94 template<typename DestinationPortsT = Aws::Vector<Aws::String>>
95 PacketHeaderStatement& WithDestinationPorts(DestinationPortsT&& value) { SetDestinationPorts(std::forward<DestinationPortsT>(value)); return *this;}
96 template<typename DestinationPortsT = Aws::String>
97 PacketHeaderStatement& AddDestinationPorts(DestinationPortsT&& value) { m_destinationPortsHasBeenSet = true; m_destinationPorts.emplace_back(std::forward<DestinationPortsT>(value)); return *this; }
99
101
104 inline const Aws::Vector<Aws::String>& GetSourcePrefixLists() const { return m_sourcePrefixLists; }
105 inline bool SourcePrefixListsHasBeenSet() const { return m_sourcePrefixListsHasBeenSet; }
106 template<typename SourcePrefixListsT = Aws::Vector<Aws::String>>
107 void SetSourcePrefixLists(SourcePrefixListsT&& value) { m_sourcePrefixListsHasBeenSet = true; m_sourcePrefixLists = std::forward<SourcePrefixListsT>(value); }
108 template<typename SourcePrefixListsT = Aws::Vector<Aws::String>>
109 PacketHeaderStatement& WithSourcePrefixLists(SourcePrefixListsT&& value) { SetSourcePrefixLists(std::forward<SourcePrefixListsT>(value)); return *this;}
110 template<typename SourcePrefixListsT = Aws::String>
111 PacketHeaderStatement& AddSourcePrefixLists(SourcePrefixListsT&& value) { m_sourcePrefixListsHasBeenSet = true; m_sourcePrefixLists.emplace_back(std::forward<SourcePrefixListsT>(value)); return *this; }
113
115
118 inline const Aws::Vector<Aws::String>& GetDestinationPrefixLists() const { return m_destinationPrefixLists; }
119 inline bool DestinationPrefixListsHasBeenSet() const { return m_destinationPrefixListsHasBeenSet; }
120 template<typename DestinationPrefixListsT = Aws::Vector<Aws::String>>
121 void SetDestinationPrefixLists(DestinationPrefixListsT&& value) { m_destinationPrefixListsHasBeenSet = true; m_destinationPrefixLists = std::forward<DestinationPrefixListsT>(value); }
122 template<typename DestinationPrefixListsT = Aws::Vector<Aws::String>>
123 PacketHeaderStatement& WithDestinationPrefixLists(DestinationPrefixListsT&& value) { SetDestinationPrefixLists(std::forward<DestinationPrefixListsT>(value)); return *this;}
124 template<typename DestinationPrefixListsT = Aws::String>
125 PacketHeaderStatement& AddDestinationPrefixLists(DestinationPrefixListsT&& value) { m_destinationPrefixListsHasBeenSet = true; m_destinationPrefixLists.emplace_back(std::forward<DestinationPrefixListsT>(value)); return *this; }
127
129
132 inline const Aws::Vector<Protocol>& GetProtocols() const { return m_protocols; }
133 inline bool ProtocolsHasBeenSet() const { return m_protocolsHasBeenSet; }
134 template<typename ProtocolsT = Aws::Vector<Protocol>>
135 void SetProtocols(ProtocolsT&& value) { m_protocolsHasBeenSet = true; m_protocols = std::forward<ProtocolsT>(value); }
136 template<typename ProtocolsT = Aws::Vector<Protocol>>
137 PacketHeaderStatement& WithProtocols(ProtocolsT&& value) { SetProtocols(std::forward<ProtocolsT>(value)); return *this;}
138 inline PacketHeaderStatement& AddProtocols(Protocol value) { m_protocolsHasBeenSet = true; m_protocols.push_back(value); return *this; }
140 private:
141
142 Aws::Vector<Aws::String> m_sourceAddresses;
143 bool m_sourceAddressesHasBeenSet = false;
144
145 Aws::Vector<Aws::String> m_destinationAddresses;
146 bool m_destinationAddressesHasBeenSet = false;
147
148 Aws::Vector<Aws::String> m_sourcePorts;
149 bool m_sourcePortsHasBeenSet = false;
150
151 Aws::Vector<Aws::String> m_destinationPorts;
152 bool m_destinationPortsHasBeenSet = false;
153
154 Aws::Vector<Aws::String> m_sourcePrefixLists;
155 bool m_sourcePrefixListsHasBeenSet = false;
156
157 Aws::Vector<Aws::String> m_destinationPrefixLists;
158 bool m_destinationPrefixListsHasBeenSet = false;
159
160 Aws::Vector<Protocol> m_protocols;
161 bool m_protocolsHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace EC2
166} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::Vector< Aws::String > & GetDestinationAddresses() const
void SetDestinationPorts(DestinationPortsT &&value)
void SetDestinationPrefixLists(DestinationPrefixListsT &&value)
void SetSourceAddresses(SourceAddressesT &&value)
PacketHeaderStatement & AddSourceAddresses(SourceAddressesT &&value)
PacketHeaderStatement & WithProtocols(ProtocolsT &&value)
AWS_EC2_API PacketHeaderStatement()=default
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
PacketHeaderStatement & WithSourceAddresses(SourceAddressesT &&value)
const Aws::Vector< Aws::String > & GetDestinationPrefixLists() const
const Aws::Vector< Aws::String > & GetSourcePrefixLists() const
PacketHeaderStatement & AddSourcePorts(SourcePortsT &&value)
PacketHeaderStatement & WithDestinationPorts(DestinationPortsT &&value)
const Aws::Vector< Aws::String > & GetDestinationPorts() const
PacketHeaderStatement & AddSourcePrefixLists(SourcePrefixListsT &&value)
PacketHeaderStatement & AddDestinationAddresses(DestinationAddressesT &&value)
void SetDestinationAddresses(DestinationAddressesT &&value)
AWS_EC2_API PacketHeaderStatement & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
PacketHeaderStatement & AddDestinationPrefixLists(DestinationPrefixListsT &&value)
PacketHeaderStatement & WithSourcePrefixLists(SourcePrefixListsT &&value)
AWS_EC2_API PacketHeaderStatement(const Aws::Utils::Xml::XmlNode &xmlNode)
PacketHeaderStatement & AddProtocols(Protocol value)
PacketHeaderStatement & AddDestinationPorts(DestinationPortsT &&value)
PacketHeaderStatement & WithSourcePorts(SourcePortsT &&value)
PacketHeaderStatement & WithDestinationAddresses(DestinationAddressesT &&value)
const Aws::Vector< Aws::String > & GetSourceAddresses() const
void SetSourcePrefixLists(SourcePrefixListsT &&value)
const Aws::Vector< Aws::String > & GetSourcePorts() const
const Aws::Vector< Protocol > & GetProtocols() const
PacketHeaderStatement & WithDestinationPrefixLists(DestinationPrefixListsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream