7#include <aws/backup-gateway/BackupGateway_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/crt/cbor/Cbor.h>
19namespace BackupGateway {
33 AWS_BACKUPGATEWAY_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
41 template <
typename ErrorCodeT = Aws::String>
43 m_errorCodeHasBeenSet =
true;
44 m_errorCode = std::forward<ErrorCodeT>(value);
46 template <
typename ErrorCodeT = Aws::String>
57 template <
typename MessageT = Aws::String>
59 m_messageHasBeenSet =
true;
60 m_message = std::forward<MessageT>(value);
62 template <
typename MessageT = Aws::String>
72 bool m_errorCodeHasBeenSet =
false;
73 bool m_messageHasBeenSet =
false;
bool MessageHasBeenSet() const
bool ErrorCodeHasBeenSet() const
void SetErrorCode(ErrorCodeT &&value)
InternalServerException & WithMessage(MessageT &&value)
const Aws::String & GetErrorCode() const
AWS_BACKUPGATEWAY_API InternalServerException()=default
const Aws::String & GetMessage() const
AWS_BACKUPGATEWAY_API InternalServerException & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetMessage(MessageT &&value)
AWS_BACKUPGATEWAY_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_BACKUPGATEWAY_API InternalServerException(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
InternalServerException & WithErrorCode(ErrorCodeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String