AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
AgenticRuntimeState.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/workspaces/WorkSpaces_EXPORTS.h>
10#include <aws/workspaces/model/AgenticRuntimeErrorCode.h>
11#include <aws/workspaces/model/AgenticRuntimeStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Cbor {
18class CborValue;
19} // namespace Cbor
20} // namespace Utils
21namespace WorkSpaces {
22namespace Model {
23
31 public:
32 AWS_WORKSPACES_API AgenticRuntimeState() = default;
33 AWS_WORKSPACES_API AgenticRuntimeState(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_WORKSPACES_API AgenticRuntimeState& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
36
38
43 inline AgenticRuntimeStatus GetStatus() const { return m_status; }
44 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
45 inline void SetStatus(AgenticRuntimeStatus value) {
46 m_statusHasBeenSet = true;
47 m_status = value;
48 }
50 SetStatus(value);
51 return *this;
52 }
54
56
62 inline AgenticRuntimeErrorCode GetErrorCode() const { return m_errorCode; }
63 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
65 m_errorCodeHasBeenSet = true;
66 m_errorCode = value;
67 }
69 SetErrorCode(value);
70 return *this;
71 }
73
75
80 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
81 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
82 template <typename ErrorMessageT = Aws::String>
83 void SetErrorMessage(ErrorMessageT&& value) {
84 m_errorMessageHasBeenSet = true;
85 m_errorMessage = std::forward<ErrorMessageT>(value);
86 }
87 template <typename ErrorMessageT = Aws::String>
88 AgenticRuntimeState& WithErrorMessage(ErrorMessageT&& value) {
89 SetErrorMessage(std::forward<ErrorMessageT>(value));
90 return *this;
91 }
93 private:
95
97
98 Aws::String m_errorMessage;
99 bool m_statusHasBeenSet = false;
100 bool m_errorCodeHasBeenSet = false;
101 bool m_errorMessageHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace WorkSpaces
106} // namespace Aws
AgenticRuntimeState & WithErrorCode(AgenticRuntimeErrorCode value)
AgenticRuntimeState & WithStatus(AgenticRuntimeStatus value)
AgenticRuntimeState & WithErrorMessage(ErrorMessageT &&value)
AWS_WORKSPACES_API AgenticRuntimeState & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_WORKSPACES_API AgenticRuntimeState()=default
void SetStatus(AgenticRuntimeStatus value)
AgenticRuntimeErrorCode GetErrorCode() const
AWS_WORKSPACES_API AgenticRuntimeState(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetErrorCode(AgenticRuntimeErrorCode value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String