/** * 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 { namespace LexRuntimeService { namespace Model { /** */ class PostContentRequest : public StreamingLexRuntimeServiceRequest { public: AWS_LEXRUNTIMESERVICE_API PostContentRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "PostContent"; } AWS_LEXRUNTIMESERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; AWS_LEXRUNTIMESERVICE_API bool SignBody() const override { return false; } /** *

Name of the Amazon Lex bot.

*/ inline const Aws::String& GetBotName() const{ return m_botName; } /** *

Name of the Amazon Lex bot.

*/ inline bool BotNameHasBeenSet() const { return m_botNameHasBeenSet; } /** *

Name of the Amazon Lex bot.

*/ inline void SetBotName(const Aws::String& value) { m_botNameHasBeenSet = true; m_botName = value; } /** *

Name of the Amazon Lex bot.

*/ inline void SetBotName(Aws::String&& value) { m_botNameHasBeenSet = true; m_botName = std::move(value); } /** *

Name of the Amazon Lex bot.

*/ inline void SetBotName(const char* value) { m_botNameHasBeenSet = true; m_botName.assign(value); } /** *

Name of the Amazon Lex bot.

*/ inline PostContentRequest& WithBotName(const Aws::String& value) { SetBotName(value); return *this;} /** *

Name of the Amazon Lex bot.

*/ inline PostContentRequest& WithBotName(Aws::String&& value) { SetBotName(std::move(value)); return *this;} /** *

Name of the Amazon Lex bot.

*/ inline PostContentRequest& WithBotName(const char* value) { SetBotName(value); return *this;} /** *

Alias of the Amazon Lex bot.

*/ inline const Aws::String& GetBotAlias() const{ return m_botAlias; } /** *

Alias of the Amazon Lex bot.

*/ inline bool BotAliasHasBeenSet() const { return m_botAliasHasBeenSet; } /** *

Alias of the Amazon Lex bot.

*/ inline void SetBotAlias(const Aws::String& value) { m_botAliasHasBeenSet = true; m_botAlias = value; } /** *

Alias of the Amazon Lex bot.

*/ inline void SetBotAlias(Aws::String&& value) { m_botAliasHasBeenSet = true; m_botAlias = std::move(value); } /** *

Alias of the Amazon Lex bot.

*/ inline void SetBotAlias(const char* value) { m_botAliasHasBeenSet = true; m_botAlias.assign(value); } /** *

Alias of the Amazon Lex bot.

*/ inline PostContentRequest& WithBotAlias(const Aws::String& value) { SetBotAlias(value); return *this;} /** *

Alias of the Amazon Lex bot.

*/ inline PostContentRequest& WithBotAlias(Aws::String&& value) { SetBotAlias(std::move(value)); return *this;} /** *

Alias of the Amazon Lex bot.

*/ inline PostContentRequest& WithBotAlias(const char* value) { SetBotAlias(value); return *this;} /** *

The ID of the client application user. Amazon Lex uses this to identify a * user's conversation with your bot. At runtime, each request must contain the * userID field.

To decide the user ID to use for your * application, consider the following factors.

  • The * userID field must not contain any personally identifiable * information of the user, for example, name, personal identification numbers, or * other end user personal information.

  • If you want a user to * start a conversation on one device and continue on another device, use a * user-specific identifier.

  • If you want the same user to be able * to have two independent conversations on two different devices, choose a * device-specific identifier.

  • A user can't have two independent * conversations with two different versions of the same bot. For example, a user * can't have a conversation with the PROD and BETA versions of the same bot. If * you anticipate that a user will need to have conversation with two different * versions, for example, while testing, include the bot alias in the user ID to * separate the two conversations.

*/ inline const Aws::String& GetUserId() const{ return m_userId; } /** *

The ID of the client application user. Amazon Lex uses this to identify a * user's conversation with your bot. At runtime, each request must contain the * userID field.

To decide the user ID to use for your * application, consider the following factors.

  • The * userID field must not contain any personally identifiable * information of the user, for example, name, personal identification numbers, or * other end user personal information.

  • If you want a user to * start a conversation on one device and continue on another device, use a * user-specific identifier.

  • If you want the same user to be able * to have two independent conversations on two different devices, choose a * device-specific identifier.

  • A user can't have two independent * conversations with two different versions of the same bot. For example, a user * can't have a conversation with the PROD and BETA versions of the same bot. If * you anticipate that a user will need to have conversation with two different * versions, for example, while testing, include the bot alias in the user ID to * separate the two conversations.

*/ inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; } /** *

The ID of the client application user. Amazon Lex uses this to identify a * user's conversation with your bot. At runtime, each request must contain the * userID field.

To decide the user ID to use for your * application, consider the following factors.

  • The * userID field must not contain any personally identifiable * information of the user, for example, name, personal identification numbers, or * other end user personal information.

  • If you want a user to * start a conversation on one device and continue on another device, use a * user-specific identifier.

  • If you want the same user to be able * to have two independent conversations on two different devices, choose a * device-specific identifier.

  • A user can't have two independent * conversations with two different versions of the same bot. For example, a user * can't have a conversation with the PROD and BETA versions of the same bot. If * you anticipate that a user will need to have conversation with two different * versions, for example, while testing, include the bot alias in the user ID to * separate the two conversations.

*/ inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; } /** *

The ID of the client application user. Amazon Lex uses this to identify a * user's conversation with your bot. At runtime, each request must contain the * userID field.

To decide the user ID to use for your * application, consider the following factors.

  • The * userID field must not contain any personally identifiable * information of the user, for example, name, personal identification numbers, or * other end user personal information.

  • If you want a user to * start a conversation on one device and continue on another device, use a * user-specific identifier.

  • If you want the same user to be able * to have two independent conversations on two different devices, choose a * device-specific identifier.

  • A user can't have two independent * conversations with two different versions of the same bot. For example, a user * can't have a conversation with the PROD and BETA versions of the same bot. If * you anticipate that a user will need to have conversation with two different * versions, for example, while testing, include the bot alias in the user ID to * separate the two conversations.

*/ inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); } /** *

The ID of the client application user. Amazon Lex uses this to identify a * user's conversation with your bot. At runtime, each request must contain the * userID field.

To decide the user ID to use for your * application, consider the following factors.

  • The * userID field must not contain any personally identifiable * information of the user, for example, name, personal identification numbers, or * other end user personal information.

  • If you want a user to * start a conversation on one device and continue on another device, use a * user-specific identifier.

  • If you want the same user to be able * to have two independent conversations on two different devices, choose a * device-specific identifier.

  • A user can't have two independent * conversations with two different versions of the same bot. For example, a user * can't have a conversation with the PROD and BETA versions of the same bot. If * you anticipate that a user will need to have conversation with two different * versions, for example, while testing, include the bot alias in the user ID to * separate the two conversations.

*/ inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); } /** *

The ID of the client application user. Amazon Lex uses this to identify a * user's conversation with your bot. At runtime, each request must contain the * userID field.

To decide the user ID to use for your * application, consider the following factors.

  • The * userID field must not contain any personally identifiable * information of the user, for example, name, personal identification numbers, or * other end user personal information.

  • If you want a user to * start a conversation on one device and continue on another device, use a * user-specific identifier.

  • If you want the same user to be able * to have two independent conversations on two different devices, choose a * device-specific identifier.

  • A user can't have two independent * conversations with two different versions of the same bot. For example, a user * can't have a conversation with the PROD and BETA versions of the same bot. If * you anticipate that a user will need to have conversation with two different * versions, for example, while testing, include the bot alias in the user ID to * separate the two conversations.

*/ inline PostContentRequest& WithUserId(const Aws::String& value) { SetUserId(value); return *this;} /** *

The ID of the client application user. Amazon Lex uses this to identify a * user's conversation with your bot. At runtime, each request must contain the * userID field.

To decide the user ID to use for your * application, consider the following factors.

  • The * userID field must not contain any personally identifiable * information of the user, for example, name, personal identification numbers, or * other end user personal information.

  • If you want a user to * start a conversation on one device and continue on another device, use a * user-specific identifier.

  • If you want the same user to be able * to have two independent conversations on two different devices, choose a * device-specific identifier.

  • A user can't have two independent * conversations with two different versions of the same bot. For example, a user * can't have a conversation with the PROD and BETA versions of the same bot. If * you anticipate that a user will need to have conversation with two different * versions, for example, while testing, include the bot alias in the user ID to * separate the two conversations.

*/ inline PostContentRequest& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;} /** *

The ID of the client application user. Amazon Lex uses this to identify a * user's conversation with your bot. At runtime, each request must contain the * userID field.

To decide the user ID to use for your * application, consider the following factors.

  • The * userID field must not contain any personally identifiable * information of the user, for example, name, personal identification numbers, or * other end user personal information.

  • If you want a user to * start a conversation on one device and continue on another device, use a * user-specific identifier.

  • If you want the same user to be able * to have two independent conversations on two different devices, choose a * device-specific identifier.

  • A user can't have two independent * conversations with two different versions of the same bot. For example, a user * can't have a conversation with the PROD and BETA versions of the same bot. If * you anticipate that a user will need to have conversation with two different * versions, for example, while testing, include the bot alias in the user ID to * separate the two conversations.

*/ inline PostContentRequest& WithUserId(const char* value) { SetUserId(value); return *this;} /** *

You pass this value as the x-amz-lex-session-attributes HTTP * header.

Application-specific information passed between Amazon Lex and a * client application. The value must be a JSON serialized and base64 encoded map * with string keys and values. The total size of the * sessionAttributes and requestAttributes headers is * limited to 12 KB.

For more information, see Setting * Session Attributes.

*/ inline const Aws::String& GetSessionAttributes() const{ return m_sessionAttributes; } /** *

You pass this value as the x-amz-lex-session-attributes HTTP * header.

Application-specific information passed between Amazon Lex and a * client application. The value must be a JSON serialized and base64 encoded map * with string keys and values. The total size of the * sessionAttributes and requestAttributes headers is * limited to 12 KB.

For more information, see Setting * Session Attributes.

*/ inline bool SessionAttributesHasBeenSet() const { return m_sessionAttributesHasBeenSet; } /** *

You pass this value as the x-amz-lex-session-attributes HTTP * header.

Application-specific information passed between Amazon Lex and a * client application. The value must be a JSON serialized and base64 encoded map * with string keys and values. The total size of the * sessionAttributes and requestAttributes headers is * limited to 12 KB.

For more information, see Setting * Session Attributes.

*/ inline void SetSessionAttributes(const Aws::String& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes = value; } /** *

You pass this value as the x-amz-lex-session-attributes HTTP * header.

Application-specific information passed between Amazon Lex and a * client application. The value must be a JSON serialized and base64 encoded map * with string keys and values. The total size of the * sessionAttributes and requestAttributes headers is * limited to 12 KB.

For more information, see Setting * Session Attributes.

*/ inline void SetSessionAttributes(Aws::String&& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes = std::move(value); } /** *

You pass this value as the x-amz-lex-session-attributes HTTP * header.

Application-specific information passed between Amazon Lex and a * client application. The value must be a JSON serialized and base64 encoded map * with string keys and values. The total size of the * sessionAttributes and requestAttributes headers is * limited to 12 KB.

For more information, see Setting * Session Attributes.

*/ inline void SetSessionAttributes(const char* value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.assign(value); } /** *

You pass this value as the x-amz-lex-session-attributes HTTP * header.

Application-specific information passed between Amazon Lex and a * client application. The value must be a JSON serialized and base64 encoded map * with string keys and values. The total size of the * sessionAttributes and requestAttributes headers is * limited to 12 KB.

For more information, see Setting * Session Attributes.

*/ inline PostContentRequest& WithSessionAttributes(const Aws::String& value) { SetSessionAttributes(value); return *this;} /** *

You pass this value as the x-amz-lex-session-attributes HTTP * header.

Application-specific information passed between Amazon Lex and a * client application. The value must be a JSON serialized and base64 encoded map * with string keys and values. The total size of the * sessionAttributes and requestAttributes headers is * limited to 12 KB.

For more information, see Setting * Session Attributes.

*/ inline PostContentRequest& WithSessionAttributes(Aws::String&& value) { SetSessionAttributes(std::move(value)); return *this;} /** *

You pass this value as the x-amz-lex-session-attributes HTTP * header.

Application-specific information passed between Amazon Lex and a * client application. The value must be a JSON serialized and base64 encoded map * with string keys and values. The total size of the * sessionAttributes and requestAttributes headers is * limited to 12 KB.

For more information, see Setting * Session Attributes.

*/ inline PostContentRequest& WithSessionAttributes(const char* value) { SetSessionAttributes(value); return *this;} /** *

You pass this value as the x-amz-lex-request-attributes HTTP * header.

Request-specific information passed between Amazon Lex and a * client application. The value must be a JSON serialized and base64 encoded map * with string keys and values. The total size of the * requestAttributes and sessionAttributes headers is * limited to 12 KB.

The namespace x-amz-lex: is reserved for * special attributes. Don't create any request attributes with the prefix * x-amz-lex:.

For more information, see Setting * Request Attributes.

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

You pass this value as the x-amz-lex-request-attributes HTTP * header.

Request-specific information passed between Amazon Lex and a * client application. The value must be a JSON serialized and base64 encoded map * with string keys and values. The total size of the * requestAttributes and sessionAttributes headers is * limited to 12 KB.

The namespace x-amz-lex: is reserved for * special attributes. Don't create any request attributes with the prefix * x-amz-lex:.

For more information, see Setting * Request Attributes.

*/ inline bool RequestAttributesHasBeenSet() const { return m_requestAttributesHasBeenSet; } /** *

You pass this value as the x-amz-lex-request-attributes HTTP * header.

Request-specific information passed between Amazon Lex and a * client application. The value must be a JSON serialized and base64 encoded map * with string keys and values. The total size of the * requestAttributes and sessionAttributes headers is * limited to 12 KB.

The namespace x-amz-lex: is reserved for * special attributes. Don't create any request attributes with the prefix * x-amz-lex:.

For more information, see Setting * Request Attributes.

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

You pass this value as the x-amz-lex-request-attributes HTTP * header.

Request-specific information passed between Amazon Lex and a * client application. The value must be a JSON serialized and base64 encoded map * with string keys and values. The total size of the * requestAttributes and sessionAttributes headers is * limited to 12 KB.

The namespace x-amz-lex: is reserved for * special attributes. Don't create any request attributes with the prefix * x-amz-lex:.

For more information, see Setting * Request Attributes.

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

You pass this value as the x-amz-lex-request-attributes HTTP * header.

Request-specific information passed between Amazon Lex and a * client application. The value must be a JSON serialized and base64 encoded map * with string keys and values. The total size of the * requestAttributes and sessionAttributes headers is * limited to 12 KB.

The namespace x-amz-lex: is reserved for * special attributes. Don't create any request attributes with the prefix * x-amz-lex:.

For more information, see Setting * Request Attributes.

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

You pass this value as the x-amz-lex-request-attributes HTTP * header.

Request-specific information passed between Amazon Lex and a * client application. The value must be a JSON serialized and base64 encoded map * with string keys and values. The total size of the * requestAttributes and sessionAttributes headers is * limited to 12 KB.

The namespace x-amz-lex: is reserved for * special attributes. Don't create any request attributes with the prefix * x-amz-lex:.

For more information, see Setting * Request Attributes.

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

You pass this value as the x-amz-lex-request-attributes HTTP * header.

Request-specific information passed between Amazon Lex and a * client application. The value must be a JSON serialized and base64 encoded map * with string keys and values. The total size of the * requestAttributes and sessionAttributes headers is * limited to 12 KB.

The namespace x-amz-lex: is reserved for * special attributes. Don't create any request attributes with the prefix * x-amz-lex:.

For more information, see Setting * Request Attributes.

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

You pass this value as the x-amz-lex-request-attributes HTTP * header.

Request-specific information passed between Amazon Lex and a * client application. The value must be a JSON serialized and base64 encoded map * with string keys and values. The total size of the * requestAttributes and sessionAttributes headers is * limited to 12 KB.

The namespace x-amz-lex: is reserved for * special attributes. Don't create any request attributes with the prefix * x-amz-lex:.

For more information, see Setting * Request Attributes.

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

You pass this value as the Accept HTTP header.

The * message Amazon Lex returns in the response can be either text or speech based on * the Accept HTTP header value in the request.

  • If * the value is text/plain; charset=utf-8, Amazon Lex returns text in * the response.

  • If the value begins with audio/, * Amazon Lex returns speech in the response. Amazon Lex uses Amazon Polly to * generate the speech (using the configuration you specified in the * Accept header). For example, if you specify audio/mpeg * as the value, Amazon Lex returns speech in the MPEG format.

  • If * the value is audio/pcm, the speech returned is * audio/pcm in 16-bit, little endian format.

  • The * following are the accepted values:

    • audio/mpeg

    • *

      audio/ogg

    • audio/pcm

    • text/plain; * charset=utf-8

    • audio/ * (defaults to mpeg)

  • *
*/ inline const Aws::String& GetAccept() const{ return m_accept; } /** *

You pass this value as the Accept HTTP header.

The * message Amazon Lex returns in the response can be either text or speech based on * the Accept HTTP header value in the request.

  • If * the value is text/plain; charset=utf-8, Amazon Lex returns text in * the response.

  • If the value begins with audio/, * Amazon Lex returns speech in the response. Amazon Lex uses Amazon Polly to * generate the speech (using the configuration you specified in the * Accept header). For example, if you specify audio/mpeg * as the value, Amazon Lex returns speech in the MPEG format.

  • If * the value is audio/pcm, the speech returned is * audio/pcm in 16-bit, little endian format.

  • The * following are the accepted values:

    • audio/mpeg

    • *

      audio/ogg

    • audio/pcm

    • text/plain; * charset=utf-8

    • audio/ * (defaults to mpeg)

  • *
*/ inline bool AcceptHasBeenSet() const { return m_acceptHasBeenSet; } /** *

You pass this value as the Accept HTTP header.

The * message Amazon Lex returns in the response can be either text or speech based on * the Accept HTTP header value in the request.

  • If * the value is text/plain; charset=utf-8, Amazon Lex returns text in * the response.

  • If the value begins with audio/, * Amazon Lex returns speech in the response. Amazon Lex uses Amazon Polly to * generate the speech (using the configuration you specified in the * Accept header). For example, if you specify audio/mpeg * as the value, Amazon Lex returns speech in the MPEG format.

  • If * the value is audio/pcm, the speech returned is * audio/pcm in 16-bit, little endian format.

  • The * following are the accepted values:

    • audio/mpeg

    • *

      audio/ogg

    • audio/pcm

    • text/plain; * charset=utf-8

    • audio/ * (defaults to mpeg)

  • *
*/ inline void SetAccept(const Aws::String& value) { m_acceptHasBeenSet = true; m_accept = value; } /** *

You pass this value as the Accept HTTP header.

The * message Amazon Lex returns in the response can be either text or speech based on * the Accept HTTP header value in the request.

  • If * the value is text/plain; charset=utf-8, Amazon Lex returns text in * the response.

  • If the value begins with audio/, * Amazon Lex returns speech in the response. Amazon Lex uses Amazon Polly to * generate the speech (using the configuration you specified in the * Accept header). For example, if you specify audio/mpeg * as the value, Amazon Lex returns speech in the MPEG format.

  • If * the value is audio/pcm, the speech returned is * audio/pcm in 16-bit, little endian format.

  • The * following are the accepted values:

    • audio/mpeg

    • *

      audio/ogg

    • audio/pcm

    • text/plain; * charset=utf-8

    • audio/ * (defaults to mpeg)

  • *
*/ inline void SetAccept(Aws::String&& value) { m_acceptHasBeenSet = true; m_accept = std::move(value); } /** *

You pass this value as the Accept HTTP header.

The * message Amazon Lex returns in the response can be either text or speech based on * the Accept HTTP header value in the request.

  • If * the value is text/plain; charset=utf-8, Amazon Lex returns text in * the response.

  • If the value begins with audio/, * Amazon Lex returns speech in the response. Amazon Lex uses Amazon Polly to * generate the speech (using the configuration you specified in the * Accept header). For example, if you specify audio/mpeg * as the value, Amazon Lex returns speech in the MPEG format.

  • If * the value is audio/pcm, the speech returned is * audio/pcm in 16-bit, little endian format.

  • The * following are the accepted values:

    • audio/mpeg

    • *

      audio/ogg

    • audio/pcm

    • text/plain; * charset=utf-8

    • audio/ * (defaults to mpeg)

  • *
*/ inline void SetAccept(const char* value) { m_acceptHasBeenSet = true; m_accept.assign(value); } /** *

You pass this value as the Accept HTTP header.

The * message Amazon Lex returns in the response can be either text or speech based on * the Accept HTTP header value in the request.

  • If * the value is text/plain; charset=utf-8, Amazon Lex returns text in * the response.

  • If the value begins with audio/, * Amazon Lex returns speech in the response. Amazon Lex uses Amazon Polly to * generate the speech (using the configuration you specified in the * Accept header). For example, if you specify audio/mpeg * as the value, Amazon Lex returns speech in the MPEG format.

  • If * the value is audio/pcm, the speech returned is * audio/pcm in 16-bit, little endian format.

  • The * following are the accepted values:

    • audio/mpeg

    • *

      audio/ogg

    • audio/pcm

    • text/plain; * charset=utf-8

    • audio/ * (defaults to mpeg)

  • *
*/ inline PostContentRequest& WithAccept(const Aws::String& value) { SetAccept(value); return *this;} /** *

You pass this value as the Accept HTTP header.

The * message Amazon Lex returns in the response can be either text or speech based on * the Accept HTTP header value in the request.

  • If * the value is text/plain; charset=utf-8, Amazon Lex returns text in * the response.

  • If the value begins with audio/, * Amazon Lex returns speech in the response. Amazon Lex uses Amazon Polly to * generate the speech (using the configuration you specified in the * Accept header). For example, if you specify audio/mpeg * as the value, Amazon Lex returns speech in the MPEG format.

  • If * the value is audio/pcm, the speech returned is * audio/pcm in 16-bit, little endian format.

  • The * following are the accepted values:

    • audio/mpeg

    • *

      audio/ogg

    • audio/pcm

    • text/plain; * charset=utf-8

    • audio/ * (defaults to mpeg)

  • *
*/ inline PostContentRequest& WithAccept(Aws::String&& value) { SetAccept(std::move(value)); return *this;} /** *

You pass this value as the Accept HTTP header.

The * message Amazon Lex returns in the response can be either text or speech based on * the Accept HTTP header value in the request.

  • If * the value is text/plain; charset=utf-8, Amazon Lex returns text in * the response.

  • If the value begins with audio/, * Amazon Lex returns speech in the response. Amazon Lex uses Amazon Polly to * generate the speech (using the configuration you specified in the * Accept header). For example, if you specify audio/mpeg * as the value, Amazon Lex returns speech in the MPEG format.

  • If * the value is audio/pcm, the speech returned is * audio/pcm in 16-bit, little endian format.

  • The * following are the accepted values:

    • audio/mpeg

    • *

      audio/ogg

    • audio/pcm

    • text/plain; * charset=utf-8

    • audio/ * (defaults to mpeg)

  • *
*/ inline PostContentRequest& WithAccept(const char* value) { SetAccept(value); return *this;} /** *

A list of contexts active for the request. A context can be activated when a * previous intent is fulfilled, or by including the context in the request,

*

If you don't specify a list of contexts, Amazon Lex will use the current list * of contexts for the session. If you specify an empty list, all contexts for the * session are cleared.

*/ inline const Aws::String& GetActiveContexts() const{ return m_activeContexts; } /** *

A list of contexts active for the request. A context can be activated when a * previous intent is fulfilled, or by including the context in the request,

*

If you don't specify a list of contexts, Amazon Lex will use the current list * of contexts for the session. If you specify an empty list, all contexts for the * session are cleared.

*/ inline bool ActiveContextsHasBeenSet() const { return m_activeContextsHasBeenSet; } /** *

A list of contexts active for the request. A context can be activated when a * previous intent is fulfilled, or by including the context in the request,

*

If you don't specify a list of contexts, Amazon Lex will use the current list * of contexts for the session. If you specify an empty list, all contexts for the * session are cleared.

*/ inline void SetActiveContexts(const Aws::String& value) { m_activeContextsHasBeenSet = true; m_activeContexts = value; } /** *

A list of contexts active for the request. A context can be activated when a * previous intent is fulfilled, or by including the context in the request,

*

If you don't specify a list of contexts, Amazon Lex will use the current list * of contexts for the session. If you specify an empty list, all contexts for the * session are cleared.

*/ inline void SetActiveContexts(Aws::String&& value) { m_activeContextsHasBeenSet = true; m_activeContexts = std::move(value); } /** *

A list of contexts active for the request. A context can be activated when a * previous intent is fulfilled, or by including the context in the request,

*

If you don't specify a list of contexts, Amazon Lex will use the current list * of contexts for the session. If you specify an empty list, all contexts for the * session are cleared.

*/ inline void SetActiveContexts(const char* value) { m_activeContextsHasBeenSet = true; m_activeContexts.assign(value); } /** *

A list of contexts active for the request. A context can be activated when a * previous intent is fulfilled, or by including the context in the request,

*

If you don't specify a list of contexts, Amazon Lex will use the current list * of contexts for the session. If you specify an empty list, all contexts for the * session are cleared.

*/ inline PostContentRequest& WithActiveContexts(const Aws::String& value) { SetActiveContexts(value); return *this;} /** *

A list of contexts active for the request. A context can be activated when a * previous intent is fulfilled, or by including the context in the request,

*

If you don't specify a list of contexts, Amazon Lex will use the current list * of contexts for the session. If you specify an empty list, all contexts for the * session are cleared.

*/ inline PostContentRequest& WithActiveContexts(Aws::String&& value) { SetActiveContexts(std::move(value)); return *this;} /** *

A list of contexts active for the request. A context can be activated when a * previous intent is fulfilled, or by including the context in the request,

*

If you don't specify a list of contexts, Amazon Lex will use the current list * of contexts for the session. If you specify an empty list, all contexts for the * session are cleared.

*/ inline PostContentRequest& WithActiveContexts(const char* value) { SetActiveContexts(value); return *this;} private: Aws::String m_botName; bool m_botNameHasBeenSet = false; Aws::String m_botAlias; bool m_botAliasHasBeenSet = false; Aws::String m_userId; bool m_userIdHasBeenSet = false; Aws::String m_sessionAttributes; bool m_sessionAttributesHasBeenSet = false; Aws::String m_requestAttributes; bool m_requestAttributesHasBeenSet = false; Aws::String m_accept; bool m_acceptHasBeenSet = false; Aws::String m_activeContexts; bool m_activeContextsHasBeenSet = false; }; } // namespace Model } // namespace LexRuntimeService } // namespace Aws