AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
OutputContext.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace LexModelsV2 {
20namespace Model {
21
29 public:
30 AWS_LEXMODELSV2_API OutputContext() = default;
31 AWS_LEXMODELSV2_API OutputContext(Aws::Utils::Json::JsonView jsonValue);
32 AWS_LEXMODELSV2_API OutputContext& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_LEXMODELSV2_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
58 inline int GetTimeToLiveInSeconds() const { return m_timeToLiveInSeconds; }
59 inline bool TimeToLiveInSecondsHasBeenSet() const { return m_timeToLiveInSecondsHasBeenSet; }
60 inline void SetTimeToLiveInSeconds(int value) {
61 m_timeToLiveInSecondsHasBeenSet = true;
62 m_timeToLiveInSeconds = value;
63 }
66 return *this;
67 }
69
71
76 inline int GetTurnsToLive() const { return m_turnsToLive; }
77 inline bool TurnsToLiveHasBeenSet() const { return m_turnsToLiveHasBeenSet; }
78 inline void SetTurnsToLive(int value) {
79 m_turnsToLiveHasBeenSet = true;
80 m_turnsToLive = value;
81 }
82 inline OutputContext& WithTurnsToLive(int value) {
83 SetTurnsToLive(value);
84 return *this;
85 }
87 private:
88 Aws::String m_name;
89
90 int m_timeToLiveInSeconds{0};
91
92 int m_turnsToLive{0};
93 bool m_nameHasBeenSet = false;
94 bool m_timeToLiveInSecondsHasBeenSet = false;
95 bool m_turnsToLiveHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace LexModelsV2
100} // namespace Aws
OutputContext & WithName(NameT &&value)
const Aws::String & GetName() const
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LEXMODELSV2_API OutputContext()=default
OutputContext & WithTimeToLiveInSeconds(int value)
AWS_LEXMODELSV2_API OutputContext & operator=(Aws::Utils::Json::JsonView jsonValue)
OutputContext & WithTurnsToLive(int value)
AWS_LEXMODELSV2_API OutputContext(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue