/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a session context that is activated when an intent is
* fulfilled.See Also:
AWS
* API Reference
The name of the output context.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the output context.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the output context.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the output context.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the output context.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the output context.
*/ inline OutputContext& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the output context.
*/ inline OutputContext& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the output context.
*/ inline OutputContext& WithName(const char* value) { SetName(value); return *this;} /** *The amount of time, in seconds, that the output context should remain active. * The time is figured from the first time the context is sent to the user.
*/ inline int GetTimeToLiveInSeconds() const{ return m_timeToLiveInSeconds; } /** *The amount of time, in seconds, that the output context should remain active. * The time is figured from the first time the context is sent to the user.
*/ inline bool TimeToLiveInSecondsHasBeenSet() const { return m_timeToLiveInSecondsHasBeenSet; } /** *The amount of time, in seconds, that the output context should remain active. * The time is figured from the first time the context is sent to the user.
*/ inline void SetTimeToLiveInSeconds(int value) { m_timeToLiveInSecondsHasBeenSet = true; m_timeToLiveInSeconds = value; } /** *The amount of time, in seconds, that the output context should remain active. * The time is figured from the first time the context is sent to the user.
*/ inline OutputContext& WithTimeToLiveInSeconds(int value) { SetTimeToLiveInSeconds(value); return *this;} /** *The number of conversation turns that the output context should remain * active. The number of turns is counted from the first time that the context is * sent to the user.
*/ inline int GetTurnsToLive() const{ return m_turnsToLive; } /** *The number of conversation turns that the output context should remain * active. The number of turns is counted from the first time that the context is * sent to the user.
*/ inline bool TurnsToLiveHasBeenSet() const { return m_turnsToLiveHasBeenSet; } /** *The number of conversation turns that the output context should remain * active. The number of turns is counted from the first time that the context is * sent to the user.
*/ inline void SetTurnsToLive(int value) { m_turnsToLiveHasBeenSet = true; m_turnsToLive = value; } /** *The number of conversation turns that the output context should remain * active. The number of turns is counted from the first time that the context is * sent to the user.
*/ inline OutputContext& WithTurnsToLive(int value) { SetTurnsToLive(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; int m_timeToLiveInSeconds; bool m_timeToLiveInSecondsHasBeenSet = false; int m_turnsToLive; bool m_turnsToLiveHasBeenSet = false; }; } // namespace Model } // namespace LexModelsV2 } // namespace Aws