7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/qbusiness/QBusinessRequest.h>
9#include <aws/qbusiness/model/ChatHandler.h>
10#include <aws/core/utils/event/EventStreamDecoder.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/qbusiness/model/ChatInputStream.h>
16#include <aws/core/utils/UUID.h>
46 AWS_QBUSINESS_API std::shared_ptr<Aws::IOStream>
GetBody()
const override;
79 inline void SetApplicationId(
const char* value) { m_applicationIdHasBeenSet =
true; m_applicationId.assign(value); }
93 inline void SetUserId(
const char* value) { m_userIdHasBeenSet =
true; m_userId.assign(value); }
111 inline ChatRequest&
AddUserGroups(
const char* value) { m_userGroupsHasBeenSet =
true; m_userGroups.push_back(value);
return *
this; }
122 inline void SetConversationId(
const char* value) { m_conversationIdHasBeenSet =
true; m_conversationId.assign(value); }
137 inline void SetParentMessageId(
const char* value) { m_parentMessageIdHasBeenSet =
true; m_parentMessageId.assign(value); }
151 inline void SetClientToken(
const char* value) { m_clientTokenHasBeenSet =
true; m_clientToken.assign(value); }
161 AWS_QBUSINESS_API std::shared_ptr<ChatInputStream>
GetInputStream()
const {
return m_inputStream; }
162 AWS_QBUSINESS_API
void SetInputStream(
const std::shared_ptr<ChatInputStream>& value) { m_inputStream = value; }
169 bool m_applicationIdHasBeenSet =
false;
172 bool m_userIdHasBeenSet =
false;
175 bool m_userGroupsHasBeenSet =
false;
178 bool m_conversationIdHasBeenSet =
false;
181 bool m_parentMessageIdHasBeenSet =
false;
184 bool m_clientTokenHasBeenSet =
false;
186 std::shared_ptr<ChatInputStream> m_inputStream;
void SetClientToken(const Aws::String &value)
bool ConversationIdHasBeenSet() const
ChatRequest & WithEventStreamHandler(const ChatHandler &value)
bool UserIdHasBeenSet() const
void SetParentMessageId(const char *value)
ChatRequest & WithClientToken(const Aws::String &value)
const Aws::String & GetUserId() const
const Aws::Vector< Aws::String > & GetUserGroups() const
void SetParentMessageId(const Aws::String &value)
ChatRequest & WithUserId(const char *value)
bool ApplicationIdHasBeenSet() const
void SetUserGroups(const Aws::Vector< Aws::String > &value)
void SetApplicationId(const char *value)
const ChatHandler & GetEventStreamHandler() const
void SetUserGroups(Aws::Vector< Aws::String > &&value)
ChatRequest & WithApplicationId(const char *value)
ChatRequest & WithUserGroups(const Aws::Vector< Aws::String > &value)
AWS_QBUSINESS_API std::shared_ptr< ChatInputStream > GetInputStream() const
AWS_QBUSINESS_API void SetInputStream(const std::shared_ptr< ChatInputStream > &value)
void SetConversationId(const Aws::String &value)
const Aws::String & GetConversationId() const
const Aws::String & GetParentMessageId() const
AWS_QBUSINESS_API std::shared_ptr< Aws::IOStream > GetBody() const override
bool ParentMessageIdHasBeenSet() const
bool UserGroupsHasBeenSet() const
void SetConversationId(const char *value)
ChatRequest & WithUserGroups(Aws::Vector< Aws::String > &&value)
ChatRequest & WithApplicationId(const Aws::String &value)
ChatRequest & WithClientToken(const char *value)
ChatRequest & WithConversationId(const Aws::String &value)
const Aws::String & GetApplicationId() const
Aws::Utils::Event::EventStreamDecoder & GetEventStreamDecoder()
ChatRequest & WithApplicationId(Aws::String &&value)
void SetApplicationId(const Aws::String &value)
virtual bool IsEventStreamRequest() const override
AWS_QBUSINESS_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ChatRequest & WithConversationId(Aws::String &&value)
ChatRequest & WithUserId(Aws::String &&value)
ChatRequest & WithUserId(const Aws::String &value)
void SetApplicationId(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
ChatRequest & AddUserGroups(const char *value)
ChatRequest & AddUserGroups(Aws::String &&value)
void SetConversationId(Aws::String &&value)
const Aws::String & GetClientToken() const
ChatRequest & WithConversationId(const char *value)
void SetClientToken(Aws::String &&value)
ChatRequest & WithParentMessageId(const char *value)
ChatRequest & AddUserGroups(const Aws::String &value)
void SetUserId(const char *value)
ChatRequest & WithParentMessageId(Aws::String &&value)
ChatRequest & WithParentMessageId(const Aws::String &value)
AWS_QBUSINESS_API ChatRequest & WithInputStream(const std::shared_ptr< ChatInputStream > &value)
ChatRequest & WithClientToken(Aws::String &&value)
void SetEventStreamHandler(const ChatHandler &value)
AWS_QBUSINESS_API ChatRequest()
void SetUserId(const Aws::String &value)
void SetClientToken(const char *value)
void SetUserId(Aws::String &&value)
bool ClientTokenHasBeenSet() const
AWS_QBUSINESS_API Aws::String SerializePayload() const override
void SetParentMessageId(Aws::String &&value)
void ResetEventStreamHandler(EventStreamHandler *handler)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector