AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
RouteAnalysisCompletion.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/networkmanager/NetworkManager_EXPORTS.h>
10#include <aws/networkmanager/model/RouteAnalysisCompletionReasonCode.h>
11#include <aws/networkmanager/model/RouteAnalysisCompletionResultCode.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace NetworkManager {
23namespace Model {
24
32 public:
33 AWS_NETWORKMANAGER_API RouteAnalysisCompletion() = default;
34 AWS_NETWORKMANAGER_API RouteAnalysisCompletion(Aws::Utils::Json::JsonView jsonValue);
36 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline RouteAnalysisCompletionResultCode GetResultCode() const { return m_resultCode; }
44 inline bool ResultCodeHasBeenSet() const { return m_resultCodeHasBeenSet; }
46 m_resultCodeHasBeenSet = true;
47 m_resultCode = value;
48 }
54
56
74 inline RouteAnalysisCompletionReasonCode GetReasonCode() const { return m_reasonCode; }
75 inline bool ReasonCodeHasBeenSet() const { return m_reasonCodeHasBeenSet; }
77 m_reasonCodeHasBeenSet = true;
78 m_reasonCode = value;
79 }
85
87
91 inline const Aws::Map<Aws::String, Aws::String>& GetReasonContext() const { return m_reasonContext; }
92 inline bool ReasonContextHasBeenSet() const { return m_reasonContextHasBeenSet; }
93 template <typename ReasonContextT = Aws::Map<Aws::String, Aws::String>>
94 void SetReasonContext(ReasonContextT&& value) {
95 m_reasonContextHasBeenSet = true;
96 m_reasonContext = std::forward<ReasonContextT>(value);
97 }
98 template <typename ReasonContextT = Aws::Map<Aws::String, Aws::String>>
99 RouteAnalysisCompletion& WithReasonContext(ReasonContextT&& value) {
100 SetReasonContext(std::forward<ReasonContextT>(value));
101 return *this;
102 }
103 template <typename ReasonContextKeyT = Aws::String, typename ReasonContextValueT = Aws::String>
104 RouteAnalysisCompletion& AddReasonContext(ReasonContextKeyT&& key, ReasonContextValueT&& value) {
105 m_reasonContextHasBeenSet = true;
106 m_reasonContext.emplace(std::forward<ReasonContextKeyT>(key), std::forward<ReasonContextValueT>(value));
107 return *this;
108 }
110 private:
112
114
116 bool m_resultCodeHasBeenSet = false;
117 bool m_reasonCodeHasBeenSet = false;
118 bool m_reasonContextHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace NetworkManager
123} // namespace Aws
RouteAnalysisCompletionReasonCode GetReasonCode() const
AWS_NETWORKMANAGER_API RouteAnalysisCompletion & operator=(Aws::Utils::Json::JsonView jsonValue)
RouteAnalysisCompletion & AddReasonContext(ReasonContextKeyT &&key, ReasonContextValueT &&value)
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
RouteAnalysisCompletion & WithResultCode(RouteAnalysisCompletionResultCode value)
AWS_NETWORKMANAGER_API RouteAnalysisCompletion()=default
void SetReasonCode(RouteAnalysisCompletionReasonCode value)
void SetResultCode(RouteAnalysisCompletionResultCode value)
RouteAnalysisCompletion & WithReasonContext(ReasonContextT &&value)
AWS_NETWORKMANAGER_API RouteAnalysisCompletion(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetReasonContext() const
RouteAnalysisCompletion & WithReasonCode(RouteAnalysisCompletionReasonCode value)
RouteAnalysisCompletionResultCode GetResultCode() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue