AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
40 AWS_QBUSINESS_API ChatOutputStream(Aws::Utils::Json::JsonView jsonValue);
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 inline void SetTextEvent(const TextOutputEvent& value) { m_textEventHasBeenSet = true; m_textEvent = value; }
53 inline void SetTextEvent(TextOutputEvent&& value) { m_textEventHasBeenSet = true; m_textEvent = std::move(value); }
54 inline ChatOutputStream& WithTextEvent(const TextOutputEvent& value) { SetTextEvent(value); return *this;}
55 inline ChatOutputStream& WithTextEvent(TextOutputEvent&& value) { SetTextEvent(std::move(value)); return *this;}
57
59
63 inline const MetadataEvent& GetMetadataEvent() const{ return m_metadataEvent; }
64 inline bool MetadataEventHasBeenSet() const { return m_metadataEventHasBeenSet; }
65 inline void SetMetadataEvent(const MetadataEvent& value) { m_metadataEventHasBeenSet = true; m_metadataEvent = value; }
66 inline void SetMetadataEvent(MetadataEvent&& value) { m_metadataEventHasBeenSet = true; m_metadataEvent = std::move(value); }
67 inline ChatOutputStream& WithMetadataEvent(const MetadataEvent& value) { SetMetadataEvent(value); return *this;}
68 inline ChatOutputStream& WithMetadataEvent(MetadataEvent&& value) { SetMetadataEvent(std::move(value)); return *this;}
70
72
76 inline const ActionReviewEvent& GetActionReviewEvent() const{ return m_actionReviewEvent; }
77 inline bool ActionReviewEventHasBeenSet() const { return m_actionReviewEventHasBeenSet; }
78 inline void SetActionReviewEvent(const ActionReviewEvent& value) { m_actionReviewEventHasBeenSet = true; m_actionReviewEvent = value; }
79 inline void SetActionReviewEvent(ActionReviewEvent&& value) { m_actionReviewEventHasBeenSet = true; m_actionReviewEvent = std::move(value); }
81 inline ChatOutputStream& WithActionReviewEvent(ActionReviewEvent&& value) { SetActionReviewEvent(std::move(value)); return *this;}
83
85
88 inline const FailedAttachmentEvent& GetFailedAttachmentEvent() const{ return m_failedAttachmentEvent; }
89 inline bool FailedAttachmentEventHasBeenSet() const { return m_failedAttachmentEventHasBeenSet; }
90 inline void SetFailedAttachmentEvent(const FailedAttachmentEvent& value) { m_failedAttachmentEventHasBeenSet = true; m_failedAttachmentEvent = value; }
91 inline void SetFailedAttachmentEvent(FailedAttachmentEvent&& value) { m_failedAttachmentEventHasBeenSet = true; m_failedAttachmentEvent = std::move(value); }
95
97
101 inline const AuthChallengeRequestEvent& GetAuthChallengeRequestEvent() const{ return m_authChallengeRequestEvent; }
102 inline bool AuthChallengeRequestEventHasBeenSet() const { return m_authChallengeRequestEventHasBeenSet; }
103 inline void SetAuthChallengeRequestEvent(const AuthChallengeRequestEvent& value) { m_authChallengeRequestEventHasBeenSet = true; m_authChallengeRequestEvent = value; }
104 inline void SetAuthChallengeRequestEvent(AuthChallengeRequestEvent&& value) { m_authChallengeRequestEventHasBeenSet = true; m_authChallengeRequestEvent = std::move(value); }
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
void SetTextEvent(TextOutputEvent &&value)
void SetTextEvent(const TextOutputEvent &value)
ChatOutputStream & WithAuthChallengeRequestEvent(AuthChallengeRequestEvent &&value)
AWS_QBUSINESS_API ChatOutputStream & operator=(Aws::Utils::Json::JsonView jsonValue)
const TextOutputEvent & GetTextEvent() const
void SetFailedAttachmentEvent(FailedAttachmentEvent &&value)
ChatOutputStream & WithActionReviewEvent(ActionReviewEvent &&value)
ChatOutputStream & WithMetadataEvent(MetadataEvent &&value)
void SetAuthChallengeRequestEvent(AuthChallengeRequestEvent &&value)
ChatOutputStream & WithAuthChallengeRequestEvent(const AuthChallengeRequestEvent &value)
const MetadataEvent & GetMetadataEvent() const
void SetActionReviewEvent(const ActionReviewEvent &value)
ChatOutputStream & WithFailedAttachmentEvent(const FailedAttachmentEvent &value)
const AuthChallengeRequestEvent & GetAuthChallengeRequestEvent() const
ChatOutputStream & WithActionReviewEvent(const ActionReviewEvent &value)
ChatOutputStream & WithTextEvent(const TextOutputEvent &value)
ChatOutputStream & WithFailedAttachmentEvent(FailedAttachmentEvent &&value)
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAuthChallengeRequestEvent(const AuthChallengeRequestEvent &value)
const FailedAttachmentEvent & GetFailedAttachmentEvent() const
const ActionReviewEvent & GetActionReviewEvent() const
ChatOutputStream & WithMetadataEvent(const MetadataEvent &value)
void SetActionReviewEvent(ActionReviewEvent &&value)
AWS_QBUSINESS_API ChatOutputStream(Aws::Utils::Json::JsonView jsonValue)
void SetMetadataEvent(const MetadataEvent &value)
ChatOutputStream & WithTextEvent(TextOutputEvent &&value)
void SetFailedAttachmentEvent(const FailedAttachmentEvent &value)
void SetMetadataEvent(MetadataEvent &&value)
Aws::Utils::Json::JsonValue JsonValue