AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
RouteAnalysisPath.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/networkmanager/NetworkManager_EXPORTS.h>
9#include <aws/networkmanager/model/PathComponent.h>
10#include <aws/networkmanager/model/RouteAnalysisCompletion.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace NetworkManager {
22namespace Model {
23
30 public:
31 AWS_NETWORKMANAGER_API RouteAnalysisPath() = default;
32 AWS_NETWORKMANAGER_API RouteAnalysisPath(Aws::Utils::Json::JsonView jsonValue);
33 AWS_NETWORKMANAGER_API RouteAnalysisPath& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const RouteAnalysisCompletion& GetCompletionStatus() const { return m_completionStatus; }
41 inline bool CompletionStatusHasBeenSet() const { return m_completionStatusHasBeenSet; }
42 template <typename CompletionStatusT = RouteAnalysisCompletion>
43 void SetCompletionStatus(CompletionStatusT&& value) {
44 m_completionStatusHasBeenSet = true;
45 m_completionStatus = std::forward<CompletionStatusT>(value);
46 }
47 template <typename CompletionStatusT = RouteAnalysisCompletion>
48 RouteAnalysisPath& WithCompletionStatus(CompletionStatusT&& value) {
49 SetCompletionStatus(std::forward<CompletionStatusT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Vector<PathComponent>& GetPath() const { return m_path; }
59 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
60 template <typename PathT = Aws::Vector<PathComponent>>
61 void SetPath(PathT&& value) {
62 m_pathHasBeenSet = true;
63 m_path = std::forward<PathT>(value);
64 }
65 template <typename PathT = Aws::Vector<PathComponent>>
66 RouteAnalysisPath& WithPath(PathT&& value) {
67 SetPath(std::forward<PathT>(value));
68 return *this;
69 }
70 template <typename PathT = PathComponent>
71 RouteAnalysisPath& AddPath(PathT&& value) {
72 m_pathHasBeenSet = true;
73 m_path.emplace_back(std::forward<PathT>(value));
74 return *this;
75 }
77 private:
78 RouteAnalysisCompletion m_completionStatus;
79
81 bool m_completionStatusHasBeenSet = false;
82 bool m_pathHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace NetworkManager
87} // namespace Aws
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
RouteAnalysisPath & WithCompletionStatus(CompletionStatusT &&value)
const Aws::Vector< PathComponent > & GetPath() const
const RouteAnalysisCompletion & GetCompletionStatus() const
AWS_NETWORKMANAGER_API RouteAnalysisPath()=default
AWS_NETWORKMANAGER_API RouteAnalysisPath & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKMANAGER_API RouteAnalysisPath(Aws::Utils::Json::JsonView jsonValue)
RouteAnalysisPath & AddPath(PathT &&value)
RouteAnalysisPath & WithPath(PathT &&value)
void SetCompletionStatus(CompletionStatusT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue