AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ActiveContext.h
1
6#pragma once
7#include <aws/lex/LexRuntimeService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lex/model/ActiveContextTimeToLive.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace LexRuntimeService
24{
25namespace Model
26{
27
38 {
39 public:
40 AWS_LEXRUNTIMESERVICE_API ActiveContext() = default;
41 AWS_LEXRUNTIMESERVICE_API ActiveContext(Aws::Utils::Json::JsonView jsonValue);
42 AWS_LEXRUNTIMESERVICE_API ActiveContext& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_LEXRUNTIMESERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetName() const { return m_name; }
51 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
52 template<typename NameT = Aws::String>
53 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
54 template<typename NameT = Aws::String>
55 ActiveContext& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_timeToLiveHasBeenSet = true; m_timeToLive = std::forward<TimeToLiveT>(value); }
66 template<typename TimeToLiveT = ActiveContextTimeToLive>
67 ActiveContext& WithTimeToLive(TimeToLiveT&& value) { SetTimeToLive(std::forward<TimeToLiveT>(value)); return *this;}
69
71
75 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const { return m_parameters; }
76 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
77 template<typename ParametersT = Aws::Map<Aws::String, Aws::String>>
78 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
79 template<typename ParametersT = Aws::Map<Aws::String, Aws::String>>
80 ActiveContext& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
81 template<typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::String>
82 ActiveContext& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
83 m_parametersHasBeenSet = true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value)); return *this;
84 }
86 private:
87
88 Aws::String m_name;
89 bool m_nameHasBeenSet = false;
90
91 ActiveContextTimeToLive m_timeToLive;
92 bool m_timeToLiveHasBeenSet = false;
93
95 bool m_parametersHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace LexRuntimeService
100} // 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