AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
NetworkInsightsPath.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/EC2_EXPORTS.h>
12#include <aws/ec2/model/PathFilter.h>
13#include <aws/ec2/model/Protocol.h>
14#include <aws/ec2/model/Tag.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Xml {
21class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2 {
25namespace Model {
26
33 public:
34 AWS_EC2_API NetworkInsightsPath() = default;
35 AWS_EC2_API NetworkInsightsPath(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
42
45 inline const Aws::String& GetNetworkInsightsPathId() const { return m_networkInsightsPathId; }
46 inline bool NetworkInsightsPathIdHasBeenSet() const { return m_networkInsightsPathIdHasBeenSet; }
47 template <typename NetworkInsightsPathIdT = Aws::String>
48 void SetNetworkInsightsPathId(NetworkInsightsPathIdT&& value) {
49 m_networkInsightsPathIdHasBeenSet = true;
50 m_networkInsightsPathId = std::forward<NetworkInsightsPathIdT>(value);
51 }
52 template <typename NetworkInsightsPathIdT = Aws::String>
53 NetworkInsightsPath& WithNetworkInsightsPathId(NetworkInsightsPathIdT&& value) {
54 SetNetworkInsightsPathId(std::forward<NetworkInsightsPathIdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetNetworkInsightsPathArn() const { return m_networkInsightsPathArn; }
64 inline bool NetworkInsightsPathArnHasBeenSet() const { return m_networkInsightsPathArnHasBeenSet; }
65 template <typename NetworkInsightsPathArnT = Aws::String>
66 void SetNetworkInsightsPathArn(NetworkInsightsPathArnT&& value) {
67 m_networkInsightsPathArnHasBeenSet = true;
68 m_networkInsightsPathArn = std::forward<NetworkInsightsPathArnT>(value);
69 }
70 template <typename NetworkInsightsPathArnT = Aws::String>
71 NetworkInsightsPath& WithNetworkInsightsPathArn(NetworkInsightsPathArnT&& value) {
72 SetNetworkInsightsPathArn(std::forward<NetworkInsightsPathArnT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
82 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
83 template <typename CreatedDateT = Aws::Utils::DateTime>
84 void SetCreatedDate(CreatedDateT&& value) {
85 m_createdDateHasBeenSet = true;
86 m_createdDate = std::forward<CreatedDateT>(value);
87 }
88 template <typename CreatedDateT = Aws::Utils::DateTime>
89 NetworkInsightsPath& WithCreatedDate(CreatedDateT&& value) {
90 SetCreatedDate(std::forward<CreatedDateT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetSource() const { return m_source; }
100 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
101 template <typename SourceT = Aws::String>
102 void SetSource(SourceT&& value) {
103 m_sourceHasBeenSet = true;
104 m_source = std::forward<SourceT>(value);
105 }
106 template <typename SourceT = Aws::String>
107 NetworkInsightsPath& WithSource(SourceT&& value) {
108 SetSource(std::forward<SourceT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::String& GetDestination() const { return m_destination; }
118 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
119 template <typename DestinationT = Aws::String>
120 void SetDestination(DestinationT&& value) {
121 m_destinationHasBeenSet = true;
122 m_destination = std::forward<DestinationT>(value);
123 }
124 template <typename DestinationT = Aws::String>
125 NetworkInsightsPath& WithDestination(DestinationT&& value) {
126 SetDestination(std::forward<DestinationT>(value));
127 return *this;
128 }
130
132
135 inline const Aws::String& GetSourceArn() const { return m_sourceArn; }
136 inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
137 template <typename SourceArnT = Aws::String>
138 void SetSourceArn(SourceArnT&& value) {
139 m_sourceArnHasBeenSet = true;
140 m_sourceArn = std::forward<SourceArnT>(value);
141 }
142 template <typename SourceArnT = Aws::String>
143 NetworkInsightsPath& WithSourceArn(SourceArnT&& value) {
144 SetSourceArn(std::forward<SourceArnT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::String& GetDestinationArn() const { return m_destinationArn; }
154 inline bool DestinationArnHasBeenSet() const { return m_destinationArnHasBeenSet; }
155 template <typename DestinationArnT = Aws::String>
156 void SetDestinationArn(DestinationArnT&& value) {
157 m_destinationArnHasBeenSet = true;
158 m_destinationArn = std::forward<DestinationArnT>(value);
159 }
160 template <typename DestinationArnT = Aws::String>
161 NetworkInsightsPath& WithDestinationArn(DestinationArnT&& value) {
162 SetDestinationArn(std::forward<DestinationArnT>(value));
163 return *this;
164 }
166
168
171 inline const Aws::String& GetSourceIp() const { return m_sourceIp; }
172 inline bool SourceIpHasBeenSet() const { return m_sourceIpHasBeenSet; }
173 template <typename SourceIpT = Aws::String>
174 void SetSourceIp(SourceIpT&& value) {
175 m_sourceIpHasBeenSet = true;
176 m_sourceIp = std::forward<SourceIpT>(value);
177 }
178 template <typename SourceIpT = Aws::String>
179 NetworkInsightsPath& WithSourceIp(SourceIpT&& value) {
180 SetSourceIp(std::forward<SourceIpT>(value));
181 return *this;
182 }
184
186
189 inline const Aws::String& GetDestinationIp() const { return m_destinationIp; }
190 inline bool DestinationIpHasBeenSet() const { return m_destinationIpHasBeenSet; }
191 template <typename DestinationIpT = Aws::String>
192 void SetDestinationIp(DestinationIpT&& value) {
193 m_destinationIpHasBeenSet = true;
194 m_destinationIp = std::forward<DestinationIpT>(value);
195 }
196 template <typename DestinationIpT = Aws::String>
197 NetworkInsightsPath& WithDestinationIp(DestinationIpT&& value) {
198 SetDestinationIp(std::forward<DestinationIpT>(value));
199 return *this;
200 }
202
204
207 inline Protocol GetProtocol() const { return m_protocol; }
208 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
209 inline void SetProtocol(Protocol value) {
210 m_protocolHasBeenSet = true;
211 m_protocol = value;
212 }
214 SetProtocol(value);
215 return *this;
216 }
218
220
223 inline int GetDestinationPort() const { return m_destinationPort; }
224 inline bool DestinationPortHasBeenSet() const { return m_destinationPortHasBeenSet; }
225 inline void SetDestinationPort(int value) {
226 m_destinationPortHasBeenSet = true;
227 m_destinationPort = value;
228 }
230 SetDestinationPort(value);
231 return *this;
232 }
234
236
239 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
240 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
241 template <typename TagsT = Aws::Vector<Tag>>
242 void SetTags(TagsT&& value) {
243 m_tagsHasBeenSet = true;
244 m_tags = std::forward<TagsT>(value);
245 }
246 template <typename TagsT = Aws::Vector<Tag>>
248 SetTags(std::forward<TagsT>(value));
249 return *this;
250 }
251 template <typename TagsT = Tag>
252 NetworkInsightsPath& AddTags(TagsT&& value) {
253 m_tagsHasBeenSet = true;
254 m_tags.emplace_back(std::forward<TagsT>(value));
255 return *this;
256 }
258
260
264 inline const PathFilter& GetFilterAtSource() const { return m_filterAtSource; }
265 inline bool FilterAtSourceHasBeenSet() const { return m_filterAtSourceHasBeenSet; }
266 template <typename FilterAtSourceT = PathFilter>
267 void SetFilterAtSource(FilterAtSourceT&& value) {
268 m_filterAtSourceHasBeenSet = true;
269 m_filterAtSource = std::forward<FilterAtSourceT>(value);
270 }
271 template <typename FilterAtSourceT = PathFilter>
272 NetworkInsightsPath& WithFilterAtSource(FilterAtSourceT&& value) {
273 SetFilterAtSource(std::forward<FilterAtSourceT>(value));
274 return *this;
275 }
277
279
283 inline const PathFilter& GetFilterAtDestination() const { return m_filterAtDestination; }
284 inline bool FilterAtDestinationHasBeenSet() const { return m_filterAtDestinationHasBeenSet; }
285 template <typename FilterAtDestinationT = PathFilter>
286 void SetFilterAtDestination(FilterAtDestinationT&& value) {
287 m_filterAtDestinationHasBeenSet = true;
288 m_filterAtDestination = std::forward<FilterAtDestinationT>(value);
289 }
290 template <typename FilterAtDestinationT = PathFilter>
291 NetworkInsightsPath& WithFilterAtDestination(FilterAtDestinationT&& value) {
292 SetFilterAtDestination(std::forward<FilterAtDestinationT>(value));
293 return *this;
294 }
296 private:
297 Aws::String m_networkInsightsPathId;
298
299 Aws::String m_networkInsightsPathArn;
300
301 Aws::Utils::DateTime m_createdDate{};
302
303 Aws::String m_source;
304
305 Aws::String m_destination;
306
307 Aws::String m_sourceArn;
308
309 Aws::String m_destinationArn;
310
311 Aws::String m_sourceIp;
312
313 Aws::String m_destinationIp;
314
315 Protocol m_protocol{Protocol::NOT_SET};
316
317 int m_destinationPort{0};
318
319 Aws::Vector<Tag> m_tags;
320
321 PathFilter m_filterAtSource;
322
323 PathFilter m_filterAtDestination;
324 bool m_networkInsightsPathIdHasBeenSet = false;
325 bool m_networkInsightsPathArnHasBeenSet = false;
326 bool m_createdDateHasBeenSet = false;
327 bool m_sourceHasBeenSet = false;
328 bool m_destinationHasBeenSet = false;
329 bool m_sourceArnHasBeenSet = false;
330 bool m_destinationArnHasBeenSet = false;
331 bool m_sourceIpHasBeenSet = false;
332 bool m_destinationIpHasBeenSet = false;
333 bool m_protocolHasBeenSet = false;
334 bool m_destinationPortHasBeenSet = false;
335 bool m_tagsHasBeenSet = false;
336 bool m_filterAtSourceHasBeenSet = false;
337 bool m_filterAtDestinationHasBeenSet = false;
338};
339
340} // namespace Model
341} // namespace EC2
342} // namespace Aws
const Aws::String & GetSourceArn() const
NetworkInsightsPath & WithFilterAtSource(FilterAtSourceT &&value)
NetworkInsightsPath & WithDestination(DestinationT &&value)
const Aws::String & GetDestination() const
const Aws::String & GetDestinationIp() const
NetworkInsightsPath & WithFilterAtDestination(FilterAtDestinationT &&value)
void SetFilterAtSource(FilterAtSourceT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetNetworkInsightsPathId(NetworkInsightsPathIdT &&value)
void SetNetworkInsightsPathArn(NetworkInsightsPathArnT &&value)
const Aws::String & GetSourceIp() const
NetworkInsightsPath & WithSourceIp(SourceIpT &&value)
const Aws::String & GetNetworkInsightsPathId() const
NetworkInsightsPath & WithDestinationArn(DestinationArnT &&value)
NetworkInsightsPath & WithDestinationIp(DestinationIpT &&value)
const PathFilter & GetFilterAtSource() const
NetworkInsightsPath & WithDestinationPort(int value)
AWS_EC2_API NetworkInsightsPath()=default
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API NetworkInsightsPath(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetDestinationArn(DestinationArnT &&value)
NetworkInsightsPath & WithProtocol(Protocol value)
const PathFilter & GetFilterAtDestination() const
NetworkInsightsPath & WithNetworkInsightsPathId(NetworkInsightsPathIdT &&value)
NetworkInsightsPath & WithNetworkInsightsPathArn(NetworkInsightsPathArnT &&value)
NetworkInsightsPath & WithTags(TagsT &&value)
const Aws::Utils::DateTime & GetCreatedDate() const
const Aws::String & GetSource() const
NetworkInsightsPath & WithSourceArn(SourceArnT &&value)
void SetDestinationIp(DestinationIpT &&value)
AWS_EC2_API NetworkInsightsPath & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetFilterAtDestination(FilterAtDestinationT &&value)
NetworkInsightsPath & AddTags(TagsT &&value)
NetworkInsightsPath & WithCreatedDate(CreatedDateT &&value)
void SetDestination(DestinationT &&value)
const Aws::String & GetDestinationArn() const
void SetCreatedDate(CreatedDateT &&value)
const Aws::String & GetNetworkInsightsPathArn() const
NetworkInsightsPath & WithSource(SourceT &&value)
const Aws::Vector< Tag > & GetTags() const
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