AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
ActiveContextTimeToLive.h
1
6#pragma once
7#include <aws/lex/LexRuntimeService_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace LexRuntimeService {
17namespace Model {
18
26 public:
27 AWS_LEXRUNTIMESERVICE_API ActiveContextTimeToLive() = default;
28 AWS_LEXRUNTIMESERVICE_API ActiveContextTimeToLive(Aws::Utils::Json::JsonView jsonValue);
29 AWS_LEXRUNTIMESERVICE_API ActiveContextTimeToLive& operator=(Aws::Utils::Json::JsonView jsonValue);
30 AWS_LEXRUNTIMESERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
38 inline int GetTimeToLiveInSeconds() const { return m_timeToLiveInSeconds; }
39 inline bool TimeToLiveInSecondsHasBeenSet() const { return m_timeToLiveInSecondsHasBeenSet; }
40 inline void SetTimeToLiveInSeconds(int value) {
41 m_timeToLiveInSecondsHasBeenSet = true;
42 m_timeToLiveInSeconds = value;
43 }
46 return *this;
47 }
49
51
56 inline int GetTurnsToLive() const { return m_turnsToLive; }
57 inline bool TurnsToLiveHasBeenSet() const { return m_turnsToLiveHasBeenSet; }
58 inline void SetTurnsToLive(int value) {
59 m_turnsToLiveHasBeenSet = true;
60 m_turnsToLive = value;
61 }
63 SetTurnsToLive(value);
64 return *this;
65 }
67 private:
68 int m_timeToLiveInSeconds{0};
69
70 int m_turnsToLive{0};
71 bool m_timeToLiveInSecondsHasBeenSet = false;
72 bool m_turnsToLiveHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace LexRuntimeService
77} // namespace Aws
AWS_LEXRUNTIMESERVICE_API ActiveContextTimeToLive(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXRUNTIMESERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LEXRUNTIMESERVICE_API ActiveContextTimeToLive()=default
AWS_LEXRUNTIMESERVICE_API ActiveContextTimeToLive & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue