AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
AnalysisPacketHeader.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/PortRange.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2 {
22namespace Model {
23
32 public:
33 AWS_EC2_API AnalysisPacketHeader() = default;
36
37 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
38 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
41
44 inline const Aws::Vector<Aws::String>& GetDestinationAddresses() const { return m_destinationAddresses; }
45 inline bool DestinationAddressesHasBeenSet() const { return m_destinationAddressesHasBeenSet; }
46 template <typename DestinationAddressesT = Aws::Vector<Aws::String>>
47 void SetDestinationAddresses(DestinationAddressesT&& value) {
48 m_destinationAddressesHasBeenSet = true;
49 m_destinationAddresses = std::forward<DestinationAddressesT>(value);
50 }
51 template <typename DestinationAddressesT = Aws::Vector<Aws::String>>
52 AnalysisPacketHeader& WithDestinationAddresses(DestinationAddressesT&& value) {
53 SetDestinationAddresses(std::forward<DestinationAddressesT>(value));
54 return *this;
55 }
56 template <typename DestinationAddressesT = Aws::String>
57 AnalysisPacketHeader& AddDestinationAddresses(DestinationAddressesT&& value) {
58 m_destinationAddressesHasBeenSet = true;
59 m_destinationAddresses.emplace_back(std::forward<DestinationAddressesT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::Vector<PortRange>& GetDestinationPortRanges() const { return m_destinationPortRanges; }
69 inline bool DestinationPortRangesHasBeenSet() const { return m_destinationPortRangesHasBeenSet; }
70 template <typename DestinationPortRangesT = Aws::Vector<PortRange>>
71 void SetDestinationPortRanges(DestinationPortRangesT&& value) {
72 m_destinationPortRangesHasBeenSet = true;
73 m_destinationPortRanges = std::forward<DestinationPortRangesT>(value);
74 }
75 template <typename DestinationPortRangesT = Aws::Vector<PortRange>>
76 AnalysisPacketHeader& WithDestinationPortRanges(DestinationPortRangesT&& value) {
77 SetDestinationPortRanges(std::forward<DestinationPortRangesT>(value));
78 return *this;
79 }
80 template <typename DestinationPortRangesT = PortRange>
81 AnalysisPacketHeader& AddDestinationPortRanges(DestinationPortRangesT&& value) {
82 m_destinationPortRangesHasBeenSet = true;
83 m_destinationPortRanges.emplace_back(std::forward<DestinationPortRangesT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetProtocol() const { return m_protocol; }
93 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
94 template <typename ProtocolT = Aws::String>
95 void SetProtocol(ProtocolT&& value) {
96 m_protocolHasBeenSet = true;
97 m_protocol = std::forward<ProtocolT>(value);
98 }
99 template <typename ProtocolT = Aws::String>
100 AnalysisPacketHeader& WithProtocol(ProtocolT&& value) {
101 SetProtocol(std::forward<ProtocolT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::Vector<Aws::String>& GetSourceAddresses() const { return m_sourceAddresses; }
111 inline bool SourceAddressesHasBeenSet() const { return m_sourceAddressesHasBeenSet; }
112 template <typename SourceAddressesT = Aws::Vector<Aws::String>>
113 void SetSourceAddresses(SourceAddressesT&& value) {
114 m_sourceAddressesHasBeenSet = true;
115 m_sourceAddresses = std::forward<SourceAddressesT>(value);
116 }
117 template <typename SourceAddressesT = Aws::Vector<Aws::String>>
118 AnalysisPacketHeader& WithSourceAddresses(SourceAddressesT&& value) {
119 SetSourceAddresses(std::forward<SourceAddressesT>(value));
120 return *this;
121 }
122 template <typename SourceAddressesT = Aws::String>
123 AnalysisPacketHeader& AddSourceAddresses(SourceAddressesT&& value) {
124 m_sourceAddressesHasBeenSet = true;
125 m_sourceAddresses.emplace_back(std::forward<SourceAddressesT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::Vector<PortRange>& GetSourcePortRanges() const { return m_sourcePortRanges; }
135 inline bool SourcePortRangesHasBeenSet() const { return m_sourcePortRangesHasBeenSet; }
136 template <typename SourcePortRangesT = Aws::Vector<PortRange>>
137 void SetSourcePortRanges(SourcePortRangesT&& value) {
138 m_sourcePortRangesHasBeenSet = true;
139 m_sourcePortRanges = std::forward<SourcePortRangesT>(value);
140 }
141 template <typename SourcePortRangesT = Aws::Vector<PortRange>>
142 AnalysisPacketHeader& WithSourcePortRanges(SourcePortRangesT&& value) {
143 SetSourcePortRanges(std::forward<SourcePortRangesT>(value));
144 return *this;
145 }
146 template <typename SourcePortRangesT = PortRange>
147 AnalysisPacketHeader& AddSourcePortRanges(SourcePortRangesT&& value) {
148 m_sourcePortRangesHasBeenSet = true;
149 m_sourcePortRanges.emplace_back(std::forward<SourcePortRangesT>(value));
150 return *this;
151 }
153 private:
154 Aws::Vector<Aws::String> m_destinationAddresses;
155
156 Aws::Vector<PortRange> m_destinationPortRanges;
157
158 Aws::String m_protocol;
159
160 Aws::Vector<Aws::String> m_sourceAddresses;
161
162 Aws::Vector<PortRange> m_sourcePortRanges;
163 bool m_destinationAddressesHasBeenSet = false;
164 bool m_destinationPortRangesHasBeenSet = false;
165 bool m_protocolHasBeenSet = false;
166 bool m_sourceAddressesHasBeenSet = false;
167 bool m_sourcePortRangesHasBeenSet = false;
168};
169
170} // namespace Model
171} // namespace EC2
172} // namespace Aws
const Aws::Vector< PortRange > & GetDestinationPortRanges() const
AnalysisPacketHeader & WithDestinationPortRanges(DestinationPortRangesT &&value)
void SetSourceAddresses(SourceAddressesT &&value)
AnalysisPacketHeader & WithProtocol(ProtocolT &&value)
const Aws::String & GetProtocol() const
AWS_EC2_API AnalysisPacketHeader(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< PortRange > & GetSourcePortRanges() const
const Aws::Vector< Aws::String > & GetDestinationAddresses() const
void SetSourcePortRanges(SourcePortRangesT &&value)
const Aws::Vector< Aws::String > & GetSourceAddresses() const
AnalysisPacketHeader & AddSourcePortRanges(SourcePortRangesT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AnalysisPacketHeader & WithDestinationAddresses(DestinationAddressesT &&value)
void SetDestinationAddresses(DestinationAddressesT &&value)
AnalysisPacketHeader & AddDestinationPortRanges(DestinationPortRangesT &&value)
AWS_EC2_API AnalysisPacketHeader & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetDestinationPortRanges(DestinationPortRangesT &&value)
AWS_EC2_API AnalysisPacketHeader()=default
AnalysisPacketHeader & AddSourceAddresses(SourceAddressesT &&value)
AnalysisPacketHeader & WithSourceAddresses(SourceAddressesT &&value)
AnalysisPacketHeader & WithSourcePortRanges(SourcePortRangesT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AnalysisPacketHeader & AddDestinationAddresses(DestinationAddressesT &&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