/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace LexRuntimeV2 { namespace Model { class PutSessionResult { public: AWS_LEXRUNTIMEV2_API PutSessionResult(); //We have to define these because Microsoft doesn't auto generate them AWS_LEXRUNTIMEV2_API PutSessionResult(PutSessionResult&&); AWS_LEXRUNTIMEV2_API PutSessionResult& operator=(PutSessionResult&&); //we delete these because Microsoft doesn't handle move generation correctly //and we therefore don't trust them to get it right here either. PutSessionResult(const PutSessionResult&) = delete; PutSessionResult& operator=(const PutSessionResult&) = delete; AWS_LEXRUNTIMEV2_API PutSessionResult(Aws::AmazonWebServiceResult&& result); AWS_LEXRUNTIMEV2_API PutSessionResult& operator=(Aws::AmazonWebServiceResult&& result); /** *

The type of response. Same as the type specified in the * responseContentType field in the request.

*/ inline const Aws::String& GetContentType() const{ return m_contentType; } /** *

The type of response. Same as the type specified in the * responseContentType field in the request.

*/ inline void SetContentType(const Aws::String& value) { m_contentType = value; } /** *

The type of response. Same as the type specified in the * responseContentType field in the request.

*/ inline void SetContentType(Aws::String&& value) { m_contentType = std::move(value); } /** *

The type of response. Same as the type specified in the * responseContentType field in the request.

*/ inline void SetContentType(const char* value) { m_contentType.assign(value); } /** *

The type of response. Same as the type specified in the * responseContentType field in the request.

*/ inline PutSessionResult& WithContentType(const Aws::String& value) { SetContentType(value); return *this;} /** *

The type of response. Same as the type specified in the * responseContentType field in the request.

*/ inline PutSessionResult& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;} /** *

The type of response. Same as the type specified in the * responseContentType field in the request.

*/ inline PutSessionResult& WithContentType(const char* value) { SetContentType(value); return *this;} /** *

A list of messages that were last sent to the user. The messages are ordered * based on how you return the messages from you Lambda function or the order that * the messages are defined in the bot.

*/ inline const Aws::String& GetMessages() const{ return m_messages; } /** *

A list of messages that were last sent to the user. The messages are ordered * based on how you return the messages from you Lambda function or the order that * the messages are defined in the bot.

*/ inline void SetMessages(const Aws::String& value) { m_messages = value; } /** *

A list of messages that were last sent to the user. The messages are ordered * based on how you return the messages from you Lambda function or the order that * the messages are defined in the bot.

*/ inline void SetMessages(Aws::String&& value) { m_messages = std::move(value); } /** *

A list of messages that were last sent to the user. The messages are ordered * based on how you return the messages from you Lambda function or the order that * the messages are defined in the bot.

*/ inline void SetMessages(const char* value) { m_messages.assign(value); } /** *

A list of messages that were last sent to the user. The messages are ordered * based on how you return the messages from you Lambda function or the order that * the messages are defined in the bot.

*/ inline PutSessionResult& WithMessages(const Aws::String& value) { SetMessages(value); return *this;} /** *

A list of messages that were last sent to the user. The messages are ordered * based on how you return the messages from you Lambda function or the order that * the messages are defined in the bot.

*/ inline PutSessionResult& WithMessages(Aws::String&& value) { SetMessages(std::move(value)); return *this;} /** *

A list of messages that were last sent to the user. The messages are ordered * based on how you return the messages from you Lambda function or the order that * the messages are defined in the bot.

*/ inline PutSessionResult& WithMessages(const char* value) { SetMessages(value); return *this;} /** *

Represents the current state of the dialog between the user and the bot.

*

Use this to determine the progress of the conversation and what the next * action may be.

*/ inline const Aws::String& GetSessionState() const{ return m_sessionState; } /** *

Represents the current state of the dialog between the user and the bot.

*

Use this to determine the progress of the conversation and what the next * action may be.

*/ inline void SetSessionState(const Aws::String& value) { m_sessionState = value; } /** *

Represents the current state of the dialog between the user and the bot.

*

Use this to determine the progress of the conversation and what the next * action may be.

*/ inline void SetSessionState(Aws::String&& value) { m_sessionState = std::move(value); } /** *

Represents the current state of the dialog between the user and the bot.

*

Use this to determine the progress of the conversation and what the next * action may be.

*/ inline void SetSessionState(const char* value) { m_sessionState.assign(value); } /** *

Represents the current state of the dialog between the user and the bot.

*

Use this to determine the progress of the conversation and what the next * action may be.

*/ inline PutSessionResult& WithSessionState(const Aws::String& value) { SetSessionState(value); return *this;} /** *

Represents the current state of the dialog between the user and the bot.

*

Use this to determine the progress of the conversation and what the next * action may be.

*/ inline PutSessionResult& WithSessionState(Aws::String&& value) { SetSessionState(std::move(value)); return *this;} /** *

Represents the current state of the dialog between the user and the bot.

*

Use this to determine the progress of the conversation and what the next * action may be.

*/ inline PutSessionResult& WithSessionState(const char* value) { SetSessionState(value); return *this;} /** *

Request-specific information passed between the client application and Amazon * Lex V2. These are the same as the requestAttribute parameter in the * call to the PutSession operation.

*/ inline const Aws::String& GetRequestAttributes() const{ return m_requestAttributes; } /** *

Request-specific information passed between the client application and Amazon * Lex V2. These are the same as the requestAttribute parameter in the * call to the PutSession operation.

*/ inline void SetRequestAttributes(const Aws::String& value) { m_requestAttributes = value; } /** *

Request-specific information passed between the client application and Amazon * Lex V2. These are the same as the requestAttribute parameter in the * call to the PutSession operation.

*/ inline void SetRequestAttributes(Aws::String&& value) { m_requestAttributes = std::move(value); } /** *

Request-specific information passed between the client application and Amazon * Lex V2. These are the same as the requestAttribute parameter in the * call to the PutSession operation.

*/ inline void SetRequestAttributes(const char* value) { m_requestAttributes.assign(value); } /** *

Request-specific information passed between the client application and Amazon * Lex V2. These are the same as the requestAttribute parameter in the * call to the PutSession operation.

*/ inline PutSessionResult& WithRequestAttributes(const Aws::String& value) { SetRequestAttributes(value); return *this;} /** *

Request-specific information passed between the client application and Amazon * Lex V2. These are the same as the requestAttribute parameter in the * call to the PutSession operation.

*/ inline PutSessionResult& WithRequestAttributes(Aws::String&& value) { SetRequestAttributes(std::move(value)); return *this;} /** *

Request-specific information passed between the client application and Amazon * Lex V2. These are the same as the requestAttribute parameter in the * call to the PutSession operation.

*/ inline PutSessionResult& WithRequestAttributes(const char* value) { SetRequestAttributes(value); return *this;} /** *

The identifier of the session that received the data.

*/ inline const Aws::String& GetSessionId() const{ return m_sessionId; } /** *

The identifier of the session that received the data.

*/ inline void SetSessionId(const Aws::String& value) { m_sessionId = value; } /** *

The identifier of the session that received the data.

*/ inline void SetSessionId(Aws::String&& value) { m_sessionId = std::move(value); } /** *

The identifier of the session that received the data.

*/ inline void SetSessionId(const char* value) { m_sessionId.assign(value); } /** *

The identifier of the session that received the data.

*/ inline PutSessionResult& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;} /** *

The identifier of the session that received the data.

*/ inline PutSessionResult& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;} /** *

The identifier of the session that received the data.

*/ inline PutSessionResult& WithSessionId(const char* value) { SetSessionId(value); return *this;} /** *

If the requested content type was audio, the audio version of the message to * convey to the user.

*/ inline Aws::IOStream& GetAudioStream() const { return m_audioStream.GetUnderlyingStream(); } /** *

If the requested content type was audio, the audio version of the message to * convey to the user.

*/ inline void ReplaceBody(Aws::IOStream* body) { m_audioStream = Aws::Utils::Stream::ResponseStream(body); } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline PutSessionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline PutSessionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline PutSessionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_contentType; Aws::String m_messages; Aws::String m_sessionState; Aws::String m_requestAttributes; Aws::String m_sessionId; Aws::Utils::Stream::ResponseStream m_audioStream; Aws::String m_requestId; }; } // namespace Model } // namespace LexRuntimeV2 } // namespace Aws