AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ConfigurationEvent.h
1
6#pragma once
7#include <aws/lexv2-runtime/LexRuntimeV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lexv2-runtime/model/SessionState.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/lexv2-runtime/model/Message.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 LexRuntimeV2
26{
27namespace Model
28{
29
38 {
39 public:
40 AWS_LEXRUNTIMEV2_API ConfigurationEvent() = default;
41 AWS_LEXRUNTIMEV2_API ConfigurationEvent(Aws::Utils::Json::JsonView jsonValue);
43 AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
53 inline const Aws::Map<Aws::String, Aws::String>& GetRequestAttributes() const { return m_requestAttributes; }
54 inline bool RequestAttributesHasBeenSet() const { return m_requestAttributesHasBeenSet; }
55 template<typename RequestAttributesT = Aws::Map<Aws::String, Aws::String>>
56 void SetRequestAttributes(RequestAttributesT&& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes = std::forward<RequestAttributesT>(value); }
57 template<typename RequestAttributesT = Aws::Map<Aws::String, Aws::String>>
58 ConfigurationEvent& WithRequestAttributes(RequestAttributesT&& value) { SetRequestAttributes(std::forward<RequestAttributesT>(value)); return *this;}
59 template<typename RequestAttributesKeyT = Aws::String, typename RequestAttributesValueT = Aws::String>
60 ConfigurationEvent& AddRequestAttributes(RequestAttributesKeyT&& key, RequestAttributesValueT&& value) {
61 m_requestAttributesHasBeenSet = true; m_requestAttributes.emplace(std::forward<RequestAttributesKeyT>(key), std::forward<RequestAttributesValueT>(value)); return *this;
62 }
64
66
81 inline const Aws::String& GetResponseContentType() const { return m_responseContentType; }
82 inline bool ResponseContentTypeHasBeenSet() const { return m_responseContentTypeHasBeenSet; }
83 template<typename ResponseContentTypeT = Aws::String>
84 void SetResponseContentType(ResponseContentTypeT&& value) { m_responseContentTypeHasBeenSet = true; m_responseContentType = std::forward<ResponseContentTypeT>(value); }
85 template<typename ResponseContentTypeT = Aws::String>
86 ConfigurationEvent& WithResponseContentType(ResponseContentTypeT&& value) { SetResponseContentType(std::forward<ResponseContentTypeT>(value)); return *this;}
88
90
91 inline const SessionState& GetSessionState() const { return m_sessionState; }
92 inline bool SessionStateHasBeenSet() const { return m_sessionStateHasBeenSet; }
93 template<typename SessionStateT = SessionState>
94 void SetSessionState(SessionStateT&& value) { m_sessionStateHasBeenSet = true; m_sessionState = std::forward<SessionStateT>(value); }
95 template<typename SessionStateT = SessionState>
96 ConfigurationEvent& WithSessionState(SessionStateT&& value) { SetSessionState(std::forward<SessionStateT>(value)); return *this;}
98
100
108 inline const Aws::Vector<Message>& GetWelcomeMessages() const { return m_welcomeMessages; }
109 inline bool WelcomeMessagesHasBeenSet() const { return m_welcomeMessagesHasBeenSet; }
110 template<typename WelcomeMessagesT = Aws::Vector<Message>>
111 void SetWelcomeMessages(WelcomeMessagesT&& value) { m_welcomeMessagesHasBeenSet = true; m_welcomeMessages = std::forward<WelcomeMessagesT>(value); }
112 template<typename WelcomeMessagesT = Aws::Vector<Message>>
113 ConfigurationEvent& WithWelcomeMessages(WelcomeMessagesT&& value) { SetWelcomeMessages(std::forward<WelcomeMessagesT>(value)); return *this;}
114 template<typename WelcomeMessagesT = Message>
115 ConfigurationEvent& AddWelcomeMessages(WelcomeMessagesT&& value) { m_welcomeMessagesHasBeenSet = true; m_welcomeMessages.emplace_back(std::forward<WelcomeMessagesT>(value)); return *this; }
117
119
127 inline bool GetDisablePlayback() const { return m_disablePlayback; }
128 inline bool DisablePlaybackHasBeenSet() const { return m_disablePlaybackHasBeenSet; }
129 inline void SetDisablePlayback(bool value) { m_disablePlaybackHasBeenSet = true; m_disablePlayback = value; }
130 inline ConfigurationEvent& WithDisablePlayback(bool value) { SetDisablePlayback(value); return *this;}
132
134
138 inline const Aws::String& GetEventId() const { return m_eventId; }
139 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
140 template<typename EventIdT = Aws::String>
141 void SetEventId(EventIdT&& value) { m_eventIdHasBeenSet = true; m_eventId = std::forward<EventIdT>(value); }
142 template<typename EventIdT = Aws::String>
143 ConfigurationEvent& WithEventId(EventIdT&& value) { SetEventId(std::forward<EventIdT>(value)); return *this;}
145
147
151 inline long long GetClientTimestampMillis() const { return m_clientTimestampMillis; }
152 inline bool ClientTimestampMillisHasBeenSet() const { return m_clientTimestampMillisHasBeenSet; }
153 inline void SetClientTimestampMillis(long long value) { m_clientTimestampMillisHasBeenSet = true; m_clientTimestampMillis = value; }
154 inline ConfigurationEvent& WithClientTimestampMillis(long long value) { SetClientTimestampMillis(value); return *this;}
156 private:
157
158 Aws::Map<Aws::String, Aws::String> m_requestAttributes;
159 bool m_requestAttributesHasBeenSet = false;
160
161 Aws::String m_responseContentType;
162 bool m_responseContentTypeHasBeenSet = false;
163
164 SessionState m_sessionState;
165 bool m_sessionStateHasBeenSet = false;
166
167 Aws::Vector<Message> m_welcomeMessages;
168 bool m_welcomeMessagesHasBeenSet = false;
169
170 bool m_disablePlayback{false};
171 bool m_disablePlaybackHasBeenSet = false;
172
173 Aws::String m_eventId;
174 bool m_eventIdHasBeenSet = false;
175
176 long long m_clientTimestampMillis{0};
177 bool m_clientTimestampMillisHasBeenSet = false;
178 };
179
180} // namespace Model
181} // namespace LexRuntimeV2
182} // namespace Aws
ConfigurationEvent & WithWelcomeMessages(WelcomeMessagesT &&value)
ConfigurationEvent & AddWelcomeMessages(WelcomeMessagesT &&value)
ConfigurationEvent & WithClientTimestampMillis(long long value)
void SetRequestAttributes(RequestAttributesT &&value)
ConfigurationEvent & WithRequestAttributes(RequestAttributesT &&value)
const Aws::Vector< Message > & GetWelcomeMessages() const
const Aws::Map< Aws::String, Aws::String > & GetRequestAttributes() const
ConfigurationEvent & WithResponseContentType(ResponseContentTypeT &&value)
const Aws::String & GetResponseContentType() const
AWS_LEXRUNTIMEV2_API ConfigurationEvent(Aws::Utils::Json::JsonView jsonValue)
ConfigurationEvent & WithSessionState(SessionStateT &&value)
ConfigurationEvent & WithDisablePlayback(bool value)
void SetResponseContentType(ResponseContentTypeT &&value)
AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LEXRUNTIMEV2_API ConfigurationEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
ConfigurationEvent & WithEventId(EventIdT &&value)
AWS_LEXRUNTIMEV2_API ConfigurationEvent()=default
ConfigurationEvent & AddRequestAttributes(RequestAttributesKeyT &&key, RequestAttributesValueT &&value)
void SetWelcomeMessages(WelcomeMessagesT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue