/* * 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; /** *
* The length of time or number of turns that a context remains active. *
*/ public class ActiveContextTimeToLive implements Serializable { /** *
* The number of seconds that the context should be active after it is first
* sent in a PostContent
or PostText
response. You
* can set the value between 5 and 86,400 seconds (24 hours).
*
* Constraints:
* Range: 5 - 86400
*/
private Integer timeToLiveInSeconds;
/**
*
* The number of conversation turns that the context should be active. A
* conversation turn is one PostContent
or
* PostText
request and the corresponding response from Amazon
* Lex.
*
* Constraints:
* Range: 1 - 20
*/
private Integer turnsToLive;
/**
*
* The number of seconds that the context should be active after it is first
* sent in a PostContent
or PostText
response. You
* can set the value between 5 and 86,400 seconds (24 hours).
*
* Constraints:
* Range: 5 - 86400
*
* @return
* The number of seconds that the context should be active after it
* is first sent in a PostContent
or
* PostText
response. You can set the value between 5
* and 86,400 seconds (24 hours).
*
* The number of seconds that the context should be active after it is first
* sent in a PostContent
or PostText
response. You
* can set the value between 5 and 86,400 seconds (24 hours).
*
* Constraints:
* Range: 5 - 86400
*
* @param timeToLiveInSeconds
* The number of seconds that the context should be active after
* it is first sent in a PostContent
or
* PostText
response. You can set the value between
* 5 and 86,400 seconds (24 hours).
*
* The number of seconds that the context should be active after it is first
* sent in a PostContent
or PostText
response. You
* can set the value between 5 and 86,400 seconds (24 hours).
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Range: 5 - 86400
*
* @param timeToLiveInSeconds
* The number of seconds that the context should be active after
* it is first sent in a PostContent
or
* PostText
response. You can set the value between
* 5 and 86,400 seconds (24 hours).
*
* The number of conversation turns that the context should be active. A
* conversation turn is one PostContent
or
* PostText
request and the corresponding response from Amazon
* Lex.
*
* Constraints:
* Range: 1 - 20
*
* @return
* The number of conversation turns that the context should be
* active. A conversation turn is one PostContent
or
* PostText
request and the corresponding response from
* Amazon Lex.
*
* The number of conversation turns that the context should be active. A
* conversation turn is one PostContent
or
* PostText
request and the corresponding response from Amazon
* Lex.
*
* Constraints:
* Range: 1 - 20
*
* @param turnsToLive
* The number of conversation turns that the context should be
* active. A conversation turn is one PostContent
or
* PostText
request and the corresponding response
* from Amazon Lex.
*
* The number of conversation turns that the context should be active. A
* conversation turn is one PostContent
or
* PostText
request and the corresponding response from Amazon
* Lex.
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Range: 1 - 20
*
* @param turnsToLive
* The number of conversation turns that the context should be
* active. A conversation turn is one PostContent
or
* PostText
request and the corresponding response
* from Amazon Lex.
*