AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ChatOutputStream.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/qbusiness/model/TextOutputEvent.h>
9#include <aws/qbusiness/model/MetadataEvent.h>
10#include <aws/qbusiness/model/ActionReviewEvent.h>
11#include <aws/qbusiness/model/FailedAttachmentEvent.h>
12#include <aws/qbusiness/model/AuthChallengeRequestEvent.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace QBusiness
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_QBUSINESS_API ChatOutputStream() = default;
42 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const TextOutputEvent& GetTextEvent() const { return m_textEvent; }
51 inline bool TextEventHasBeenSet() const { return m_textEventHasBeenSet; }
52 template<typename TextEventT = TextOutputEvent>
53 void SetTextEvent(TextEventT&& value) { m_textEventHasBeenSet = true; m_textEvent = std::forward<TextEventT>(value); }
54 template<typename TextEventT = TextOutputEvent>
55 ChatOutputStream& WithTextEvent(TextEventT&& value) { SetTextEvent(std::forward<TextEventT>(value)); return *this;}
57
59
63 inline const MetadataEvent& GetMetadataEvent() const { return m_metadataEvent; }
64 inline bool MetadataEventHasBeenSet() const { return m_metadataEventHasBeenSet; }
65 template<typename MetadataEventT = MetadataEvent>
66 void SetMetadataEvent(MetadataEventT&& value) { m_metadataEventHasBeenSet = true; m_metadataEvent = std::forward<MetadataEventT>(value); }
67 template<typename MetadataEventT = MetadataEvent>
68 ChatOutputStream& WithMetadataEvent(MetadataEventT&& value) { SetMetadataEvent(std::forward<MetadataEventT>(value)); return *this;}
70
72
76 inline const ActionReviewEvent& GetActionReviewEvent() const { return m_actionReviewEvent; }
77 inline bool ActionReviewEventHasBeenSet() const { return m_actionReviewEventHasBeenSet; }
78 template<typename ActionReviewEventT = ActionReviewEvent>
79 void SetActionReviewEvent(ActionReviewEventT&& value) { m_actionReviewEventHasBeenSet = true; m_actionReviewEvent = std::forward<ActionReviewEventT>(value); }
80 template<typename ActionReviewEventT = ActionReviewEvent>
81 ChatOutputStream& WithActionReviewEvent(ActionReviewEventT&& value) { SetActionReviewEvent(std::forward<ActionReviewEventT>(value)); return *this;}
83
85
88 inline const FailedAttachmentEvent& GetFailedAttachmentEvent() const { return m_failedAttachmentEvent; }
89 inline bool FailedAttachmentEventHasBeenSet() const { return m_failedAttachmentEventHasBeenSet; }
90 template<typename FailedAttachmentEventT = FailedAttachmentEvent>
91 void SetFailedAttachmentEvent(FailedAttachmentEventT&& value) { m_failedAttachmentEventHasBeenSet = true; m_failedAttachmentEvent = std::forward<FailedAttachmentEventT>(value); }
92 template<typename FailedAttachmentEventT = FailedAttachmentEvent>
93 ChatOutputStream& WithFailedAttachmentEvent(FailedAttachmentEventT&& value) { SetFailedAttachmentEvent(std::forward<FailedAttachmentEventT>(value)); return *this;}
95
97
101 inline const AuthChallengeRequestEvent& GetAuthChallengeRequestEvent() const { return m_authChallengeRequestEvent; }
102 inline bool AuthChallengeRequestEventHasBeenSet() const { return m_authChallengeRequestEventHasBeenSet; }
103 template<typename AuthChallengeRequestEventT = AuthChallengeRequestEvent>
104 void SetAuthChallengeRequestEvent(AuthChallengeRequestEventT&& value) { m_authChallengeRequestEventHasBeenSet = true; m_authChallengeRequestEvent = std::forward<AuthChallengeRequestEventT>(value); }
105 template<typename AuthChallengeRequestEventT = AuthChallengeRequestEvent>
106 ChatOutputStream& WithAuthChallengeRequestEvent(AuthChallengeRequestEventT&& value) { SetAuthChallengeRequestEvent(std::forward<AuthChallengeRequestEventT>(value)); return *this;}
108 private:
109
110 TextOutputEvent m_textEvent;
111 bool m_textEventHasBeenSet = false;
112
113 MetadataEvent m_metadataEvent;
114 bool m_metadataEventHasBeenSet = false;
115
116 ActionReviewEvent m_actionReviewEvent;
117 bool m_actionReviewEventHasBeenSet = false;
118
119 FailedAttachmentEvent m_failedAttachmentEvent;
120 bool m_failedAttachmentEventHasBeenSet = false;
121
122 AuthChallengeRequestEvent m_authChallengeRequestEvent;
123 bool m_authChallengeRequestEventHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace QBusiness
128} // 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