AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ActiveContextTimeToLive.h
1
6#pragma once
7#include <aws/lexv2-runtime/LexRuntimeV2_EXPORTS.h>
8
9namespace Aws
10{
11namespace Utils
12{
13namespace Json
14{
15 class JsonValue;
16 class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace LexRuntimeV2
20{
21namespace Model
22{
23
31 {
32 public:
33 AWS_LEXRUNTIMEV2_API ActiveContextTimeToLive();
34 AWS_LEXRUNTIMEV2_API ActiveContextTimeToLive(Aws::Utils::Json::JsonView jsonValue);
36 AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const;
37
38
40
44 inline int GetTimeToLiveInSeconds() const{ return m_timeToLiveInSeconds; }
45 inline bool TimeToLiveInSecondsHasBeenSet() const { return m_timeToLiveInSecondsHasBeenSet; }
46 inline void SetTimeToLiveInSeconds(int value) { m_timeToLiveInSecondsHasBeenSet = true; m_timeToLiveInSeconds = value; }
49
51
55 inline int GetTurnsToLive() const{ return m_turnsToLive; }
56 inline bool TurnsToLiveHasBeenSet() const { return m_turnsToLiveHasBeenSet; }
57 inline void SetTurnsToLive(int value) { m_turnsToLiveHasBeenSet = true; m_turnsToLive = value; }
58 inline ActiveContextTimeToLive& WithTurnsToLive(int value) { SetTurnsToLive(value); return *this;}
60 private:
61
62 int m_timeToLiveInSeconds;
63 bool m_timeToLiveInSecondsHasBeenSet = false;
64
65 int m_turnsToLive;
66 bool m_turnsToLiveHasBeenSet = false;
67 };
68
69} // namespace Model
70} // namespace LexRuntimeV2
71} // namespace Aws
ActiveContextTimeToLive & WithTurnsToLive(int value)
ActiveContextTimeToLive & WithTimeToLiveInSeconds(int value)
AWS_LEXRUNTIMEV2_API ActiveContextTimeToLive(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXRUNTIMEV2_API ActiveContextTimeToLive & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue