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/AgentRuntimeErrorCode.h>
32 AWS_WORKSPACES_API
AgentRuntimeError(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_WORKSPACES_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
42 template <
typename AgentRuntimeIdT = Aws::String>
44 m_agentRuntimeIdHasBeenSet =
true;
45 m_agentRuntimeId = std::forward<AgentRuntimeIdT>(value);
47 template <
typename AgentRuntimeIdT = Aws::String>
62 m_errorCodeHasBeenSet =
true;
77 template <
typename MessageT = Aws::String>
79 m_messageHasBeenSet =
true;
80 m_message = std::forward<MessageT>(value);
82 template <
typename MessageT = Aws::String>
94 bool m_agentRuntimeIdHasBeenSet =
false;
95 bool m_errorCodeHasBeenSet =
false;
96 bool m_messageHasBeenSet =
false;
void SetMessage(MessageT &&value)
AgentRuntimeErrorCode GetErrorCode() const
AWS_WORKSPACES_API AgentRuntimeError(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_WORKSPACES_API AgentRuntimeError()=default
bool ErrorCodeHasBeenSet() const
AgentRuntimeError & WithAgentRuntimeId(AgentRuntimeIdT &&value)
bool AgentRuntimeIdHasBeenSet() const
void SetAgentRuntimeId(AgentRuntimeIdT &&value)
AgentRuntimeError & WithMessage(MessageT &&value)
AWS_WORKSPACES_API AgentRuntimeError & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
bool MessageHasBeenSet() const
const Aws::String & GetMessage() const
AgentRuntimeError & WithErrorCode(AgentRuntimeErrorCode value)
const Aws::String & GetAgentRuntimeId() const
AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetErrorCode(AgentRuntimeErrorCode value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String