AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
ChatOutputStream.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/qbusiness/model/ActionReviewEvent.h>
9#include <aws/qbusiness/model/AuthChallengeRequestEvent.h>
10#include <aws/qbusiness/model/FailedAttachmentEvent.h>
11#include <aws/qbusiness/model/MetadataEvent.h>
12#include <aws/qbusiness/model/TextOutputEvent.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace QBusiness {
24namespace Model {
25
33 public:
34 AWS_QBUSINESS_API ChatOutputStream() = default;
37 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline const TextOutputEvent& GetTextEvent() const { return m_textEvent; }
45 inline bool TextEventHasBeenSet() const { return m_textEventHasBeenSet; }
46 template <typename TextEventT = TextOutputEvent>
47 void SetTextEvent(TextEventT&& value) {
48 m_textEventHasBeenSet = true;
49 m_textEvent = std::forward<TextEventT>(value);
50 }
51 template <typename TextEventT = TextOutputEvent>
53 SetTextEvent(std::forward<TextEventT>(value));
54 return *this;
55 }
57
59
63 inline const MetadataEvent& GetMetadataEvent() const { return m_metadataEvent; }
64 inline bool MetadataEventHasBeenSet() const { return m_metadataEventHasBeenSet; }
65 template <typename MetadataEventT = MetadataEvent>
67 m_metadataEventHasBeenSet = true;
68 m_metadataEvent = std::forward<MetadataEventT>(value);
69 }
70 template <typename MetadataEventT = MetadataEvent>
72 SetMetadataEvent(std::forward<MetadataEventT>(value));
73 return *this;
74 }
76
78
82 inline const ActionReviewEvent& GetActionReviewEvent() const { return m_actionReviewEvent; }
83 inline bool ActionReviewEventHasBeenSet() const { return m_actionReviewEventHasBeenSet; }
84 template <typename ActionReviewEventT = ActionReviewEvent>
86 m_actionReviewEventHasBeenSet = true;
87 m_actionReviewEvent = std::forward<ActionReviewEventT>(value);
88 }
89 template <typename ActionReviewEventT = ActionReviewEvent>
91 SetActionReviewEvent(std::forward<ActionReviewEventT>(value));
92 return *this;
93 }
95
97
100 inline const FailedAttachmentEvent& GetFailedAttachmentEvent() const { return m_failedAttachmentEvent; }
101 inline bool FailedAttachmentEventHasBeenSet() const { return m_failedAttachmentEventHasBeenSet; }
102 template <typename FailedAttachmentEventT = FailedAttachmentEvent>
104 m_failedAttachmentEventHasBeenSet = true;
105 m_failedAttachmentEvent = std::forward<FailedAttachmentEventT>(value);
106 }
107 template <typename FailedAttachmentEventT = FailedAttachmentEvent>
109 SetFailedAttachmentEvent(std::forward<FailedAttachmentEventT>(value));
110 return *this;
111 }
113
115
119 inline const AuthChallengeRequestEvent& GetAuthChallengeRequestEvent() const { return m_authChallengeRequestEvent; }
120 inline bool AuthChallengeRequestEventHasBeenSet() const { return m_authChallengeRequestEventHasBeenSet; }
121 template <typename AuthChallengeRequestEventT = AuthChallengeRequestEvent>
123 m_authChallengeRequestEventHasBeenSet = true;
124 m_authChallengeRequestEvent = std::forward<AuthChallengeRequestEventT>(value);
125 }
126 template <typename AuthChallengeRequestEventT = AuthChallengeRequestEvent>
128 SetAuthChallengeRequestEvent(std::forward<AuthChallengeRequestEventT>(value));
129 return *this;
130 }
132 private:
133 TextOutputEvent m_textEvent;
134
135 MetadataEvent m_metadataEvent;
136
137 ActionReviewEvent m_actionReviewEvent;
138
139 FailedAttachmentEvent m_failedAttachmentEvent;
140
141 AuthChallengeRequestEvent m_authChallengeRequestEvent;
142 bool m_textEventHasBeenSet = false;
143 bool m_metadataEventHasBeenSet = false;
144 bool m_actionReviewEventHasBeenSet = false;
145 bool m_failedAttachmentEventHasBeenSet = false;
146 bool m_authChallengeRequestEventHasBeenSet = false;
147};
148
149} // namespace Model
150} // namespace QBusiness
151} // namespace Aws
AWS_QBUSINESS_API ChatOutputStream & operator=(Aws::Utils::Json::JsonView jsonValue)
const TextOutputEvent & GetTextEvent() const
void SetActionReviewEvent(ActionReviewEventT &&value)
void SetFailedAttachmentEvent(FailedAttachmentEventT &&value)
const MetadataEvent & GetMetadataEvent() const
ChatOutputStream & WithTextEvent(TextEventT &&value)
void SetAuthChallengeRequestEvent(AuthChallengeRequestEventT &&value)
const AuthChallengeRequestEvent & GetAuthChallengeRequestEvent() const
ChatOutputStream & WithAuthChallengeRequestEvent(AuthChallengeRequestEventT &&value)
ChatOutputStream & WithMetadataEvent(MetadataEventT &&value)
void SetMetadataEvent(MetadataEventT &&value)
ChatOutputStream & WithActionReviewEvent(ActionReviewEventT &&value)
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_QBUSINESS_API ChatOutputStream()=default
const FailedAttachmentEvent & GetFailedAttachmentEvent() const
const ActionReviewEvent & GetActionReviewEvent() const
ChatOutputStream & WithFailedAttachmentEvent(FailedAttachmentEventT &&value)
AWS_QBUSINESS_API ChatOutputStream(Aws::Utils::Json::JsonView jsonValue)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue