AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PacketHeaderStatementRequest.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:
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); }
54 inline PacketHeaderStatementRequest& AddSourceAddresses(const Aws::String& value) { m_sourceAddressesHasBeenSet = true; m_sourceAddresses.push_back(value); return *this; }
55 inline PacketHeaderStatementRequest& AddSourceAddresses(Aws::String&& value) { m_sourceAddressesHasBeenSet = true; m_sourceAddresses.push_back(std::move(value)); return *this; }
56 inline PacketHeaderStatementRequest& 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 PacketHeaderStatementRequest& AddDestinationAddresses(const Aws::String& value) { m_destinationAddressesHasBeenSet = true; m_destinationAddresses.push_back(value); return *this; }
70 inline PacketHeaderStatementRequest& AddDestinationAddresses(Aws::String&& value) { m_destinationAddressesHasBeenSet = true; m_destinationAddresses.push_back(std::move(value)); return *this; }
71 inline PacketHeaderStatementRequest& 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 PacketHeaderStatementRequest& WithSourcePorts(Aws::Vector<Aws::String>&& value) { SetSourcePorts(std::move(value)); return *this;}
84 inline PacketHeaderStatementRequest& AddSourcePorts(const Aws::String& value) { m_sourcePortsHasBeenSet = true; m_sourcePorts.push_back(value); return *this; }
85 inline PacketHeaderStatementRequest& AddSourcePorts(Aws::String&& value) { m_sourcePortsHasBeenSet = true; m_sourcePorts.push_back(std::move(value)); return *this; }
86 inline PacketHeaderStatementRequest& 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 PacketHeaderStatementRequest& AddDestinationPorts(const Aws::String& value) { m_destinationPortsHasBeenSet = true; m_destinationPorts.push_back(value); return *this; }
100 inline PacketHeaderStatementRequest& AddDestinationPorts(Aws::String&& value) { m_destinationPortsHasBeenSet = true; m_destinationPorts.push_back(std::move(value)); return *this; }
101 inline PacketHeaderStatementRequest& 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 PacketHeaderStatementRequest& AddSourcePrefixLists(const Aws::String& value) { m_sourcePrefixListsHasBeenSet = true; m_sourcePrefixLists.push_back(value); return *this; }
115 inline PacketHeaderStatementRequest& AddSourcePrefixLists(Aws::String&& value) { m_sourcePrefixListsHasBeenSet = true; m_sourcePrefixLists.push_back(std::move(value)); return *this; }
116 inline PacketHeaderStatementRequest& 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 PacketHeaderStatementRequest& AddDestinationPrefixLists(const Aws::String& value) { m_destinationPrefixListsHasBeenSet = true; m_destinationPrefixLists.push_back(value); return *this; }
130 inline PacketHeaderStatementRequest& AddDestinationPrefixLists(Aws::String&& value) { m_destinationPrefixListsHasBeenSet = true; m_destinationPrefixLists.push_back(std::move(value)); return *this; }
131 inline PacketHeaderStatementRequest& 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); }
143 inline PacketHeaderStatementRequest& WithProtocols(Aws::Vector<Protocol>&& value) { SetProtocols(std::move(value)); return *this;}
144 inline PacketHeaderStatementRequest& AddProtocols(const Protocol& value) { m_protocolsHasBeenSet = true; m_protocols.push_back(value); return *this; }
145 inline PacketHeaderStatementRequest& 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
AWS_EC2_API PacketHeaderStatementRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< Aws::String > & GetSourcePrefixLists() const
PacketHeaderStatementRequest & AddSourcePrefixLists(Aws::String &&value)
PacketHeaderStatementRequest & WithDestinationPrefixLists(const Aws::Vector< Aws::String > &value)
PacketHeaderStatementRequest & WithSourceAddresses(Aws::Vector< Aws::String > &&value)
PacketHeaderStatementRequest & AddDestinationAddresses(Aws::String &&value)
void SetDestinationPorts(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetDestinationPorts() const
void SetSourcePorts(const Aws::Vector< Aws::String > &value)
PacketHeaderStatementRequest & WithSourcePrefixLists(const Aws::Vector< Aws::String > &value)
PacketHeaderStatementRequest & WithSourcePorts(const Aws::Vector< Aws::String > &value)
void SetSourceAddresses(const Aws::Vector< Aws::String > &value)
void SetDestinationPrefixLists(const Aws::Vector< Aws::String > &value)
PacketHeaderStatementRequest & AddSourcePrefixLists(const char *value)
PacketHeaderStatementRequest & AddSourcePorts(const Aws::String &value)
void SetDestinationPorts(const Aws::Vector< Aws::String > &value)
PacketHeaderStatementRequest & AddSourceAddresses(Aws::String &&value)
PacketHeaderStatementRequest & AddDestinationPrefixLists(const Aws::String &value)
PacketHeaderStatementRequest & WithDestinationAddresses(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetSourceAddresses() const
PacketHeaderStatementRequest & AddProtocols(const Protocol &value)
PacketHeaderStatementRequest & WithProtocols(Aws::Vector< Protocol > &&value)
PacketHeaderStatementRequest & WithDestinationPorts(const Aws::Vector< Aws::String > &value)
void SetDestinationAddresses(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetSourcePorts() const
void SetSourceAddresses(Aws::Vector< Aws::String > &&value)
PacketHeaderStatementRequest & WithDestinationAddresses(const Aws::Vector< Aws::String > &value)
PacketHeaderStatementRequest & AddSourcePrefixLists(const Aws::String &value)
PacketHeaderStatementRequest & AddDestinationAddresses(const char *value)
void SetDestinationAddresses(const Aws::Vector< Aws::String > &value)
PacketHeaderStatementRequest & WithSourcePorts(Aws::Vector< Aws::String > &&value)
PacketHeaderStatementRequest & AddDestinationPorts(const char *value)
PacketHeaderStatementRequest & AddSourceAddresses(const char *value)
PacketHeaderStatementRequest & AddDestinationPorts(const Aws::String &value)
PacketHeaderStatementRequest & AddSourcePorts(Aws::String &&value)
void SetProtocols(const Aws::Vector< Protocol > &value)
AWS_EC2_API PacketHeaderStatementRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< Aws::String > & GetDestinationPrefixLists() const
PacketHeaderStatementRequest & WithSourceAddresses(const Aws::Vector< Aws::String > &value)
PacketHeaderStatementRequest & WithDestinationPorts(Aws::Vector< Aws::String > &&value)
PacketHeaderStatementRequest & AddDestinationPrefixLists(Aws::String &&value)
PacketHeaderStatementRequest & WithSourcePrefixLists(Aws::Vector< Aws::String > &&value)
PacketHeaderStatementRequest & AddDestinationPrefixLists(const char *value)
PacketHeaderStatementRequest & WithDestinationPrefixLists(Aws::Vector< Aws::String > &&value)
PacketHeaderStatementRequest & WithProtocols(const Aws::Vector< Protocol > &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::Vector< Aws::String > & GetDestinationAddresses() const
void SetSourcePorts(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Protocol > & GetProtocols() const
void SetSourcePrefixLists(Aws::Vector< Aws::String > &&value)
PacketHeaderStatementRequest & AddProtocols(Protocol &&value)
void SetDestinationPrefixLists(Aws::Vector< Aws::String > &&value)
PacketHeaderStatementRequest & AddDestinationAddresses(const Aws::String &value)
PacketHeaderStatementRequest & AddSourceAddresses(const Aws::String &value)
PacketHeaderStatementRequest & AddSourcePorts(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetSourcePrefixLists(const Aws::Vector< Aws::String > &value)
PacketHeaderStatementRequest & AddDestinationPorts(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