AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetNextMessageResult.h
1
6#pragma once
7#include <aws/qconnect/QConnect_EXPORTS.h>
8#include <aws/qconnect/model/MessageType.h>
9#include <aws/qconnect/model/MessageOutput.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/qconnect/model/ConversationState.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/qconnect/model/RuntimeSessionData.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace QConnect
29{
30namespace Model
31{
33 {
34 public:
35 AWS_QCONNECT_API GetNextMessageResult() = default;
38
39
41
44 inline MessageType GetType() const { return m_type; }
45 inline void SetType(MessageType value) { m_typeHasBeenSet = true; m_type = value; }
46 inline GetNextMessageResult& WithType(MessageType value) { SetType(value); return *this;}
48
50
53 inline const MessageOutput& GetResponse() const { return m_response; }
54 template<typename ResponseT = MessageOutput>
55 void SetResponse(ResponseT&& value) { m_responseHasBeenSet = true; m_response = std::forward<ResponseT>(value); }
56 template<typename ResponseT = MessageOutput>
57 GetNextMessageResult& WithResponse(ResponseT&& value) { SetResponse(std::forward<ResponseT>(value)); return *this;}
59
61
64 inline const Aws::String& GetRequestMessageId() const { return m_requestMessageId; }
65 template<typename RequestMessageIdT = Aws::String>
66 void SetRequestMessageId(RequestMessageIdT&& value) { m_requestMessageIdHasBeenSet = true; m_requestMessageId = std::forward<RequestMessageIdT>(value); }
67 template<typename RequestMessageIdT = Aws::String>
68 GetNextMessageResult& WithRequestMessageId(RequestMessageIdT&& value) { SetRequestMessageId(std::forward<RequestMessageIdT>(value)); return *this;}
70
72
75 inline const ConversationState& GetConversationState() const { return m_conversationState; }
76 template<typename ConversationStateT = ConversationState>
77 void SetConversationState(ConversationStateT&& value) { m_conversationStateHasBeenSet = true; m_conversationState = std::forward<ConversationStateT>(value); }
78 template<typename ConversationStateT = ConversationState>
79 GetNextMessageResult& WithConversationState(ConversationStateT&& value) { SetConversationState(std::forward<ConversationStateT>(value)); return *this;}
81
83
86 inline const Aws::String& GetNextMessageToken() const { return m_nextMessageToken; }
87 template<typename NextMessageTokenT = Aws::String>
88 void SetNextMessageToken(NextMessageTokenT&& value) { m_nextMessageTokenHasBeenSet = true; m_nextMessageToken = std::forward<NextMessageTokenT>(value); }
89 template<typename NextMessageTokenT = Aws::String>
90 GetNextMessageResult& WithNextMessageToken(NextMessageTokenT&& value) { SetNextMessageToken(std::forward<NextMessageTokenT>(value)); return *this;}
92
94
97 inline const Aws::Vector<RuntimeSessionData>& GetConversationSessionData() const { return m_conversationSessionData; }
98 template<typename ConversationSessionDataT = Aws::Vector<RuntimeSessionData>>
99 void SetConversationSessionData(ConversationSessionDataT&& value) { m_conversationSessionDataHasBeenSet = true; m_conversationSessionData = std::forward<ConversationSessionDataT>(value); }
100 template<typename ConversationSessionDataT = Aws::Vector<RuntimeSessionData>>
101 GetNextMessageResult& WithConversationSessionData(ConversationSessionDataT&& value) { SetConversationSessionData(std::forward<ConversationSessionDataT>(value)); return *this;}
102 template<typename ConversationSessionDataT = RuntimeSessionData>
103 GetNextMessageResult& AddConversationSessionData(ConversationSessionDataT&& value) { m_conversationSessionDataHasBeenSet = true; m_conversationSessionData.emplace_back(std::forward<ConversationSessionDataT>(value)); return *this; }
105
107
108 inline const Aws::String& GetRequestId() const { return m_requestId; }
109 template<typename RequestIdT = Aws::String>
110 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
111 template<typename RequestIdT = Aws::String>
112 GetNextMessageResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
114 private:
115
117 bool m_typeHasBeenSet = false;
118
119 MessageOutput m_response;
120 bool m_responseHasBeenSet = false;
121
122 Aws::String m_requestMessageId;
123 bool m_requestMessageIdHasBeenSet = false;
124
125 ConversationState m_conversationState;
126 bool m_conversationStateHasBeenSet = false;
127
128 Aws::String m_nextMessageToken;
129 bool m_nextMessageTokenHasBeenSet = false;
130
131 Aws::Vector<RuntimeSessionData> m_conversationSessionData;
132 bool m_conversationSessionDataHasBeenSet = false;
133
134 Aws::String m_requestId;
135 bool m_requestIdHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace QConnect
140} // namespace Aws
GetNextMessageResult & WithRequestMessageId(RequestMessageIdT &&value)
const Aws::Vector< RuntimeSessionData > & GetConversationSessionData() const
AWS_QCONNECT_API GetNextMessageResult()=default
AWS_QCONNECT_API GetNextMessageResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetNextMessageResult & WithType(MessageType value)
const ConversationState & GetConversationState() const
GetNextMessageResult & WithNextMessageToken(NextMessageTokenT &&value)
GetNextMessageResult & WithConversationState(ConversationStateT &&value)
void SetNextMessageToken(NextMessageTokenT &&value)
void SetRequestMessageId(RequestMessageIdT &&value)
AWS_QCONNECT_API GetNextMessageResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetConversationSessionData(ConversationSessionDataT &&value)
void SetConversationState(ConversationStateT &&value)
GetNextMessageResult & WithConversationSessionData(ConversationSessionDataT &&value)
GetNextMessageResult & WithResponse(ResponseT &&value)
GetNextMessageResult & WithRequestId(RequestIdT &&value)
GetNextMessageResult & AddConversationSessionData(ConversationSessionDataT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue