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;
void SetErrorCode(ErrorCodeT &&value)
AccessDeniedException & WithMessage(MessageT &&value)
AWS_BACKUPGATEWAY_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
bool ErrorCodeHasBeenSet() const
AWS_BACKUPGATEWAY_API AccessDeniedException(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_BACKUPGATEWAY_API AccessDeniedException & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_BACKUPGATEWAY_API AccessDeniedException()=default
const Aws::String & GetMessage() const
const Aws::String & GetErrorCode() const
AccessDeniedException & WithErrorCode(ErrorCodeT &&value)
bool MessageHasBeenSet() const
void SetMessage(MessageT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String