AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
FailedAttachmentEvent.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/qbusiness/QBusiness_EXPORTS.h>
9#include <aws/qbusiness/model/AttachmentOutput.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace QBusiness {
21namespace Model {
22
30 public:
31 AWS_QBUSINESS_API FailedAttachmentEvent() = default;
34 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetConversationId() const { return m_conversationId; }
42 inline bool ConversationIdHasBeenSet() const { return m_conversationIdHasBeenSet; }
43 template <typename ConversationIdT = Aws::String>
45 m_conversationIdHasBeenSet = true;
46 m_conversationId = std::forward<ConversationIdT>(value);
47 }
48 template <typename ConversationIdT = Aws::String>
50 SetConversationId(std::forward<ConversationIdT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetUserMessageId() const { return m_userMessageId; }
61 inline bool UserMessageIdHasBeenSet() const { return m_userMessageIdHasBeenSet; }
62 template <typename UserMessageIdT = Aws::String>
64 m_userMessageIdHasBeenSet = true;
65 m_userMessageId = std::forward<UserMessageIdT>(value);
66 }
67 template <typename UserMessageIdT = Aws::String>
69 SetUserMessageId(std::forward<UserMessageIdT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::String& GetSystemMessageId() const { return m_systemMessageId; }
80 inline bool SystemMessageIdHasBeenSet() const { return m_systemMessageIdHasBeenSet; }
81 template <typename SystemMessageIdT = Aws::String>
83 m_systemMessageIdHasBeenSet = true;
84 m_systemMessageId = std::forward<SystemMessageIdT>(value);
85 }
86 template <typename SystemMessageIdT = Aws::String>
88 SetSystemMessageId(std::forward<SystemMessageIdT>(value));
89 return *this;
90 }
92
94
95 inline const AttachmentOutput& GetAttachment() const { return m_attachment; }
96 inline bool AttachmentHasBeenSet() const { return m_attachmentHasBeenSet; }
97 template <typename AttachmentT = AttachmentOutput>
98 void SetAttachment(AttachmentT&& value) {
99 m_attachmentHasBeenSet = true;
100 m_attachment = std::forward<AttachmentT>(value);
101 }
102 template <typename AttachmentT = AttachmentOutput>
104 SetAttachment(std::forward<AttachmentT>(value));
105 return *this;
106 }
108 private:
109 Aws::String m_conversationId;
110
111 Aws::String m_userMessageId;
112
113 Aws::String m_systemMessageId;
114
115 AttachmentOutput m_attachment;
116 bool m_conversationIdHasBeenSet = false;
117 bool m_userMessageIdHasBeenSet = false;
118 bool m_systemMessageIdHasBeenSet = false;
119 bool m_attachmentHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace QBusiness
124} // namespace Aws
FailedAttachmentEvent & WithSystemMessageId(SystemMessageIdT &&value)
FailedAttachmentEvent & WithAttachment(AttachmentT &&value)
AWS_QBUSINESS_API FailedAttachmentEvent(Aws::Utils::Json::JsonView jsonValue)
AWS_QBUSINESS_API FailedAttachmentEvent()=default
AWS_QBUSINESS_API FailedAttachmentEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
FailedAttachmentEvent & WithConversationId(ConversationIdT &&value)
const AttachmentOutput & GetAttachment() const
void SetSystemMessageId(SystemMessageIdT &&value)
FailedAttachmentEvent & WithUserMessageId(UserMessageIdT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue