AWS SDK for C++

AWS SDK for C++ Version 1.11.926

Loading...
Searching...
No Matches
OutputContext.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lex-models/LexModelBuildingService_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace LexModelBuildingService {
20namespace Model {
21
29 public:
30 AWS_LEXMODELBUILDINGSERVICE_API OutputContext() = default;
31 AWS_LEXMODELBUILDINGSERVICE_API OutputContext(Aws::Utils::Json::JsonView jsonValue);
32 AWS_LEXMODELBUILDINGSERVICE_API OutputContext& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_LEXMODELBUILDINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
47 OutputContext& WithName(NameT&& value) {
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
59 inline int GetTimeToLiveInSeconds() const { return m_timeToLiveInSeconds; }
60 inline bool TimeToLiveInSecondsHasBeenSet() const { return m_timeToLiveInSecondsHasBeenSet; }
61 inline void SetTimeToLiveInSeconds(int value) {
62 m_timeToLiveInSecondsHasBeenSet = true;
63 m_timeToLiveInSeconds = value;
64 }
67 return *this;
68 }
70
72
77 inline int GetTurnsToLive() const { return m_turnsToLive; }
78 inline bool TurnsToLiveHasBeenSet() const { return m_turnsToLiveHasBeenSet; }
79 inline void SetTurnsToLive(int value) {
80 m_turnsToLiveHasBeenSet = true;
81 m_turnsToLive = value;
82 }
83 inline OutputContext& WithTurnsToLive(int value) {
84 SetTurnsToLive(value);
85 return *this;
86 }
88 private:
89 Aws::String m_name;
90
91 int m_timeToLiveInSeconds{0};
92
93 int m_turnsToLive{0};
94 bool m_nameHasBeenSet = false;
95 bool m_timeToLiveInSecondsHasBeenSet = false;
96 bool m_turnsToLiveHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace LexModelBuildingService
101} // namespace Aws
AWS_LEXMODELBUILDINGSERVICE_API OutputContext & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXMODELBUILDINGSERVICE_API OutputContext()=default
AWS_LEXMODELBUILDINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LEXMODELBUILDINGSERVICE_API OutputContext(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue