AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
RouteAnalysis.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/networkmanager/NetworkManager_EXPORTS.h>
10#include <aws/networkmanager/model/RouteAnalysisEndpointOptions.h>
11#include <aws/networkmanager/model/RouteAnalysisPath.h>
12#include <aws/networkmanager/model/RouteAnalysisStatus.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace NetworkManager {
24namespace Model {
25
32 public:
33 AWS_NETWORKMANAGER_API RouteAnalysis() = default;
34 AWS_NETWORKMANAGER_API RouteAnalysis(Aws::Utils::Json::JsonView jsonValue);
35 AWS_NETWORKMANAGER_API RouteAnalysis& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetGlobalNetworkId() const { return m_globalNetworkId; }
43 inline bool GlobalNetworkIdHasBeenSet() const { return m_globalNetworkIdHasBeenSet; }
44 template <typename GlobalNetworkIdT = Aws::String>
45 void SetGlobalNetworkId(GlobalNetworkIdT&& value) {
46 m_globalNetworkIdHasBeenSet = true;
47 m_globalNetworkId = std::forward<GlobalNetworkIdT>(value);
48 }
49 template <typename GlobalNetworkIdT = Aws::String>
50 RouteAnalysis& WithGlobalNetworkId(GlobalNetworkIdT&& value) {
51 SetGlobalNetworkId(std::forward<GlobalNetworkIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetOwnerAccountId() const { return m_ownerAccountId; }
61 inline bool OwnerAccountIdHasBeenSet() const { return m_ownerAccountIdHasBeenSet; }
62 template <typename OwnerAccountIdT = Aws::String>
63 void SetOwnerAccountId(OwnerAccountIdT&& value) {
64 m_ownerAccountIdHasBeenSet = true;
65 m_ownerAccountId = std::forward<OwnerAccountIdT>(value);
66 }
67 template <typename OwnerAccountIdT = Aws::String>
68 RouteAnalysis& WithOwnerAccountId(OwnerAccountIdT&& value) {
69 SetOwnerAccountId(std::forward<OwnerAccountIdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetRouteAnalysisId() const { return m_routeAnalysisId; }
79 inline bool RouteAnalysisIdHasBeenSet() const { return m_routeAnalysisIdHasBeenSet; }
80 template <typename RouteAnalysisIdT = Aws::String>
81 void SetRouteAnalysisId(RouteAnalysisIdT&& value) {
82 m_routeAnalysisIdHasBeenSet = true;
83 m_routeAnalysisId = std::forward<RouteAnalysisIdT>(value);
84 }
85 template <typename RouteAnalysisIdT = Aws::String>
86 RouteAnalysis& WithRouteAnalysisId(RouteAnalysisIdT&& value) {
87 SetRouteAnalysisId(std::forward<RouteAnalysisIdT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::Utils::DateTime& GetStartTimestamp() const { return m_startTimestamp; }
97 inline bool StartTimestampHasBeenSet() const { return m_startTimestampHasBeenSet; }
98 template <typename StartTimestampT = Aws::Utils::DateTime>
99 void SetStartTimestamp(StartTimestampT&& value) {
100 m_startTimestampHasBeenSet = true;
101 m_startTimestamp = std::forward<StartTimestampT>(value);
102 }
103 template <typename StartTimestampT = Aws::Utils::DateTime>
104 RouteAnalysis& WithStartTimestamp(StartTimestampT&& value) {
105 SetStartTimestamp(std::forward<StartTimestampT>(value));
106 return *this;
107 }
109
111
114 inline RouteAnalysisStatus GetStatus() const { return m_status; }
115 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
116 inline void SetStatus(RouteAnalysisStatus value) {
117 m_statusHasBeenSet = true;
118 m_status = value;
119 }
121 SetStatus(value);
122 return *this;
123 }
125
127
130 inline const RouteAnalysisEndpointOptions& GetSource() const { return m_source; }
131 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
132 template <typename SourceT = RouteAnalysisEndpointOptions>
133 void SetSource(SourceT&& value) {
134 m_sourceHasBeenSet = true;
135 m_source = std::forward<SourceT>(value);
136 }
137 template <typename SourceT = RouteAnalysisEndpointOptions>
138 RouteAnalysis& WithSource(SourceT&& value) {
139 SetSource(std::forward<SourceT>(value));
140 return *this;
141 }
143
145
148 inline const RouteAnalysisEndpointOptions& GetDestination() const { return m_destination; }
149 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
150 template <typename DestinationT = RouteAnalysisEndpointOptions>
151 void SetDestination(DestinationT&& value) {
152 m_destinationHasBeenSet = true;
153 m_destination = std::forward<DestinationT>(value);
154 }
155 template <typename DestinationT = RouteAnalysisEndpointOptions>
156 RouteAnalysis& WithDestination(DestinationT&& value) {
157 SetDestination(std::forward<DestinationT>(value));
158 return *this;
159 }
161
163
167 inline bool GetIncludeReturnPath() const { return m_includeReturnPath; }
168 inline bool IncludeReturnPathHasBeenSet() const { return m_includeReturnPathHasBeenSet; }
169 inline void SetIncludeReturnPath(bool value) {
170 m_includeReturnPathHasBeenSet = true;
171 m_includeReturnPath = value;
172 }
175 return *this;
176 }
178
180
184 inline bool GetUseMiddleboxes() const { return m_useMiddleboxes; }
185 inline bool UseMiddleboxesHasBeenSet() const { return m_useMiddleboxesHasBeenSet; }
186 inline void SetUseMiddleboxes(bool value) {
187 m_useMiddleboxesHasBeenSet = true;
188 m_useMiddleboxes = value;
189 }
190 inline RouteAnalysis& WithUseMiddleboxes(bool value) {
191 SetUseMiddleboxes(value);
192 return *this;
193 }
195
197
200 inline const RouteAnalysisPath& GetForwardPath() const { return m_forwardPath; }
201 inline bool ForwardPathHasBeenSet() const { return m_forwardPathHasBeenSet; }
202 template <typename ForwardPathT = RouteAnalysisPath>
203 void SetForwardPath(ForwardPathT&& value) {
204 m_forwardPathHasBeenSet = true;
205 m_forwardPath = std::forward<ForwardPathT>(value);
206 }
207 template <typename ForwardPathT = RouteAnalysisPath>
208 RouteAnalysis& WithForwardPath(ForwardPathT&& value) {
209 SetForwardPath(std::forward<ForwardPathT>(value));
210 return *this;
211 }
213
215
218 inline const RouteAnalysisPath& GetReturnPath() const { return m_returnPath; }
219 inline bool ReturnPathHasBeenSet() const { return m_returnPathHasBeenSet; }
220 template <typename ReturnPathT = RouteAnalysisPath>
221 void SetReturnPath(ReturnPathT&& value) {
222 m_returnPathHasBeenSet = true;
223 m_returnPath = std::forward<ReturnPathT>(value);
224 }
225 template <typename ReturnPathT = RouteAnalysisPath>
226 RouteAnalysis& WithReturnPath(ReturnPathT&& value) {
227 SetReturnPath(std::forward<ReturnPathT>(value));
228 return *this;
229 }
231 private:
232 Aws::String m_globalNetworkId;
233
234 Aws::String m_ownerAccountId;
235
236 Aws::String m_routeAnalysisId;
237
238 Aws::Utils::DateTime m_startTimestamp{};
239
241
242 RouteAnalysisEndpointOptions m_source;
243
244 RouteAnalysisEndpointOptions m_destination;
245
246 bool m_includeReturnPath{false};
247
248 bool m_useMiddleboxes{false};
249
250 RouteAnalysisPath m_forwardPath;
251
252 RouteAnalysisPath m_returnPath;
253 bool m_globalNetworkIdHasBeenSet = false;
254 bool m_ownerAccountIdHasBeenSet = false;
255 bool m_routeAnalysisIdHasBeenSet = false;
256 bool m_startTimestampHasBeenSet = false;
257 bool m_statusHasBeenSet = false;
258 bool m_sourceHasBeenSet = false;
259 bool m_destinationHasBeenSet = false;
260 bool m_includeReturnPathHasBeenSet = false;
261 bool m_useMiddleboxesHasBeenSet = false;
262 bool m_forwardPathHasBeenSet = false;
263 bool m_returnPathHasBeenSet = false;
264};
265
266} // namespace Model
267} // namespace NetworkManager
268} // namespace Aws
RouteAnalysis & WithOwnerAccountId(OwnerAccountIdT &&value)
const Aws::String & GetRouteAnalysisId() const
AWS_NETWORKMANAGER_API RouteAnalysis(Aws::Utils::Json::JsonView jsonValue)
RouteAnalysis & WithUseMiddleboxes(bool value)
void SetDestination(DestinationT &&value)
const Aws::String & GetOwnerAccountId() const
void SetReturnPath(ReturnPathT &&value)
RouteAnalysis & WithSource(SourceT &&value)
RouteAnalysis & WithReturnPath(ReturnPathT &&value)
AWS_NETWORKMANAGER_API RouteAnalysis & operator=(Aws::Utils::Json::JsonView jsonValue)
RouteAnalysis & WithDestination(DestinationT &&value)
const RouteAnalysisPath & GetForwardPath() const
void SetRouteAnalysisId(RouteAnalysisIdT &&value)
RouteAnalysisStatus GetStatus() const
void SetGlobalNetworkId(GlobalNetworkIdT &&value)
RouteAnalysis & WithRouteAnalysisId(RouteAnalysisIdT &&value)
const Aws::String & GetGlobalNetworkId() const
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
const RouteAnalysisEndpointOptions & GetDestination() const
RouteAnalysis & WithStatus(RouteAnalysisStatus value)
RouteAnalysis & WithIncludeReturnPath(bool value)
void SetForwardPath(ForwardPathT &&value)
const RouteAnalysisEndpointOptions & GetSource() const
RouteAnalysis & WithGlobalNetworkId(GlobalNetworkIdT &&value)
RouteAnalysis & WithForwardPath(ForwardPathT &&value)
void SetStatus(RouteAnalysisStatus value)
RouteAnalysis & WithStartTimestamp(StartTimestampT &&value)
AWS_NETWORKMANAGER_API RouteAnalysis()=default
void SetOwnerAccountId(OwnerAccountIdT &&value)
void SetStartTimestamp(StartTimestampT &&value)
const RouteAnalysisPath & GetReturnPath() const
const Aws::Utils::DateTime & GetStartTimestamp() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue