AWS SDK for C++  1.9.75
AWS SDK for C++
AnalysisPacketHeader.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace EC2
24 {
25 namespace Model
26 {
27 
36  {
37  public:
41 
42  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43  void OutputToStream(Aws::OStream& oStream, const char* location) const;
44 
45 
49  inline const Aws::Vector<Aws::String>& GetDestinationAddresses() const{ return m_destinationAddresses; }
50 
54  inline bool DestinationAddressesHasBeenSet() const { return m_destinationAddressesHasBeenSet; }
55 
59  inline void SetDestinationAddresses(const Aws::Vector<Aws::String>& value) { m_destinationAddressesHasBeenSet = true; m_destinationAddresses = value; }
60 
64  inline void SetDestinationAddresses(Aws::Vector<Aws::String>&& value) { m_destinationAddressesHasBeenSet = true; m_destinationAddresses = std::move(value); }
65 
69  inline AnalysisPacketHeader& WithDestinationAddresses(const Aws::Vector<Aws::String>& value) { SetDestinationAddresses(value); return *this;}
70 
74  inline AnalysisPacketHeader& WithDestinationAddresses(Aws::Vector<Aws::String>&& value) { SetDestinationAddresses(std::move(value)); return *this;}
75 
79  inline AnalysisPacketHeader& AddDestinationAddresses(const Aws::String& value) { m_destinationAddressesHasBeenSet = true; m_destinationAddresses.push_back(value); return *this; }
80 
84  inline AnalysisPacketHeader& AddDestinationAddresses(Aws::String&& value) { m_destinationAddressesHasBeenSet = true; m_destinationAddresses.push_back(std::move(value)); return *this; }
85 
89  inline AnalysisPacketHeader& AddDestinationAddresses(const char* value) { m_destinationAddressesHasBeenSet = true; m_destinationAddresses.push_back(value); return *this; }
90 
91 
95  inline const Aws::Vector<PortRange>& GetDestinationPortRanges() const{ return m_destinationPortRanges; }
96 
100  inline bool DestinationPortRangesHasBeenSet() const { return m_destinationPortRangesHasBeenSet; }
101 
105  inline void SetDestinationPortRanges(const Aws::Vector<PortRange>& value) { m_destinationPortRangesHasBeenSet = true; m_destinationPortRanges = value; }
106 
110  inline void SetDestinationPortRanges(Aws::Vector<PortRange>&& value) { m_destinationPortRangesHasBeenSet = true; m_destinationPortRanges = std::move(value); }
111 
115  inline AnalysisPacketHeader& WithDestinationPortRanges(const Aws::Vector<PortRange>& value) { SetDestinationPortRanges(value); return *this;}
116 
120  inline AnalysisPacketHeader& WithDestinationPortRanges(Aws::Vector<PortRange>&& value) { SetDestinationPortRanges(std::move(value)); return *this;}
121 
125  inline AnalysisPacketHeader& AddDestinationPortRanges(const PortRange& value) { m_destinationPortRangesHasBeenSet = true; m_destinationPortRanges.push_back(value); return *this; }
126 
130  inline AnalysisPacketHeader& AddDestinationPortRanges(PortRange&& value) { m_destinationPortRangesHasBeenSet = true; m_destinationPortRanges.push_back(std::move(value)); return *this; }
131 
132 
136  inline const Aws::String& GetProtocol() const{ return m_protocol; }
137 
141  inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
142 
146  inline void SetProtocol(const Aws::String& value) { m_protocolHasBeenSet = true; m_protocol = value; }
147 
151  inline void SetProtocol(Aws::String&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
152 
156  inline void SetProtocol(const char* value) { m_protocolHasBeenSet = true; m_protocol.assign(value); }
157 
161  inline AnalysisPacketHeader& WithProtocol(const Aws::String& value) { SetProtocol(value); return *this;}
162 
166  inline AnalysisPacketHeader& WithProtocol(Aws::String&& value) { SetProtocol(std::move(value)); return *this;}
167 
171  inline AnalysisPacketHeader& WithProtocol(const char* value) { SetProtocol(value); return *this;}
172 
173 
177  inline const Aws::Vector<Aws::String>& GetSourceAddresses() const{ return m_sourceAddresses; }
178 
182  inline bool SourceAddressesHasBeenSet() const { return m_sourceAddressesHasBeenSet; }
183 
187  inline void SetSourceAddresses(const Aws::Vector<Aws::String>& value) { m_sourceAddressesHasBeenSet = true; m_sourceAddresses = value; }
188 
192  inline void SetSourceAddresses(Aws::Vector<Aws::String>&& value) { m_sourceAddressesHasBeenSet = true; m_sourceAddresses = std::move(value); }
193 
197  inline AnalysisPacketHeader& WithSourceAddresses(const Aws::Vector<Aws::String>& value) { SetSourceAddresses(value); return *this;}
198 
202  inline AnalysisPacketHeader& WithSourceAddresses(Aws::Vector<Aws::String>&& value) { SetSourceAddresses(std::move(value)); return *this;}
203 
207  inline AnalysisPacketHeader& AddSourceAddresses(const Aws::String& value) { m_sourceAddressesHasBeenSet = true; m_sourceAddresses.push_back(value); return *this; }
208 
212  inline AnalysisPacketHeader& AddSourceAddresses(Aws::String&& value) { m_sourceAddressesHasBeenSet = true; m_sourceAddresses.push_back(std::move(value)); return *this; }
213 
217  inline AnalysisPacketHeader& AddSourceAddresses(const char* value) { m_sourceAddressesHasBeenSet = true; m_sourceAddresses.push_back(value); return *this; }
218 
219 
223  inline const Aws::Vector<PortRange>& GetSourcePortRanges() const{ return m_sourcePortRanges; }
224 
228  inline bool SourcePortRangesHasBeenSet() const { return m_sourcePortRangesHasBeenSet; }
229 
233  inline void SetSourcePortRanges(const Aws::Vector<PortRange>& value) { m_sourcePortRangesHasBeenSet = true; m_sourcePortRanges = value; }
234 
238  inline void SetSourcePortRanges(Aws::Vector<PortRange>&& value) { m_sourcePortRangesHasBeenSet = true; m_sourcePortRanges = std::move(value); }
239 
243  inline AnalysisPacketHeader& WithSourcePortRanges(const Aws::Vector<PortRange>& value) { SetSourcePortRanges(value); return *this;}
244 
248  inline AnalysisPacketHeader& WithSourcePortRanges(Aws::Vector<PortRange>&& value) { SetSourcePortRanges(std::move(value)); return *this;}
249 
253  inline AnalysisPacketHeader& AddSourcePortRanges(const PortRange& value) { m_sourcePortRangesHasBeenSet = true; m_sourcePortRanges.push_back(value); return *this; }
254 
258  inline AnalysisPacketHeader& AddSourcePortRanges(PortRange&& value) { m_sourcePortRangesHasBeenSet = true; m_sourcePortRanges.push_back(std::move(value)); return *this; }
259 
260  private:
261 
262  Aws::Vector<Aws::String> m_destinationAddresses;
263  bool m_destinationAddressesHasBeenSet;
264 
265  Aws::Vector<PortRange> m_destinationPortRanges;
266  bool m_destinationPortRangesHasBeenSet;
267 
268  Aws::String m_protocol;
269  bool m_protocolHasBeenSet;
270 
271  Aws::Vector<Aws::String> m_sourceAddresses;
272  bool m_sourceAddressesHasBeenSet;
273 
274  Aws::Vector<PortRange> m_sourcePortRanges;
275  bool m_sourcePortRangesHasBeenSet;
276  };
277 
278 } // namespace Model
279 } // namespace EC2
280 } // namespace Aws
Aws::EC2::Model::AnalysisPacketHeader::GetSourcePortRanges
const Aws::Vector< PortRange > & GetSourcePortRanges() const
Definition: AnalysisPacketHeader.h:223
Aws::EC2::Model::AnalysisPacketHeader::WithDestinationPortRanges
AnalysisPacketHeader & WithDestinationPortRanges(Aws::Vector< PortRange > &&value)
Definition: AnalysisPacketHeader.h:120
Aws::EC2::Model::AnalysisPacketHeader::SetDestinationPortRanges
void SetDestinationPortRanges(const Aws::Vector< PortRange > &value)
Definition: AnalysisPacketHeader.h:105
Aws::EC2::Model::AnalysisPacketHeader::WithProtocol
AnalysisPacketHeader & WithProtocol(Aws::String &&value)
Definition: AnalysisPacketHeader.h:166
Aws::EC2::Model::AnalysisPacketHeader::GetDestinationPortRanges
const Aws::Vector< PortRange > & GetDestinationPortRanges() const
Definition: AnalysisPacketHeader.h:95
Aws::EC2::Model::AnalysisPacketHeader::WithSourceAddresses
AnalysisPacketHeader & WithSourceAddresses(Aws::Vector< Aws::String > &&value)
Definition: AnalysisPacketHeader.h:202
Aws::EC2::Model::AnalysisPacketHeader::WithProtocol
AnalysisPacketHeader & WithProtocol(const char *value)
Definition: AnalysisPacketHeader.h:171
Aws::EC2::Model::AnalysisPacketHeader::AddSourceAddresses
AnalysisPacketHeader & AddSourceAddresses(const char *value)
Definition: AnalysisPacketHeader.h:217
Aws::EC2::Model::AnalysisPacketHeader::AddSourcePortRanges
AnalysisPacketHeader & AddSourcePortRanges(const PortRange &value)
Definition: AnalysisPacketHeader.h:253
Aws::EC2::Model::AnalysisPacketHeader::SetProtocol
void SetProtocol(Aws::String &&value)
Definition: AnalysisPacketHeader.h:151
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::AnalysisPacketHeader::AddSourceAddresses
AnalysisPacketHeader & AddSourceAddresses(Aws::String &&value)
Definition: AnalysisPacketHeader.h:212
Aws::EC2::Model::AnalysisPacketHeader::SetSourcePortRanges
void SetSourcePortRanges(Aws::Vector< PortRange > &&value)
Definition: AnalysisPacketHeader.h:238
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::AnalysisPacketHeader::SetDestinationAddresses
void SetDestinationAddresses(const Aws::Vector< Aws::String > &value)
Definition: AnalysisPacketHeader.h:59
AWSStreamFwd.h
AWSVector.h
Aws::EC2::Model::AnalysisPacketHeader::SetSourcePortRanges
void SetSourcePortRanges(const Aws::Vector< PortRange > &value)
Definition: AnalysisPacketHeader.h:233
Aws::EC2::Model::AnalysisPacketHeader::DestinationPortRangesHasBeenSet
bool DestinationPortRangesHasBeenSet() const
Definition: AnalysisPacketHeader.h:100
Aws::EC2::Model::AnalysisPacketHeader::GetSourceAddresses
const Aws::Vector< Aws::String > & GetSourceAddresses() const
Definition: AnalysisPacketHeader.h:177
Aws::EC2::Model::AnalysisPacketHeader::AddDestinationAddresses
AnalysisPacketHeader & AddDestinationAddresses(const Aws::String &value)
Definition: AnalysisPacketHeader.h:79
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::AnalysisPacketHeader::SetSourceAddresses
void SetSourceAddresses(Aws::Vector< Aws::String > &&value)
Definition: AnalysisPacketHeader.h:192
Aws::EC2::Model::AnalysisPacketHeader::SetProtocol
void SetProtocol(const Aws::String &value)
Definition: AnalysisPacketHeader.h:146
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::AnalysisPacketHeader::SourceAddressesHasBeenSet
bool SourceAddressesHasBeenSet() const
Definition: AnalysisPacketHeader.h:182
Aws::EC2::Model::AnalysisPacketHeader::DestinationAddressesHasBeenSet
bool DestinationAddressesHasBeenSet() const
Definition: AnalysisPacketHeader.h:54
Aws::EC2::Model::AnalysisPacketHeader::AnalysisPacketHeader
AnalysisPacketHeader(const Aws::Utils::Xml::XmlNode &xmlNode)
PortRange.h
Aws::EC2::Model::AnalysisPacketHeader::SetProtocol
void SetProtocol(const char *value)
Definition: AnalysisPacketHeader.h:156
Aws::EC2::Model::AnalysisPacketHeader::WithSourcePortRanges
AnalysisPacketHeader & WithSourcePortRanges(Aws::Vector< PortRange > &&value)
Definition: AnalysisPacketHeader.h:248
Aws::EC2::Model::AnalysisPacketHeader::AddSourceAddresses
AnalysisPacketHeader & AddSourceAddresses(const Aws::String &value)
Definition: AnalysisPacketHeader.h:207
Aws::EC2::Model::AnalysisPacketHeader::AddDestinationAddresses
AnalysisPacketHeader & AddDestinationAddresses(Aws::String &&value)
Definition: AnalysisPacketHeader.h:84
Aws::EC2::Model::AnalysisPacketHeader::ProtocolHasBeenSet
bool ProtocolHasBeenSet() const
Definition: AnalysisPacketHeader.h:141
AWSString.h
Aws::EC2::Model::AnalysisPacketHeader::SetDestinationPortRanges
void SetDestinationPortRanges(Aws::Vector< PortRange > &&value)
Definition: AnalysisPacketHeader.h:110
Aws::EC2::Model::AnalysisPacketHeader::WithDestinationAddresses
AnalysisPacketHeader & WithDestinationAddresses(const Aws::Vector< Aws::String > &value)
Definition: AnalysisPacketHeader.h:69
Aws::EC2::Model::AnalysisPacketHeader::AnalysisPacketHeader
AnalysisPacketHeader()
Aws::EC2::Model::AnalysisPacketHeader::GetProtocol
const Aws::String & GetProtocol() const
Definition: AnalysisPacketHeader.h:136
Aws::EC2::Model::AnalysisPacketHeader
Definition: AnalysisPacketHeader.h:36
Aws::EC2::Model::AnalysisPacketHeader::AddSourcePortRanges
AnalysisPacketHeader & AddSourcePortRanges(PortRange &&value)
Definition: AnalysisPacketHeader.h:258
Aws::EC2::Model::AnalysisPacketHeader::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::AnalysisPacketHeader::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::AnalysisPacketHeader::WithDestinationAddresses
AnalysisPacketHeader & WithDestinationAddresses(Aws::Vector< Aws::String > &&value)
Definition: AnalysisPacketHeader.h:74
Aws::EC2::Model::AnalysisPacketHeader::SetSourceAddresses
void SetSourceAddresses(const Aws::Vector< Aws::String > &value)
Definition: AnalysisPacketHeader.h:187
Aws::EC2::Model::AnalysisPacketHeader::operator=
AnalysisPacketHeader & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::AnalysisPacketHeader::AddDestinationAddresses
AnalysisPacketHeader & AddDestinationAddresses(const char *value)
Definition: AnalysisPacketHeader.h:89
Aws::EC2::Model::AnalysisPacketHeader::SetDestinationAddresses
void SetDestinationAddresses(Aws::Vector< Aws::String > &&value)
Definition: AnalysisPacketHeader.h:64
Aws::EC2::Model::AnalysisPacketHeader::AddDestinationPortRanges
AnalysisPacketHeader & AddDestinationPortRanges(const PortRange &value)
Definition: AnalysisPacketHeader.h:125
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::AnalysisPacketHeader::WithDestinationPortRanges
AnalysisPacketHeader & WithDestinationPortRanges(const Aws::Vector< PortRange > &value)
Definition: AnalysisPacketHeader.h:115
Aws::EC2::Model::PortRange
Definition: PortRange.h:30
Aws::EC2::Model::AnalysisPacketHeader::GetDestinationAddresses
const Aws::Vector< Aws::String > & GetDestinationAddresses() const
Definition: AnalysisPacketHeader.h:49
Aws::EC2::Model::AnalysisPacketHeader::SourcePortRangesHasBeenSet
bool SourcePortRangesHasBeenSet() const
Definition: AnalysisPacketHeader.h:228
EC2_EXPORTS.h
Aws::EC2::Model::AnalysisPacketHeader::WithSourceAddresses
AnalysisPacketHeader & WithSourceAddresses(const Aws::Vector< Aws::String > &value)
Definition: AnalysisPacketHeader.h:197
Aws::EC2::Model::AnalysisPacketHeader::WithProtocol
AnalysisPacketHeader & WithProtocol(const Aws::String &value)
Definition: AnalysisPacketHeader.h:161
Aws::EC2::Model::AnalysisPacketHeader::AddDestinationPortRanges
AnalysisPacketHeader & AddDestinationPortRanges(PortRange &&value)
Definition: AnalysisPacketHeader.h:130
Aws::EC2::Model::AnalysisPacketHeader::WithSourcePortRanges
AnalysisPacketHeader & WithSourcePortRanges(const Aws::Vector< PortRange > &value)
Definition: AnalysisPacketHeader.h:243