AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename NetworkInsightsPathIdT = Aws::String>
54 void SetNetworkInsightsPathId(NetworkInsightsPathIdT&& value) { m_networkInsightsPathIdHasBeenSet = true; m_networkInsightsPathId = std::forward<NetworkInsightsPathIdT>(value); }
55 template<typename NetworkInsightsPathIdT = Aws::String>
56 NetworkInsightsPath& WithNetworkInsightsPathId(NetworkInsightsPathIdT&& value) { SetNetworkInsightsPathId(std::forward<NetworkInsightsPathIdT>(value)); return *this;}
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) { m_networkInsightsPathArnHasBeenSet = true; m_networkInsightsPathArn = std::forward<NetworkInsightsPathArnT>(value); }
67 template<typename NetworkInsightsPathArnT = Aws::String>
68 NetworkInsightsPath& WithNetworkInsightsPathArn(NetworkInsightsPathArnT&& value) { SetNetworkInsightsPathArn(std::forward<NetworkInsightsPathArnT>(value)); return *this;}
70
72
75 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
76 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
77 template<typename CreatedDateT = Aws::Utils::DateTime>
78 void SetCreatedDate(CreatedDateT&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::forward<CreatedDateT>(value); }
79 template<typename CreatedDateT = Aws::Utils::DateTime>
80 NetworkInsightsPath& WithCreatedDate(CreatedDateT&& value) { SetCreatedDate(std::forward<CreatedDateT>(value)); return *this;}
82
84
87 inline const Aws::String& GetSource() const { return m_source; }
88 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
89 template<typename SourceT = Aws::String>
90 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
91 template<typename SourceT = Aws::String>
92 NetworkInsightsPath& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
94
96
99 inline const Aws::String& GetDestination() const { return m_destination; }
100 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
101 template<typename DestinationT = Aws::String>
102 void SetDestination(DestinationT&& value) { m_destinationHasBeenSet = true; m_destination = std::forward<DestinationT>(value); }
103 template<typename DestinationT = Aws::String>
104 NetworkInsightsPath& WithDestination(DestinationT&& value) { SetDestination(std::forward<DestinationT>(value)); return *this;}
106
108
111 inline const Aws::String& GetSourceArn() const { return m_sourceArn; }
112 inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
113 template<typename SourceArnT = Aws::String>
114 void SetSourceArn(SourceArnT&& value) { m_sourceArnHasBeenSet = true; m_sourceArn = std::forward<SourceArnT>(value); }
115 template<typename SourceArnT = Aws::String>
116 NetworkInsightsPath& WithSourceArn(SourceArnT&& value) { SetSourceArn(std::forward<SourceArnT>(value)); return *this;}
118
120
123 inline const Aws::String& GetDestinationArn() const { return m_destinationArn; }
124 inline bool DestinationArnHasBeenSet() const { return m_destinationArnHasBeenSet; }
125 template<typename DestinationArnT = Aws::String>
126 void SetDestinationArn(DestinationArnT&& value) { m_destinationArnHasBeenSet = true; m_destinationArn = std::forward<DestinationArnT>(value); }
127 template<typename DestinationArnT = Aws::String>
128 NetworkInsightsPath& WithDestinationArn(DestinationArnT&& value) { SetDestinationArn(std::forward<DestinationArnT>(value)); return *this;}
130
132
135 inline const Aws::String& GetSourceIp() const { return m_sourceIp; }
136 inline bool SourceIpHasBeenSet() const { return m_sourceIpHasBeenSet; }
137 template<typename SourceIpT = Aws::String>
138 void SetSourceIp(SourceIpT&& value) { m_sourceIpHasBeenSet = true; m_sourceIp = std::forward<SourceIpT>(value); }
139 template<typename SourceIpT = Aws::String>
140 NetworkInsightsPath& WithSourceIp(SourceIpT&& value) { SetSourceIp(std::forward<SourceIpT>(value)); return *this;}
142
144
147 inline const Aws::String& GetDestinationIp() const { return m_destinationIp; }
148 inline bool DestinationIpHasBeenSet() const { return m_destinationIpHasBeenSet; }
149 template<typename DestinationIpT = Aws::String>
150 void SetDestinationIp(DestinationIpT&& value) { m_destinationIpHasBeenSet = true; m_destinationIp = std::forward<DestinationIpT>(value); }
151 template<typename DestinationIpT = Aws::String>
152 NetworkInsightsPath& WithDestinationIp(DestinationIpT&& value) { SetDestinationIp(std::forward<DestinationIpT>(value)); return *this;}
154
156
159 inline Protocol GetProtocol() const { return m_protocol; }
160 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
161 inline void SetProtocol(Protocol value) { m_protocolHasBeenSet = true; m_protocol = value; }
162 inline NetworkInsightsPath& WithProtocol(Protocol value) { SetProtocol(value); return *this;}
164
166
169 inline int GetDestinationPort() const { return m_destinationPort; }
170 inline bool DestinationPortHasBeenSet() const { return m_destinationPortHasBeenSet; }
171 inline void SetDestinationPort(int value) { m_destinationPortHasBeenSet = true; m_destinationPort = value; }
172 inline NetworkInsightsPath& WithDestinationPort(int value) { SetDestinationPort(value); return *this;}
174
176
179 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
180 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
181 template<typename TagsT = Aws::Vector<Tag>>
182 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
183 template<typename TagsT = Aws::Vector<Tag>>
184 NetworkInsightsPath& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
185 template<typename TagsT = Tag>
186 NetworkInsightsPath& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
188
190
194 inline const PathFilter& GetFilterAtSource() const { return m_filterAtSource; }
195 inline bool FilterAtSourceHasBeenSet() const { return m_filterAtSourceHasBeenSet; }
196 template<typename FilterAtSourceT = PathFilter>
197 void SetFilterAtSource(FilterAtSourceT&& value) { m_filterAtSourceHasBeenSet = true; m_filterAtSource = std::forward<FilterAtSourceT>(value); }
198 template<typename FilterAtSourceT = PathFilter>
199 NetworkInsightsPath& WithFilterAtSource(FilterAtSourceT&& value) { SetFilterAtSource(std::forward<FilterAtSourceT>(value)); return *this;}
201
203
207 inline const PathFilter& GetFilterAtDestination() const { return m_filterAtDestination; }
208 inline bool FilterAtDestinationHasBeenSet() const { return m_filterAtDestinationHasBeenSet; }
209 template<typename FilterAtDestinationT = PathFilter>
210 void SetFilterAtDestination(FilterAtDestinationT&& value) { m_filterAtDestinationHasBeenSet = true; m_filterAtDestination = std::forward<FilterAtDestinationT>(value); }
211 template<typename FilterAtDestinationT = PathFilter>
212 NetworkInsightsPath& WithFilterAtDestination(FilterAtDestinationT&& value) { SetFilterAtDestination(std::forward<FilterAtDestinationT>(value)); return *this;}
214 private:
215
216 Aws::String m_networkInsightsPathId;
217 bool m_networkInsightsPathIdHasBeenSet = false;
218
219 Aws::String m_networkInsightsPathArn;
220 bool m_networkInsightsPathArnHasBeenSet = false;
221
222 Aws::Utils::DateTime m_createdDate{};
223 bool m_createdDateHasBeenSet = false;
224
225 Aws::String m_source;
226 bool m_sourceHasBeenSet = false;
227
228 Aws::String m_destination;
229 bool m_destinationHasBeenSet = false;
230
231 Aws::String m_sourceArn;
232 bool m_sourceArnHasBeenSet = false;
233
234 Aws::String m_destinationArn;
235 bool m_destinationArnHasBeenSet = false;
236
237 Aws::String m_sourceIp;
238 bool m_sourceIpHasBeenSet = false;
239
240 Aws::String m_destinationIp;
241 bool m_destinationIpHasBeenSet = false;
242
243 Protocol m_protocol{Protocol::NOT_SET};
244 bool m_protocolHasBeenSet = false;
245
246 int m_destinationPort{0};
247 bool m_destinationPortHasBeenSet = false;
248
249 Aws::Vector<Tag> m_tags;
250 bool m_tagsHasBeenSet = false;
251
252 PathFilter m_filterAtSource;
253 bool m_filterAtSourceHasBeenSet = false;
254
255 PathFilter m_filterAtDestination;
256 bool m_filterAtDestinationHasBeenSet = false;
257 };
258
259} // namespace Model
260} // namespace EC2
261} // 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