AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
InvokeAssistantRequest.h
1
6#pragma once
7#include <aws/iotsitewise/IoTSiteWise_EXPORTS.h>
8#include <aws/iotsitewise/IoTSiteWiseRequest.h>
9#include <aws/iotsitewise/model/InvokeAssistantHandler.h>
10#include <aws/core/utils/event/EventStreamDecoder.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16namespace IoTSiteWise
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_IOTSITEWISE_API InvokeAssistantRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "InvokeAssistant"; }
33
34 inline virtual bool HasEventStreamResponse() const override { return true; }
35 AWS_IOTSITEWISE_API Aws::String SerializePayload() const override;
36
41
45 inline InvokeAssistantHandler& GetEventStreamHandler() { return m_handler; }
46
50 inline void SetEventStreamHandler(const InvokeAssistantHandler& value) { m_handler = value; m_decoder.ResetEventStreamHandler(&m_handler); }
51
56
57
59
65 inline const Aws::String& GetConversationId() const { return m_conversationId; }
66 inline bool ConversationIdHasBeenSet() const { return m_conversationIdHasBeenSet; }
67 template<typename ConversationIdT = Aws::String>
68 void SetConversationId(ConversationIdT&& value) { m_conversationIdHasBeenSet = true; m_conversationId = std::forward<ConversationIdT>(value); }
69 template<typename ConversationIdT = Aws::String>
70 InvokeAssistantRequest& WithConversationId(ConversationIdT&& value) { SetConversationId(std::forward<ConversationIdT>(value)); return *this;}
72
74
77 inline const Aws::String& GetMessage() const { return m_message; }
78 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
79 template<typename MessageT = Aws::String>
80 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
81 template<typename MessageT = Aws::String>
82 InvokeAssistantRequest& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
84
86
90 inline bool GetEnableTrace() const { return m_enableTrace; }
91 inline bool EnableTraceHasBeenSet() const { return m_enableTraceHasBeenSet; }
92 inline void SetEnableTrace(bool value) { m_enableTraceHasBeenSet = true; m_enableTrace = value; }
93 inline InvokeAssistantRequest& WithEnableTrace(bool value) { SetEnableTrace(value); return *this;}
95 private:
96
97 Aws::String m_conversationId;
98 bool m_conversationIdHasBeenSet = false;
99
100 Aws::String m_message;
101 bool m_messageHasBeenSet = false;
102
103 bool m_enableTrace{false};
104 bool m_enableTraceHasBeenSet = false;
105 InvokeAssistantHandler m_handler;
107
108 };
109
110} // namespace Model
111} // namespace IoTSiteWise
112} // namespace Aws
AWS_IOTSITEWISE_API InvokeAssistantRequest()=default
virtual const char * GetServiceRequestName() const override
InvokeAssistantRequest & WithMessage(MessageT &&value)
Aws::Utils::Event::EventStreamDecoder & GetEventStreamDecoder()
InvokeAssistantRequest & WithEventStreamHandler(const InvokeAssistantHandler &value)
AWS_IOTSITEWISE_API Aws::String SerializePayload() const override
InvokeAssistantRequest & WithConversationId(ConversationIdT &&value)
InvokeAssistantRequest & WithEnableTrace(bool value)
void SetEventStreamHandler(const InvokeAssistantHandler &value)
void ResetEventStreamHandler(EventStreamHandler *handler)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String