7#include <aws/appstream/AppStream_EXPORTS.h>
8#include <aws/appstream/model/StackErrorCode.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/crt/cbor/Cbor.h>
31 AWS_APPSTREAM_API
StackError(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_APPSTREAM_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
42 m_errorCodeHasBeenSet =
true;
57 template <
typename ErrorMessageT = Aws::String>
59 m_errorMessageHasBeenSet =
true;
60 m_errorMessage = std::forward<ErrorMessageT>(value);
62 template <
typename ErrorMessageT = Aws::String>
72 bool m_errorCodeHasBeenSet =
false;
73 bool m_errorMessageHasBeenSet =
false;
StackErrorCode GetErrorCode() const
AWS_APPSTREAM_API StackError & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetErrorCode(StackErrorCode value)
AWS_APPSTREAM_API StackError()=default
StackError & WithErrorMessage(ErrorMessageT &&value)
StackError & WithErrorCode(StackErrorCode value)
AWS_APPSTREAM_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const Aws::String & GetErrorMessage() const
void SetErrorMessage(ErrorMessageT &&value)
AWS_APPSTREAM_API StackError(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
bool ErrorMessageHasBeenSet() const
bool ErrorCodeHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String