AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSourceAddresses(const Aws::Vector<Aws::String>& value) { m_sourceAddressesHasBeenSet = true; m_sourceAddresses = value; }
51 inline void SetSourceAddresses(Aws::Vector<Aws::String>&& value) { m_sourceAddressesHasBeenSet = true; m_sourceAddresses = std::move(value); }
53 inline PacketHeaderStatement& WithSourceAddresses(Aws::Vector<Aws::String>&& value) { SetSourceAddresses(std::move(value)); return *this;}
54 inline PacketHeaderStatement& AddSourceAddresses(const Aws::String& value) { m_sourceAddressesHasBeenSet = true; m_sourceAddresses.push_back(value); return *this; }
55 inline PacketHeaderStatement& AddSourceAddresses(Aws::String&& value) { m_sourceAddressesHasBeenSet = true; m_sourceAddresses.push_back(std::move(value)); return *this; }
56 inline PacketHeaderStatement& AddSourceAddresses(const char* value) { m_sourceAddressesHasBeenSet = true; m_sourceAddresses.push_back(value); return *this; }
58
60
63 inline const Aws::Vector<Aws::String>& GetDestinationAddresses() const{ return m_destinationAddresses; }
64 inline bool DestinationAddressesHasBeenSet() const { return m_destinationAddressesHasBeenSet; }
65 inline void SetDestinationAddresses(const Aws::Vector<Aws::String>& value) { m_destinationAddressesHasBeenSet = true; m_destinationAddresses = value; }
66 inline void SetDestinationAddresses(Aws::Vector<Aws::String>&& value) { m_destinationAddressesHasBeenSet = true; m_destinationAddresses = std::move(value); }
69 inline PacketHeaderStatement& AddDestinationAddresses(const Aws::String& value) { m_destinationAddressesHasBeenSet = true; m_destinationAddresses.push_back(value); return *this; }
70 inline PacketHeaderStatement& AddDestinationAddresses(Aws::String&& value) { m_destinationAddressesHasBeenSet = true; m_destinationAddresses.push_back(std::move(value)); return *this; }
71 inline PacketHeaderStatement& AddDestinationAddresses(const char* value) { m_destinationAddressesHasBeenSet = true; m_destinationAddresses.push_back(value); return *this; }
73
75
78 inline const Aws::Vector<Aws::String>& GetSourcePorts() const{ return m_sourcePorts; }
79 inline bool SourcePortsHasBeenSet() const { return m_sourcePortsHasBeenSet; }
80 inline void SetSourcePorts(const Aws::Vector<Aws::String>& value) { m_sourcePortsHasBeenSet = true; m_sourcePorts = value; }
81 inline void SetSourcePorts(Aws::Vector<Aws::String>&& value) { m_sourcePortsHasBeenSet = true; m_sourcePorts = std::move(value); }
83 inline PacketHeaderStatement& WithSourcePorts(Aws::Vector<Aws::String>&& value) { SetSourcePorts(std::move(value)); return *this;}
84 inline PacketHeaderStatement& AddSourcePorts(const Aws::String& value) { m_sourcePortsHasBeenSet = true; m_sourcePorts.push_back(value); return *this; }
85 inline PacketHeaderStatement& AddSourcePorts(Aws::String&& value) { m_sourcePortsHasBeenSet = true; m_sourcePorts.push_back(std::move(value)); return *this; }
86 inline PacketHeaderStatement& AddSourcePorts(const char* value) { m_sourcePortsHasBeenSet = true; m_sourcePorts.push_back(value); return *this; }
88
90
93 inline const Aws::Vector<Aws::String>& GetDestinationPorts() const{ return m_destinationPorts; }
94 inline bool DestinationPortsHasBeenSet() const { return m_destinationPortsHasBeenSet; }
95 inline void SetDestinationPorts(const Aws::Vector<Aws::String>& value) { m_destinationPortsHasBeenSet = true; m_destinationPorts = value; }
96 inline void SetDestinationPorts(Aws::Vector<Aws::String>&& value) { m_destinationPortsHasBeenSet = true; m_destinationPorts = std::move(value); }
99 inline PacketHeaderStatement& AddDestinationPorts(const Aws::String& value) { m_destinationPortsHasBeenSet = true; m_destinationPorts.push_back(value); return *this; }
100 inline PacketHeaderStatement& AddDestinationPorts(Aws::String&& value) { m_destinationPortsHasBeenSet = true; m_destinationPorts.push_back(std::move(value)); return *this; }
101 inline PacketHeaderStatement& AddDestinationPorts(const char* value) { m_destinationPortsHasBeenSet = true; m_destinationPorts.push_back(value); return *this; }
103
105
108 inline const Aws::Vector<Aws::String>& GetSourcePrefixLists() const{ return m_sourcePrefixLists; }
109 inline bool SourcePrefixListsHasBeenSet() const { return m_sourcePrefixListsHasBeenSet; }
110 inline void SetSourcePrefixLists(const Aws::Vector<Aws::String>& value) { m_sourcePrefixListsHasBeenSet = true; m_sourcePrefixLists = value; }
111 inline void SetSourcePrefixLists(Aws::Vector<Aws::String>&& value) { m_sourcePrefixListsHasBeenSet = true; m_sourcePrefixLists = std::move(value); }
114 inline PacketHeaderStatement& AddSourcePrefixLists(const Aws::String& value) { m_sourcePrefixListsHasBeenSet = true; m_sourcePrefixLists.push_back(value); return *this; }
115 inline PacketHeaderStatement& AddSourcePrefixLists(Aws::String&& value) { m_sourcePrefixListsHasBeenSet = true; m_sourcePrefixLists.push_back(std::move(value)); return *this; }
116 inline PacketHeaderStatement& AddSourcePrefixLists(const char* value) { m_sourcePrefixListsHasBeenSet = true; m_sourcePrefixLists.push_back(value); return *this; }
118
120
123 inline const Aws::Vector<Aws::String>& GetDestinationPrefixLists() const{ return m_destinationPrefixLists; }
124 inline bool DestinationPrefixListsHasBeenSet() const { return m_destinationPrefixListsHasBeenSet; }
125 inline void SetDestinationPrefixLists(const Aws::Vector<Aws::String>& value) { m_destinationPrefixListsHasBeenSet = true; m_destinationPrefixLists = value; }
126 inline void SetDestinationPrefixLists(Aws::Vector<Aws::String>&& value) { m_destinationPrefixListsHasBeenSet = true; m_destinationPrefixLists = std::move(value); }
129 inline PacketHeaderStatement& AddDestinationPrefixLists(const Aws::String& value) { m_destinationPrefixListsHasBeenSet = true; m_destinationPrefixLists.push_back(value); return *this; }
130 inline PacketHeaderStatement& AddDestinationPrefixLists(Aws::String&& value) { m_destinationPrefixListsHasBeenSet = true; m_destinationPrefixLists.push_back(std::move(value)); return *this; }
131 inline PacketHeaderStatement& AddDestinationPrefixLists(const char* value) { m_destinationPrefixListsHasBeenSet = true; m_destinationPrefixLists.push_back(value); return *this; }
133
135
138 inline const Aws::Vector<Protocol>& GetProtocols() const{ return m_protocols; }
139 inline bool ProtocolsHasBeenSet() const { return m_protocolsHasBeenSet; }
140 inline void SetProtocols(const Aws::Vector<Protocol>& value) { m_protocolsHasBeenSet = true; m_protocols = value; }
141 inline void SetProtocols(Aws::Vector<Protocol>&& value) { m_protocolsHasBeenSet = true; m_protocols = std::move(value); }
142 inline PacketHeaderStatement& WithProtocols(const Aws::Vector<Protocol>& value) { SetProtocols(value); return *this;}
143 inline PacketHeaderStatement& WithProtocols(Aws::Vector<Protocol>&& value) { SetProtocols(std::move(value)); return *this;}
144 inline PacketHeaderStatement& AddProtocols(const Protocol& value) { m_protocolsHasBeenSet = true; m_protocols.push_back(value); return *this; }
145 inline PacketHeaderStatement& AddProtocols(Protocol&& value) { m_protocolsHasBeenSet = true; m_protocols.push_back(std::move(value)); return *this; }
147 private:
148
149 Aws::Vector<Aws::String> m_sourceAddresses;
150 bool m_sourceAddressesHasBeenSet = false;
151
152 Aws::Vector<Aws::String> m_destinationAddresses;
153 bool m_destinationAddressesHasBeenSet = false;
154
155 Aws::Vector<Aws::String> m_sourcePorts;
156 bool m_sourcePortsHasBeenSet = false;
157
158 Aws::Vector<Aws::String> m_destinationPorts;
159 bool m_destinationPortsHasBeenSet = false;
160
161 Aws::Vector<Aws::String> m_sourcePrefixLists;
162 bool m_sourcePrefixListsHasBeenSet = false;
163
164 Aws::Vector<Aws::String> m_destinationPrefixLists;
165 bool m_destinationPrefixListsHasBeenSet = false;
166
167 Aws::Vector<Protocol> m_protocols;
168 bool m_protocolsHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace EC2
173} // namespace Aws
void SetDestinationPorts(Aws::Vector< Aws::String > &&value)
PacketHeaderStatement & WithProtocols(const Aws::Vector< Protocol > &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
PacketHeaderStatement & AddDestinationPrefixLists(Aws::String &&value)
PacketHeaderStatement & AddSourceAddresses(const Aws::String &value)
const Aws::Vector< Aws::String > & GetDestinationAddresses() const
PacketHeaderStatement & AddDestinationPrefixLists(const char *value)
void SetSourcePrefixLists(Aws::Vector< Aws::String > &&value)
PacketHeaderStatement & AddDestinationPorts(const char *value)
void SetSourcePorts(const Aws::Vector< Aws::String > &value)
void SetProtocols(const Aws::Vector< Protocol > &value)
PacketHeaderStatement & WithProtocols(Aws::Vector< Protocol > &&value)
PacketHeaderStatement & AddDestinationPorts(Aws::String &&value)
PacketHeaderStatement & WithSourceAddresses(const Aws::Vector< Aws::String > &value)
PacketHeaderStatement & AddSourcePrefixLists(const char *value)
PacketHeaderStatement & AddDestinationPorts(const Aws::String &value)
PacketHeaderStatement & WithDestinationAddresses(Aws::Vector< Aws::String > &&value)
PacketHeaderStatement & AddDestinationPrefixLists(const Aws::String &value)
void SetDestinationPrefixLists(Aws::Vector< Aws::String > &&value)
PacketHeaderStatement & AddProtocols(const Protocol &value)
void SetSourcePrefixLists(const Aws::Vector< Aws::String > &value)
PacketHeaderStatement & WithDestinationPrefixLists(const Aws::Vector< Aws::String > &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
PacketHeaderStatement & WithDestinationAddresses(const Aws::Vector< Aws::String > &value)
PacketHeaderStatement & AddSourcePorts(const Aws::String &value)
const Aws::Vector< Aws::String > & GetDestinationPrefixLists() const
PacketHeaderStatement & WithSourcePrefixLists(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetSourcePrefixLists() const
void SetProtocols(Aws::Vector< Protocol > &&value)
PacketHeaderStatement & AddSourcePorts(const char *value)
PacketHeaderStatement & AddDestinationAddresses(Aws::String &&value)
PacketHeaderStatement & AddSourceAddresses(Aws::String &&value)
const Aws::Vector< Aws::String > & GetDestinationPorts() const
PacketHeaderStatement & AddDestinationAddresses(const Aws::String &value)
PacketHeaderStatement & WithDestinationPorts(Aws::Vector< Aws::String > &&value)
PacketHeaderStatement & AddSourceAddresses(const char *value)
AWS_EC2_API PacketHeaderStatement & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
PacketHeaderStatement & WithSourcePorts(const Aws::Vector< Aws::String > &value)
PacketHeaderStatement & AddProtocols(Protocol &&value)
PacketHeaderStatement & AddDestinationAddresses(const char *value)
void SetSourceAddresses(const Aws::Vector< Aws::String > &value)
AWS_EC2_API PacketHeaderStatement(const Aws::Utils::Xml::XmlNode &xmlNode)
PacketHeaderStatement & WithSourceAddresses(Aws::Vector< Aws::String > &&value)
void SetDestinationPrefixLists(const Aws::Vector< Aws::String > &value)
void SetSourcePorts(Aws::Vector< Aws::String > &&value)
PacketHeaderStatement & WithDestinationPrefixLists(Aws::Vector< Aws::String > &&value)
void SetSourceAddresses(Aws::Vector< Aws::String > &&value)
void SetDestinationAddresses(Aws::Vector< Aws::String > &&value)
PacketHeaderStatement & WithSourcePrefixLists(const Aws::Vector< Aws::String > &value)
PacketHeaderStatement & AddSourcePrefixLists(const Aws::String &value)
const Aws::Vector< Aws::String > & GetSourceAddresses() const
PacketHeaderStatement & WithDestinationPorts(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetSourcePorts() const
PacketHeaderStatement & AddSourcePrefixLists(Aws::String &&value)
PacketHeaderStatement & AddSourcePorts(Aws::String &&value)
const Aws::Vector< Protocol > & GetProtocols() const
void SetDestinationAddresses(const Aws::Vector< Aws::String > &value)
PacketHeaderStatement & WithSourcePorts(Aws::Vector< Aws::String > &&value)
void SetDestinationPorts(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream