/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.lexruntime.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; import com.amazonaws.auth.SignerTypeAware; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class PostContentRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable, SignerTypeAware { /** *

* Name of the Amazon Lex bot. *

*/ private String botName; /** *

* Alias of the Amazon Lex bot. *

*/ private String botAlias; /** *

* 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. *

* */ private String userId; /** *

* 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. *

*/ private String sessionAttributes; /** *

* 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. *

*/ private String requestAttributes; /** *

* You pass this value as the Content-Type HTTP header. *

*

* Indicates the audio format or text. The header value must start with one of the following prefixes: *

* */ private String contentType; /** *

* 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. *

* */ private String accept; /** *

* User input in PCM or Opus audio format or text format as described in the Content-Type HTTP header. *

*

* You can stream audio data to Amazon Lex or you can create a local buffer that captures all of the audio data * before sending. In general, you get better performance if you stream audio data rather than buffering the data * locally. *

*/ private java.io.InputStream inputStream; /** *

* 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. *

*/ private String activeContexts; /** *

* Name of the Amazon Lex bot. *

* * @param botName * Name of the Amazon Lex bot. */ public void setBotName(String botName) { this.botName = botName; } /** *

* Name of the Amazon Lex bot. *

* * @return Name of the Amazon Lex bot. */ public String getBotName() { return this.botName; } /** *

* Name of the Amazon Lex bot. *

* * @param botName * Name of the Amazon Lex bot. * @return Returns a reference to this object so that method calls can be chained together. */ public PostContentRequest withBotName(String botName) { setBotName(botName); return this; } /** *

* Alias of the Amazon Lex bot. *

* * @param botAlias * Alias of the Amazon Lex bot. */ public void setBotAlias(String botAlias) { this.botAlias = botAlias; } /** *

* Alias of the Amazon Lex bot. *

* * @return Alias of the Amazon Lex bot. */ public String getBotAlias() { return this.botAlias; } /** *

* Alias of the Amazon Lex bot. *

* * @param botAlias * Alias of the Amazon Lex bot. * @return Returns a reference to this object so that method calls can be chained together. */ public PostContentRequest withBotAlias(String botAlias) { setBotAlias(botAlias); 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. *

* * * @param 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. *

*