AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AnalysisPacketHeader.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/PortRange.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
36 {
37 public:
38 AWS_EC2_API AnalysisPacketHeader();
41
42 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
50 inline const Aws::Vector<Aws::String>& GetDestinationAddresses() const{ return m_destinationAddresses; }
51 inline bool DestinationAddressesHasBeenSet() const { return m_destinationAddressesHasBeenSet; }
52 inline void SetDestinationAddresses(const Aws::Vector<Aws::String>& value) { m_destinationAddressesHasBeenSet = true; m_destinationAddresses = value; }
53 inline void SetDestinationAddresses(Aws::Vector<Aws::String>&& value) { m_destinationAddressesHasBeenSet = true; m_destinationAddresses = std::move(value); }
56 inline AnalysisPacketHeader& AddDestinationAddresses(const Aws::String& value) { m_destinationAddressesHasBeenSet = true; m_destinationAddresses.push_back(value); return *this; }
57 inline AnalysisPacketHeader& AddDestinationAddresses(Aws::String&& value) { m_destinationAddressesHasBeenSet = true; m_destinationAddresses.push_back(std::move(value)); return *this; }
58 inline AnalysisPacketHeader& AddDestinationAddresses(const char* value) { m_destinationAddressesHasBeenSet = true; m_destinationAddresses.push_back(value); return *this; }
60
62
65 inline const Aws::Vector<PortRange>& GetDestinationPortRanges() const{ return m_destinationPortRanges; }
66 inline bool DestinationPortRangesHasBeenSet() const { return m_destinationPortRangesHasBeenSet; }
67 inline void SetDestinationPortRanges(const Aws::Vector<PortRange>& value) { m_destinationPortRangesHasBeenSet = true; m_destinationPortRanges = value; }
68 inline void SetDestinationPortRanges(Aws::Vector<PortRange>&& value) { m_destinationPortRangesHasBeenSet = true; m_destinationPortRanges = std::move(value); }
71 inline AnalysisPacketHeader& AddDestinationPortRanges(const PortRange& value) { m_destinationPortRangesHasBeenSet = true; m_destinationPortRanges.push_back(value); return *this; }
72 inline AnalysisPacketHeader& AddDestinationPortRanges(PortRange&& value) { m_destinationPortRangesHasBeenSet = true; m_destinationPortRanges.push_back(std::move(value)); return *this; }
74
76
79 inline const Aws::String& GetProtocol() const{ return m_protocol; }
80 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
81 inline void SetProtocol(const Aws::String& value) { m_protocolHasBeenSet = true; m_protocol = value; }
82 inline void SetProtocol(Aws::String&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
83 inline void SetProtocol(const char* value) { m_protocolHasBeenSet = true; m_protocol.assign(value); }
84 inline AnalysisPacketHeader& WithProtocol(const Aws::String& value) { SetProtocol(value); return *this;}
85 inline AnalysisPacketHeader& WithProtocol(Aws::String&& value) { SetProtocol(std::move(value)); return *this;}
86 inline AnalysisPacketHeader& WithProtocol(const char* value) { SetProtocol(value); return *this;}
88
90
93 inline const Aws::Vector<Aws::String>& GetSourceAddresses() const{ return m_sourceAddresses; }
94 inline bool SourceAddressesHasBeenSet() const { return m_sourceAddressesHasBeenSet; }
95 inline void SetSourceAddresses(const Aws::Vector<Aws::String>& value) { m_sourceAddressesHasBeenSet = true; m_sourceAddresses = value; }
96 inline void SetSourceAddresses(Aws::Vector<Aws::String>&& value) { m_sourceAddressesHasBeenSet = true; m_sourceAddresses = std::move(value); }
98 inline AnalysisPacketHeader& WithSourceAddresses(Aws::Vector<Aws::String>&& value) { SetSourceAddresses(std::move(value)); return *this;}
99 inline AnalysisPacketHeader& AddSourceAddresses(const Aws::String& value) { m_sourceAddressesHasBeenSet = true; m_sourceAddresses.push_back(value); return *this; }
100 inline AnalysisPacketHeader& AddSourceAddresses(Aws::String&& value) { m_sourceAddressesHasBeenSet = true; m_sourceAddresses.push_back(std::move(value)); return *this; }
101 inline AnalysisPacketHeader& AddSourceAddresses(const char* value) { m_sourceAddressesHasBeenSet = true; m_sourceAddresses.push_back(value); return *this; }
103
105
108 inline const Aws::Vector<PortRange>& GetSourcePortRanges() const{ return m_sourcePortRanges; }
109 inline bool SourcePortRangesHasBeenSet() const { return m_sourcePortRangesHasBeenSet; }
110 inline void SetSourcePortRanges(const Aws::Vector<PortRange>& value) { m_sourcePortRangesHasBeenSet = true; m_sourcePortRanges = value; }
111 inline void SetSourcePortRanges(Aws::Vector<PortRange>&& value) { m_sourcePortRangesHasBeenSet = true; m_sourcePortRanges = std::move(value); }
113 inline AnalysisPacketHeader& WithSourcePortRanges(Aws::Vector<PortRange>&& value) { SetSourcePortRanges(std::move(value)); return *this;}
114 inline AnalysisPacketHeader& AddSourcePortRanges(const PortRange& value) { m_sourcePortRangesHasBeenSet = true; m_sourcePortRanges.push_back(value); return *this; }
115 inline AnalysisPacketHeader& AddSourcePortRanges(PortRange&& value) { m_sourcePortRangesHasBeenSet = true; m_sourcePortRanges.push_back(std::move(value)); return *this; }
117 private:
118
119 Aws::Vector<Aws::String> m_destinationAddresses;
120 bool m_destinationAddressesHasBeenSet = false;
121
122 Aws::Vector<PortRange> m_destinationPortRanges;
123 bool m_destinationPortRangesHasBeenSet = false;
124
125 Aws::String m_protocol;
126 bool m_protocolHasBeenSet = false;
127
128 Aws::Vector<Aws::String> m_sourceAddresses;
129 bool m_sourceAddressesHasBeenSet = false;
130
131 Aws::Vector<PortRange> m_sourcePortRanges;
132 bool m_sourcePortRangesHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace EC2
137} // namespace Aws
const Aws::Vector< PortRange > & GetDestinationPortRanges() const
AnalysisPacketHeader & AddDestinationAddresses(const Aws::String &value)
AnalysisPacketHeader & WithProtocol(const char *value)
AnalysisPacketHeader & WithProtocol(const Aws::String &value)
AnalysisPacketHeader & AddSourceAddresses(const char *value)
AnalysisPacketHeader & WithSourceAddresses(Aws::Vector< Aws::String > &&value)
void SetSourcePortRanges(const Aws::Vector< PortRange > &value)
void SetSourceAddresses(const Aws::Vector< Aws::String > &value)
const Aws::String & GetProtocol() const
void SetDestinationAddresses(Aws::Vector< Aws::String > &&value)
AWS_EC2_API AnalysisPacketHeader(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< PortRange > & GetSourcePortRanges() const
void SetSourcePortRanges(Aws::Vector< PortRange > &&value)
AnalysisPacketHeader & AddSourcePortRanges(const PortRange &value)
const Aws::Vector< Aws::String > & GetDestinationAddresses() const
const Aws::Vector< Aws::String > & GetSourceAddresses() const
AnalysisPacketHeader & WithDestinationPortRanges(const Aws::Vector< PortRange > &value)
void SetSourceAddresses(Aws::Vector< Aws::String > &&value)
AnalysisPacketHeader & WithDestinationAddresses(Aws::Vector< Aws::String > &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetDestinationPortRanges(Aws::Vector< PortRange > &&value)
AnalysisPacketHeader & AddSourceAddresses(const Aws::String &value)
AnalysisPacketHeader & WithSourcePortRanges(const Aws::Vector< PortRange > &value)
AnalysisPacketHeader & WithProtocol(Aws::String &&value)
void SetDestinationPortRanges(const Aws::Vector< PortRange > &value)
AnalysisPacketHeader & AddSourcePortRanges(PortRange &&value)
AnalysisPacketHeader & WithSourceAddresses(const Aws::Vector< Aws::String > &value)
AnalysisPacketHeader & WithSourcePortRanges(Aws::Vector< PortRange > &&value)
AnalysisPacketHeader & WithDestinationAddresses(const Aws::Vector< Aws::String > &value)
AWS_EC2_API AnalysisPacketHeader & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AnalysisPacketHeader & AddDestinationAddresses(const char *value)
AnalysisPacketHeader & AddSourceAddresses(Aws::String &&value)
void SetDestinationAddresses(const Aws::Vector< Aws::String > &value)
AnalysisPacketHeader & AddDestinationPortRanges(PortRange &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AnalysisPacketHeader & WithDestinationPortRanges(Aws::Vector< PortRange > &&value)
AnalysisPacketHeader & AddDestinationAddresses(Aws::String &&value)
AnalysisPacketHeader & AddDestinationPortRanges(const PortRange &value)
void SetProtocol(const 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