AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ActiveContext.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lex/LexRuntimeService_EXPORTS.h>
10#include <aws/lex/model/ActiveContextTimeToLive.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace LexRuntimeService {
22namespace Model {
23
34 public:
35 AWS_LEXRUNTIMESERVICE_API ActiveContext() = default;
36 AWS_LEXRUNTIMESERVICE_API ActiveContext(Aws::Utils::Json::JsonView jsonValue);
37 AWS_LEXRUNTIMESERVICE_API ActiveContext& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LEXRUNTIMESERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 template <typename NameT = Aws::String>
47 void SetName(NameT&& value) {
48 m_nameHasBeenSet = true;
49 m_name = std::forward<NameT>(value);
50 }
51 template <typename NameT = Aws::String>
52 ActiveContext& WithName(NameT&& value) {
53 SetName(std::forward<NameT>(value));
54 return *this;
55 }
57
59
62 inline const ActiveContextTimeToLive& GetTimeToLive() const { return m_timeToLive; }
63 inline bool TimeToLiveHasBeenSet() const { return m_timeToLiveHasBeenSet; }
64 template <typename TimeToLiveT = ActiveContextTimeToLive>
65 void SetTimeToLive(TimeToLiveT&& value) {
66 m_timeToLiveHasBeenSet = true;
67 m_timeToLive = std::forward<TimeToLiveT>(value);
68 }
69 template <typename TimeToLiveT = ActiveContextTimeToLive>
70 ActiveContext& WithTimeToLive(TimeToLiveT&& value) {
71 SetTimeToLive(std::forward<TimeToLiveT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const { return m_parameters; }
82 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
83 template <typename ParametersT = Aws::Map<Aws::String, Aws::String>>
84 void SetParameters(ParametersT&& value) {
85 m_parametersHasBeenSet = true;
86 m_parameters = std::forward<ParametersT>(value);
87 }
88 template <typename ParametersT = Aws::Map<Aws::String, Aws::String>>
89 ActiveContext& WithParameters(ParametersT&& value) {
90 SetParameters(std::forward<ParametersT>(value));
91 return *this;
92 }
93 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::String>
94 ActiveContext& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
95 m_parametersHasBeenSet = true;
96 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
97 return *this;
98 }
100 private:
101 Aws::String m_name;
102
103 ActiveContextTimeToLive m_timeToLive;
104
106 bool m_nameHasBeenSet = false;
107 bool m_timeToLiveHasBeenSet = false;
108 bool m_parametersHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace LexRuntimeService
113} // namespace Aws
ActiveContext & WithParameters(ParametersT &&value)
ActiveContext & WithTimeToLive(TimeToLiveT &&value)
AWS_LEXRUNTIMESERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
AWS_LEXRUNTIMESERVICE_API ActiveContext()=default
AWS_LEXRUNTIMESERVICE_API ActiveContext(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXRUNTIMESERVICE_API ActiveContext & operator=(Aws::Utils::Json::JsonView jsonValue)
const ActiveContextTimeToLive & GetTimeToLive() const
ActiveContext & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
ActiveContext & WithName(NameT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue