AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
FailedAttachmentEvent.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/qbusiness/model/AttachmentOutput.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace QBusiness
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_QBUSINESS_API FailedAttachmentEvent() = default;
39 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetConversationId() const { return m_conversationId; }
48 inline bool ConversationIdHasBeenSet() const { return m_conversationIdHasBeenSet; }
49 template<typename ConversationIdT = Aws::String>
50 void SetConversationId(ConversationIdT&& value) { m_conversationIdHasBeenSet = true; m_conversationId = std::forward<ConversationIdT>(value); }
51 template<typename ConversationIdT = Aws::String>
52 FailedAttachmentEvent& WithConversationId(ConversationIdT&& value) { SetConversationId(std::forward<ConversationIdT>(value)); return *this;}
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>
63 void SetUserMessageId(UserMessageIdT&& value) { m_userMessageIdHasBeenSet = true; m_userMessageId = std::forward<UserMessageIdT>(value); }
64 template<typename UserMessageIdT = Aws::String>
65 FailedAttachmentEvent& WithUserMessageId(UserMessageIdT&& value) { SetUserMessageId(std::forward<UserMessageIdT>(value)); return *this;}
67
69
73 inline const Aws::String& GetSystemMessageId() const { return m_systemMessageId; }
74 inline bool SystemMessageIdHasBeenSet() const { return m_systemMessageIdHasBeenSet; }
75 template<typename SystemMessageIdT = Aws::String>
76 void SetSystemMessageId(SystemMessageIdT&& value) { m_systemMessageIdHasBeenSet = true; m_systemMessageId = std::forward<SystemMessageIdT>(value); }
77 template<typename SystemMessageIdT = Aws::String>
78 FailedAttachmentEvent& WithSystemMessageId(SystemMessageIdT&& value) { SetSystemMessageId(std::forward<SystemMessageIdT>(value)); return *this;}
80
82
83 inline const AttachmentOutput& GetAttachment() const { return m_attachment; }
84 inline bool AttachmentHasBeenSet() const { return m_attachmentHasBeenSet; }
85 template<typename AttachmentT = AttachmentOutput>
86 void SetAttachment(AttachmentT&& value) { m_attachmentHasBeenSet = true; m_attachment = std::forward<AttachmentT>(value); }
87 template<typename AttachmentT = AttachmentOutput>
88 FailedAttachmentEvent& WithAttachment(AttachmentT&& value) { SetAttachment(std::forward<AttachmentT>(value)); return *this;}
90 private:
91
92 Aws::String m_conversationId;
93 bool m_conversationIdHasBeenSet = false;
94
95 Aws::String m_userMessageId;
96 bool m_userMessageIdHasBeenSet = false;
97
98 Aws::String m_systemMessageId;
99 bool m_systemMessageIdHasBeenSet = false;
100
101 AttachmentOutput m_attachment;
102 bool m_attachmentHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace QBusiness
107} // 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