AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
NetworkInsightsPath.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/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/ec2/model/Protocol.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/ec2/model/PathFilter.h>
14#include <aws/ec2/model/Tag.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Xml
22{
23 class XmlNode;
24} // namespace Xml
25} // namespace Utils
26namespace EC2
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_EC2_API NetworkInsightsPath();
40 AWS_EC2_API NetworkInsightsPath(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
46
48
51 inline const Aws::String& GetNetworkInsightsPathId() const{ return m_networkInsightsPathId; }
52 inline bool NetworkInsightsPathIdHasBeenSet() const { return m_networkInsightsPathIdHasBeenSet; }
53 inline void SetNetworkInsightsPathId(const Aws::String& value) { m_networkInsightsPathIdHasBeenSet = true; m_networkInsightsPathId = value; }
54 inline void SetNetworkInsightsPathId(Aws::String&& value) { m_networkInsightsPathIdHasBeenSet = true; m_networkInsightsPathId = std::move(value); }
55 inline void SetNetworkInsightsPathId(const char* value) { m_networkInsightsPathIdHasBeenSet = true; m_networkInsightsPathId.assign(value); }
57 inline NetworkInsightsPath& WithNetworkInsightsPathId(Aws::String&& value) { SetNetworkInsightsPathId(std::move(value)); return *this;}
58 inline NetworkInsightsPath& WithNetworkInsightsPathId(const char* value) { SetNetworkInsightsPathId(value); return *this;}
60
62
65 inline const Aws::String& GetNetworkInsightsPathArn() const{ return m_networkInsightsPathArn; }
66 inline bool NetworkInsightsPathArnHasBeenSet() const { return m_networkInsightsPathArnHasBeenSet; }
67 inline void SetNetworkInsightsPathArn(const Aws::String& value) { m_networkInsightsPathArnHasBeenSet = true; m_networkInsightsPathArn = value; }
68 inline void SetNetworkInsightsPathArn(Aws::String&& value) { m_networkInsightsPathArnHasBeenSet = true; m_networkInsightsPathArn = std::move(value); }
69 inline void SetNetworkInsightsPathArn(const char* value) { m_networkInsightsPathArnHasBeenSet = true; m_networkInsightsPathArn.assign(value); }
71 inline NetworkInsightsPath& WithNetworkInsightsPathArn(Aws::String&& value) { SetNetworkInsightsPathArn(std::move(value)); return *this;}
72 inline NetworkInsightsPath& WithNetworkInsightsPathArn(const char* value) { SetNetworkInsightsPathArn(value); return *this;}
74
76
79 inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; }
80 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
81 inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDateHasBeenSet = true; m_createdDate = value; }
82 inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::move(value); }
83 inline NetworkInsightsPath& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;}
84 inline NetworkInsightsPath& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;}
86
88
91 inline const Aws::String& GetSource() const{ return m_source; }
92 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
93 inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; }
94 inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
95 inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); }
96 inline NetworkInsightsPath& WithSource(const Aws::String& value) { SetSource(value); return *this;}
97 inline NetworkInsightsPath& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;}
98 inline NetworkInsightsPath& WithSource(const char* value) { SetSource(value); return *this;}
100
102
105 inline const Aws::String& GetDestination() const{ return m_destination; }
106 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
107 inline void SetDestination(const Aws::String& value) { m_destinationHasBeenSet = true; m_destination = value; }
108 inline void SetDestination(Aws::String&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); }
109 inline void SetDestination(const char* value) { m_destinationHasBeenSet = true; m_destination.assign(value); }
110 inline NetworkInsightsPath& WithDestination(const Aws::String& value) { SetDestination(value); return *this;}
111 inline NetworkInsightsPath& WithDestination(Aws::String&& value) { SetDestination(std::move(value)); return *this;}
112 inline NetworkInsightsPath& WithDestination(const char* value) { SetDestination(value); return *this;}
114
116
119 inline const Aws::String& GetSourceArn() const{ return m_sourceArn; }
120 inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
121 inline void SetSourceArn(const Aws::String& value) { m_sourceArnHasBeenSet = true; m_sourceArn = value; }
122 inline void SetSourceArn(Aws::String&& value) { m_sourceArnHasBeenSet = true; m_sourceArn = std::move(value); }
123 inline void SetSourceArn(const char* value) { m_sourceArnHasBeenSet = true; m_sourceArn.assign(value); }
124 inline NetworkInsightsPath& WithSourceArn(const Aws::String& value) { SetSourceArn(value); return *this;}
125 inline NetworkInsightsPath& WithSourceArn(Aws::String&& value) { SetSourceArn(std::move(value)); return *this;}
126 inline NetworkInsightsPath& WithSourceArn(const char* value) { SetSourceArn(value); return *this;}
128
130
133 inline const Aws::String& GetDestinationArn() const{ return m_destinationArn; }
134 inline bool DestinationArnHasBeenSet() const { return m_destinationArnHasBeenSet; }
135 inline void SetDestinationArn(const Aws::String& value) { m_destinationArnHasBeenSet = true; m_destinationArn = value; }
136 inline void SetDestinationArn(Aws::String&& value) { m_destinationArnHasBeenSet = true; m_destinationArn = std::move(value); }
137 inline void SetDestinationArn(const char* value) { m_destinationArnHasBeenSet = true; m_destinationArn.assign(value); }
138 inline NetworkInsightsPath& WithDestinationArn(const Aws::String& value) { SetDestinationArn(value); return *this;}
139 inline NetworkInsightsPath& WithDestinationArn(Aws::String&& value) { SetDestinationArn(std::move(value)); return *this;}
140 inline NetworkInsightsPath& WithDestinationArn(const char* value) { SetDestinationArn(value); return *this;}
142
144
147 inline const Aws::String& GetSourceIp() const{ return m_sourceIp; }
148 inline bool SourceIpHasBeenSet() const { return m_sourceIpHasBeenSet; }
149 inline void SetSourceIp(const Aws::String& value) { m_sourceIpHasBeenSet = true; m_sourceIp = value; }
150 inline void SetSourceIp(Aws::String&& value) { m_sourceIpHasBeenSet = true; m_sourceIp = std::move(value); }
151 inline void SetSourceIp(const char* value) { m_sourceIpHasBeenSet = true; m_sourceIp.assign(value); }
152 inline NetworkInsightsPath& WithSourceIp(const Aws::String& value) { SetSourceIp(value); return *this;}
153 inline NetworkInsightsPath& WithSourceIp(Aws::String&& value) { SetSourceIp(std::move(value)); return *this;}
154 inline NetworkInsightsPath& WithSourceIp(const char* value) { SetSourceIp(value); return *this;}
156
158
161 inline const Aws::String& GetDestinationIp() const{ return m_destinationIp; }
162 inline bool DestinationIpHasBeenSet() const { return m_destinationIpHasBeenSet; }
163 inline void SetDestinationIp(const Aws::String& value) { m_destinationIpHasBeenSet = true; m_destinationIp = value; }
164 inline void SetDestinationIp(Aws::String&& value) { m_destinationIpHasBeenSet = true; m_destinationIp = std::move(value); }
165 inline void SetDestinationIp(const char* value) { m_destinationIpHasBeenSet = true; m_destinationIp.assign(value); }
166 inline NetworkInsightsPath& WithDestinationIp(const Aws::String& value) { SetDestinationIp(value); return *this;}
167 inline NetworkInsightsPath& WithDestinationIp(Aws::String&& value) { SetDestinationIp(std::move(value)); return *this;}
168 inline NetworkInsightsPath& WithDestinationIp(const char* value) { SetDestinationIp(value); return *this;}
170
172
175 inline const Protocol& GetProtocol() const{ return m_protocol; }
176 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
177 inline void SetProtocol(const Protocol& value) { m_protocolHasBeenSet = true; m_protocol = value; }
178 inline void SetProtocol(Protocol&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
179 inline NetworkInsightsPath& WithProtocol(const Protocol& value) { SetProtocol(value); return *this;}
180 inline NetworkInsightsPath& WithProtocol(Protocol&& value) { SetProtocol(std::move(value)); return *this;}
182
184
187 inline int GetDestinationPort() const{ return m_destinationPort; }
188 inline bool DestinationPortHasBeenSet() const { return m_destinationPortHasBeenSet; }
189 inline void SetDestinationPort(int value) { m_destinationPortHasBeenSet = true; m_destinationPort = value; }
190 inline NetworkInsightsPath& WithDestinationPort(int value) { SetDestinationPort(value); return *this;}
192
194
197 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
198 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
199 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
200 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
201 inline NetworkInsightsPath& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
202 inline NetworkInsightsPath& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
203 inline NetworkInsightsPath& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
204 inline NetworkInsightsPath& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
206
208
212 inline const PathFilter& GetFilterAtSource() const{ return m_filterAtSource; }
213 inline bool FilterAtSourceHasBeenSet() const { return m_filterAtSourceHasBeenSet; }
214 inline void SetFilterAtSource(const PathFilter& value) { m_filterAtSourceHasBeenSet = true; m_filterAtSource = value; }
215 inline void SetFilterAtSource(PathFilter&& value) { m_filterAtSourceHasBeenSet = true; m_filterAtSource = std::move(value); }
216 inline NetworkInsightsPath& WithFilterAtSource(const PathFilter& value) { SetFilterAtSource(value); return *this;}
217 inline NetworkInsightsPath& WithFilterAtSource(PathFilter&& value) { SetFilterAtSource(std::move(value)); return *this;}
219
221
225 inline const PathFilter& GetFilterAtDestination() const{ return m_filterAtDestination; }
226 inline bool FilterAtDestinationHasBeenSet() const { return m_filterAtDestinationHasBeenSet; }
227 inline void SetFilterAtDestination(const PathFilter& value) { m_filterAtDestinationHasBeenSet = true; m_filterAtDestination = value; }
228 inline void SetFilterAtDestination(PathFilter&& value) { m_filterAtDestinationHasBeenSet = true; m_filterAtDestination = std::move(value); }
230 inline NetworkInsightsPath& WithFilterAtDestination(PathFilter&& value) { SetFilterAtDestination(std::move(value)); return *this;}
232 private:
233
234 Aws::String m_networkInsightsPathId;
235 bool m_networkInsightsPathIdHasBeenSet = false;
236
237 Aws::String m_networkInsightsPathArn;
238 bool m_networkInsightsPathArnHasBeenSet = false;
239
240 Aws::Utils::DateTime m_createdDate;
241 bool m_createdDateHasBeenSet = false;
242
243 Aws::String m_source;
244 bool m_sourceHasBeenSet = false;
245
246 Aws::String m_destination;
247 bool m_destinationHasBeenSet = false;
248
249 Aws::String m_sourceArn;
250 bool m_sourceArnHasBeenSet = false;
251
252 Aws::String m_destinationArn;
253 bool m_destinationArnHasBeenSet = false;
254
255 Aws::String m_sourceIp;
256 bool m_sourceIpHasBeenSet = false;
257
258 Aws::String m_destinationIp;
259 bool m_destinationIpHasBeenSet = false;
260
261 Protocol m_protocol;
262 bool m_protocolHasBeenSet = false;
263
264 int m_destinationPort;
265 bool m_destinationPortHasBeenSet = false;
266
267 Aws::Vector<Tag> m_tags;
268 bool m_tagsHasBeenSet = false;
269
270 PathFilter m_filterAtSource;
271 bool m_filterAtSourceHasBeenSet = false;
272
273 PathFilter m_filterAtDestination;
274 bool m_filterAtDestinationHasBeenSet = false;
275 };
276
277} // namespace Model
278} // namespace EC2
279} // namespace Aws
void SetNetworkInsightsPathArn(const Aws::String &value)
NetworkInsightsPath & WithSourceIp(const Aws::String &value)
const Aws::String & GetSourceArn() const
NetworkInsightsPath & WithDestinationIp(const char *value)
NetworkInsightsPath & AddTags(const Tag &value)
NetworkInsightsPath & WithFilterAtDestination(const PathFilter &value)
void SetDestinationIp(Aws::String &&value)
void SetNetworkInsightsPathId(const Aws::String &value)
const Aws::String & GetDestination() const
const Aws::String & GetDestinationIp() const
void SetTags(Aws::Vector< Tag > &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetFilterAtDestination(const PathFilter &value)
NetworkInsightsPath & WithFilterAtSource(const PathFilter &value)
const Aws::String & GetSourceIp() const
void SetNetworkInsightsPathArn(const char *value)
const Aws::String & GetNetworkInsightsPathId() const
void SetDestinationArn(const Aws::String &value)
NetworkInsightsPath & WithSourceArn(Aws::String &&value)
void SetTags(const Aws::Vector< Tag > &value)
NetworkInsightsPath & WithDestinationIp(Aws::String &&value)
NetworkInsightsPath & WithNetworkInsightsPathArn(const char *value)
NetworkInsightsPath & WithCreatedDate(Aws::Utils::DateTime &&value)
NetworkInsightsPath & WithSourceArn(const Aws::String &value)
NetworkInsightsPath & AddTags(Tag &&value)
const PathFilter & GetFilterAtSource() const
NetworkInsightsPath & WithDestinationPort(int value)
NetworkInsightsPath & WithDestinationArn(Aws::String &&value)
NetworkInsightsPath & WithSourceIp(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
NetworkInsightsPath & WithDestinationArn(const char *value)
void SetNetworkInsightsPathId(const char *value)
AWS_EC2_API NetworkInsightsPath(const Aws::Utils::Xml::XmlNode &xmlNode)
const PathFilter & GetFilterAtDestination() const
void SetCreatedDate(const Aws::Utils::DateTime &value)
NetworkInsightsPath & WithNetworkInsightsPathId(const Aws::String &value)
NetworkInsightsPath & WithNetworkInsightsPathId(const char *value)
NetworkInsightsPath & WithFilterAtSource(PathFilter &&value)
NetworkInsightsPath & WithNetworkInsightsPathId(Aws::String &&value)
const Aws::Utils::DateTime & GetCreatedDate() const
const Aws::String & GetSource() const
NetworkInsightsPath & WithDestinationArn(const Aws::String &value)
NetworkInsightsPath & WithTags(const Aws::Vector< Tag > &value)
NetworkInsightsPath & WithDestination(const char *value)
NetworkInsightsPath & WithFilterAtDestination(PathFilter &&value)
void SetFilterAtSource(const PathFilter &value)
NetworkInsightsPath & WithSource(const char *value)
void SetDestinationArn(Aws::String &&value)
void SetSource(const Aws::String &value)
NetworkInsightsPath & WithDestinationIp(const Aws::String &value)
NetworkInsightsPath & WithProtocol(const Protocol &value)
void SetProtocol(const Protocol &value)
void SetFilterAtDestination(PathFilter &&value)
AWS_EC2_API NetworkInsightsPath & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetDestinationArn() const
NetworkInsightsPath & WithSourceArn(const char *value)
NetworkInsightsPath & WithCreatedDate(const Aws::Utils::DateTime &value)
void SetSourceArn(const Aws::String &value)
NetworkInsightsPath & WithSource(const Aws::String &value)
NetworkInsightsPath & WithNetworkInsightsPathArn(const Aws::String &value)
void SetDestinationIp(const Aws::String &value)
NetworkInsightsPath & WithSource(Aws::String &&value)
const Aws::String & GetNetworkInsightsPathArn() const
NetworkInsightsPath & WithDestination(Aws::String &&value)
NetworkInsightsPath & WithDestination(const Aws::String &value)
void SetSourceIp(const Aws::String &value)
const Aws::Vector< Tag > & GetTags() const
NetworkInsightsPath & WithNetworkInsightsPathArn(Aws::String &&value)
void SetCreatedDate(Aws::Utils::DateTime &&value)
NetworkInsightsPath & WithProtocol(Protocol &&value)
NetworkInsightsPath & WithTags(Aws::Vector< Tag > &&value)
void SetNetworkInsightsPathArn(Aws::String &&value)
void SetDestination(const Aws::String &value)
NetworkInsightsPath & WithSourceIp(const char *value)
void SetNetworkInsightsPathId(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