/* * Copyright 2010-2021 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.lexrts.model; import java.io.Serializable; import com.amazonaws.AmazonWebServiceRequest; /** *
* Returns session information for a specified bot, alias, and user ID. *
*/ public class GetSessionRequest extends AmazonWebServiceRequest implements Serializable { /** ** The name of the bot that contains the session data. *
*/ private String botName; /** ** The alias in use for the bot that contains the session data. *
*/ private String botAlias; /** ** The ID of the client application user. Amazon Lex uses this to identify a * user's conversation with your bot. *
*
* Constraints:
* Length: 2 - 100
* Pattern: [0-9a-zA-Z._:-]+
*/
private String userId;
/**
*
* A string used to filter the intents returned in the
* recentIntentSummaryView
structure.
*
* When you specify a filter, only intents with their
* checkpointLabel
field set to that string are returned.
*
* Constraints:
* Length: 1 - 255
* Pattern: [a-zA-Z0-9-]+
*/
private String checkpointLabelFilter;
/**
*
* The name of the bot that contains the session data. *
* * @return* The name of the bot that contains the session data. *
*/ public String getBotName() { return botName; } /** ** The name of the bot that contains the session data. *
* * @param botName* The name of the bot that contains the session data. *
*/ public void setBotName(String botName) { this.botName = botName; } /** ** The name of the bot that contains the session data. *
** Returns a reference to this object so that method calls can be chained * together. * * @param botName
* The name of the bot that contains the session data. *
* @return A reference to this updated object so that method calls can be * chained together. */ public GetSessionRequest withBotName(String botName) { this.botName = botName; return this; } /** ** The alias in use for the bot that contains the session data. *
* * @return* The alias in use for the bot that contains the session data. *
*/ public String getBotAlias() { return botAlias; } /** ** The alias in use for the bot that contains the session data. *
* * @param botAlias* The alias in use for the bot that contains the session data. *
*/ public void setBotAlias(String botAlias) { this.botAlias = botAlias; } /** ** The alias in use for the bot that contains the session data. *
** Returns a reference to this object so that method calls can be chained * together. * * @param botAlias
* The alias in use for the bot that contains the session data. *
* @return A reference to this updated object so that method calls can be * chained together. */ public GetSessionRequest withBotAlias(String botAlias) { this.botAlias = botAlias; return this; } /** ** The ID of the client application user. Amazon Lex uses this to identify a * user's conversation with your bot. *
*
* Constraints:
* Length: 2 - 100
* Pattern: [0-9a-zA-Z._:-]+
*
* @return
* The ID of the client application user. Amazon Lex uses this to * identify a user's conversation with your bot. *
*/ public String getUserId() { return userId; } /** ** The ID of the client application user. Amazon Lex uses this to identify a * user's conversation with your bot. *
*
* Constraints:
* Length: 2 - 100
* Pattern: [0-9a-zA-Z._:-]+
*
* @param userId
* The ID of the client application user. Amazon Lex uses this to * identify a user's conversation with your bot. *
*/ public void setUserId(String userId) { this.userId = userId; } /** ** The ID of the client application user. Amazon Lex uses this to identify a * user's conversation with your bot. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 2 - 100
* Pattern: [0-9a-zA-Z._:-]+
*
* @param userId
* The ID of the client application user. Amazon Lex uses this to * identify a user's conversation with your bot. *
* @return A reference to this updated object so that method calls can be * chained together. */ public GetSessionRequest withUserId(String userId) { this.userId = userId; return this; } /** *
* A string used to filter the intents returned in the
* recentIntentSummaryView
structure.
*
* When you specify a filter, only intents with their
* checkpointLabel
field set to that string are returned.
*
* Constraints:
* Length: 1 - 255
* Pattern: [a-zA-Z0-9-]+
*
* @return
* A string used to filter the intents returned in the
* recentIntentSummaryView
structure.
*
* When you specify a filter, only intents with their
* checkpointLabel
field set to that string are
* returned.
*
* A string used to filter the intents returned in the
* recentIntentSummaryView
structure.
*
* When you specify a filter, only intents with their
* checkpointLabel
field set to that string are returned.
*
* Constraints:
* Length: 1 - 255
* Pattern: [a-zA-Z0-9-]+
*
* @param checkpointLabelFilter
* A string used to filter the intents returned in the
* recentIntentSummaryView
structure.
*
* When you specify a filter, only intents with their
* checkpointLabel
field set to that string are
* returned.
*
* A string used to filter the intents returned in the
* recentIntentSummaryView
structure.
*
* When you specify a filter, only intents with their
* checkpointLabel
field set to that string are returned.
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 1 - 255
* Pattern: [a-zA-Z0-9-]+
*
* @param checkpointLabelFilter
* A string used to filter the intents returned in the
* recentIntentSummaryView
structure.
*
* When you specify a filter, only intents with their
* checkpointLabel
field set to that string are
* returned.
*