AWS SDK for C++

AWS SDK for C++ Version 1.11.900

Loading...
Searching...
No Matches
InternalServerException.h
1
6#pragma once
7#include <aws/cloudwatchomni/CloudWatchOmni_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/crt/cbor/Cbor.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace CloudWatchOmni {
20namespace Model {
21
29 public:
30 AWS_CLOUDWATCHOMNI_API InternalServerException() = default;
31 AWS_CLOUDWATCHOMNI_API InternalServerException(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_CLOUDWATCHOMNI_API InternalServerException& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
37 inline const Aws::String& GetMessage() const { return m_message; }
38 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
39 template <typename MessageT = Aws::String>
40 void SetMessage(MessageT&& value) {
41 m_messageHasBeenSet = true;
42 m_message = std::forward<MessageT>(value);
43 }
44 template <typename MessageT = Aws::String>
46 SetMessage(std::forward<MessageT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetErrorCode() const { return m_errorCode; }
56 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
57 template <typename ErrorCodeT = Aws::String>
58 void SetErrorCode(ErrorCodeT&& value) {
59 m_errorCodeHasBeenSet = true;
60 m_errorCode = std::forward<ErrorCodeT>(value);
61 }
62 template <typename ErrorCodeT = Aws::String>
64 SetErrorCode(std::forward<ErrorCodeT>(value));
65 return *this;
66 }
68 private:
69 Aws::String m_message;
70
71 Aws::String m_errorCode;
72 bool m_messageHasBeenSet = false;
73 bool m_errorCodeHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace CloudWatchOmni
78} // namespace Aws
InternalServerException & WithErrorCode(ErrorCodeT &&value)
AWS_CLOUDWATCHOMNI_API InternalServerException()=default
AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_CLOUDWATCHOMNI_API InternalServerException & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CLOUDWATCHOMNI_API InternalServerException(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
InternalServerException & WithMessage(MessageT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String