AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
AgenticAccountSetup.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/AgenticAccountSetupErrorCode.h>
11#include <aws/workspaces/model/AgenticAccountSetupStatus.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 AgenticAccountSetup() = default;
33 AWS_WORKSPACES_API AgenticAccountSetup(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_WORKSPACES_API AgenticAccountSetup& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
36
38
42 inline AgenticAccountSetupStatus GetStatus() const { return m_status; }
43 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
45 m_statusHasBeenSet = true;
46 m_status = value;
47 }
49 SetStatus(value);
50 return *this;
51 }
53
55
60 inline AgenticAccountSetupErrorCode GetErrorCode() const { return m_errorCode; }
61 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
63 m_errorCodeHasBeenSet = true;
64 m_errorCode = value;
65 }
67 SetErrorCode(value);
68 return *this;
69 }
71
73
77 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
78 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
79 template <typename ErrorMessageT = Aws::String>
80 void SetErrorMessage(ErrorMessageT&& value) {
81 m_errorMessageHasBeenSet = true;
82 m_errorMessage = std::forward<ErrorMessageT>(value);
83 }
84 template <typename ErrorMessageT = Aws::String>
85 AgenticAccountSetup& WithErrorMessage(ErrorMessageT&& value) {
86 SetErrorMessage(std::forward<ErrorMessageT>(value));
87 return *this;
88 }
90 private:
92
94
95 Aws::String m_errorMessage;
96 bool m_statusHasBeenSet = false;
97 bool m_errorCodeHasBeenSet = false;
98 bool m_errorMessageHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace WorkSpaces
103} // namespace Aws
AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_WORKSPACES_API AgenticAccountSetup & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AgenticAccountSetupErrorCode GetErrorCode() const
AgenticAccountSetup & WithErrorMessage(ErrorMessageT &&value)
AWS_WORKSPACES_API AgenticAccountSetup(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetErrorCode(AgenticAccountSetupErrorCode value)
AgenticAccountSetup & WithStatus(AgenticAccountSetupStatus value)
AgenticAccountSetupStatus GetStatus() const
AWS_WORKSPACES_API AgenticAccountSetup()=default
AgenticAccountSetup & WithErrorCode(AgenticAccountSetupErrorCode value)
void SetStatus(AgenticAccountSetupStatus value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String