AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
BatchGetCommentError.h
1
6#pragma once
7#include <aws/assurance/Assurance_EXPORTS.h>
8#include <aws/assurance/model/CommentKey.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 Assurance {
21namespace Model {
22
30 public:
31 AWS_ASSURANCE_API BatchGetCommentError() = default;
32 AWS_ASSURANCE_API BatchGetCommentError(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_ASSURANCE_API BatchGetCommentError& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_ASSURANCE_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
40 inline const CommentKey& GetKey() const { return m_key; }
41 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
42 template <typename KeyT = CommentKey>
43 void SetKey(KeyT&& value) {
44 m_keyHasBeenSet = true;
45 m_key = std::forward<KeyT>(value);
46 }
47 template <typename KeyT = CommentKey>
49 SetKey(std::forward<KeyT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetCode() const { return m_code; }
60 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
61 template <typename CodeT = Aws::String>
62 void SetCode(CodeT&& value) {
63 m_codeHasBeenSet = true;
64 m_code = std::forward<CodeT>(value);
65 }
66 template <typename CodeT = Aws::String>
68 SetCode(std::forward<CodeT>(value));
69 return *this;
70 }
72
74
79 inline const Aws::String& GetMessage() const { return m_message; }
80 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
81 template <typename MessageT = Aws::String>
82 void SetMessage(MessageT&& value) {
83 m_messageHasBeenSet = true;
84 m_message = std::forward<MessageT>(value);
85 }
86 template <typename MessageT = Aws::String>
87 BatchGetCommentError& WithMessage(MessageT&& value) {
88 SetMessage(std::forward<MessageT>(value));
89 return *this;
90 }
92 private:
93 CommentKey m_key;
94
95 Aws::String m_code;
96
97 Aws::String m_message;
98 bool m_keyHasBeenSet = false;
99 bool m_codeHasBeenSet = false;
100 bool m_messageHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace Assurance
105} // namespace Aws
BatchGetCommentError & WithKey(KeyT &&value)
AWS_ASSURANCE_API BatchGetCommentError(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
BatchGetCommentError & WithCode(CodeT &&value)
AWS_ASSURANCE_API BatchGetCommentError & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_ASSURANCE_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_ASSURANCE_API BatchGetCommentError()=default
BatchGetCommentError & WithMessage(MessageT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String