AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
ErrorInformation.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/codedeploy/model/ErrorCode.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/crt/cbor/Cbor.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace CodeDeploy {
21namespace Model {
22
29 public:
30 AWS_CODEDEPLOY_API ErrorInformation() = default;
31 AWS_CODEDEPLOY_API ErrorInformation(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_CODEDEPLOY_API ErrorInformation& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_CODEDEPLOY_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
64 inline ErrorCode GetCode() const { return m_code; }
65 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
66 inline void SetCode(ErrorCode value) {
67 m_codeHasBeenSet = true;
68 m_code = value;
69 }
71 SetCode(value);
72 return *this;
73 }
75
77
80 inline const Aws::String& GetMessage() const { return m_message; }
81 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
82 template <typename MessageT = Aws::String>
83 void SetMessage(MessageT&& value) {
84 m_messageHasBeenSet = true;
85 m_message = std::forward<MessageT>(value);
86 }
87 template <typename MessageT = Aws::String>
88 ErrorInformation& WithMessage(MessageT&& value) {
89 SetMessage(std::forward<MessageT>(value));
90 return *this;
91 }
93 private:
95
96 Aws::String m_message;
97 bool m_codeHasBeenSet = false;
98 bool m_messageHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace CodeDeploy
103} // namespace Aws
ErrorInformation & WithCode(ErrorCode value)
AWS_CODEDEPLOY_API ErrorInformation()=default
AWS_CODEDEPLOY_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const Aws::String & GetMessage() const
AWS_CODEDEPLOY_API ErrorInformation(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CODEDEPLOY_API ErrorInformation & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ErrorInformation & WithMessage(MessageT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String