AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
ActiveContextTimeToLive.h
1
6#pragma once
7#include <aws/lexv2-runtime/LexRuntimeV2_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace LexRuntimeV2 {
17namespace Model {
18
26 public:
27 AWS_LEXRUNTIMEV2_API ActiveContextTimeToLive() = default;
28 AWS_LEXRUNTIMEV2_API ActiveContextTimeToLive(Aws::Utils::Json::JsonView jsonValue);
30 AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
37 inline int GetTimeToLiveInSeconds() const { return m_timeToLiveInSeconds; }
38 inline bool TimeToLiveInSecondsHasBeenSet() const { return m_timeToLiveInSecondsHasBeenSet; }
39 inline void SetTimeToLiveInSeconds(int value) {
40 m_timeToLiveInSecondsHasBeenSet = true;
41 m_timeToLiveInSeconds = value;
42 }
45 return *this;
46 }
48
50
54 inline int GetTurnsToLive() const { return m_turnsToLive; }
55 inline bool TurnsToLiveHasBeenSet() const { return m_turnsToLiveHasBeenSet; }
56 inline void SetTurnsToLive(int value) {
57 m_turnsToLiveHasBeenSet = true;
58 m_turnsToLive = value;
59 }
61 SetTurnsToLive(value);
62 return *this;
63 }
65 private:
66 int m_timeToLiveInSeconds{0};
67
68 int m_turnsToLive{0};
69 bool m_timeToLiveInSecondsHasBeenSet = false;
70 bool m_turnsToLiveHasBeenSet = false;
71};
72
73} // namespace Model
74} // namespace LexRuntimeV2
75} // namespace Aws
ActiveContextTimeToLive & WithTurnsToLive(int value)
ActiveContextTimeToLive & WithTimeToLiveInSeconds(int value)
AWS_LEXRUNTIMEV2_API ActiveContextTimeToLive(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXRUNTIMEV2_API ActiveContextTimeToLive()=default
AWS_LEXRUNTIMEV2_API ActiveContextTimeToLive & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue