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/lexv2-runtime/LexRuntimeV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lexv2-runtime/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 LexRuntimeV2
24{
25namespace Model
26{
27
40 {
41 public:
42 AWS_LEXRUNTIMEV2_API ActiveContext() = default;
43 AWS_LEXRUNTIMEV2_API ActiveContext(Aws::Utils::Json::JsonView jsonValue);
44 AWS_LEXRUNTIMEV2_API ActiveContext& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::String& GetName() const { return m_name; }
53 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
54 template<typename NameT = Aws::String>
55 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
56 template<typename NameT = Aws::String>
57 ActiveContext& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
59
61
65 inline const ActiveContextTimeToLive& GetTimeToLive() const { return m_timeToLive; }
66 inline bool TimeToLiveHasBeenSet() const { return m_timeToLiveHasBeenSet; }
67 template<typename TimeToLiveT = ActiveContextTimeToLive>
68 void SetTimeToLive(TimeToLiveT&& value) { m_timeToLiveHasBeenSet = true; m_timeToLive = std::forward<TimeToLiveT>(value); }
69 template<typename TimeToLiveT = ActiveContextTimeToLive>
70 ActiveContext& WithTimeToLive(TimeToLiveT&& value) { SetTimeToLive(std::forward<TimeToLiveT>(value)); return *this;}
72
74
81 inline const Aws::Map<Aws::String, Aws::String>& GetContextAttributes() const { return m_contextAttributes; }
82 inline bool ContextAttributesHasBeenSet() const { return m_contextAttributesHasBeenSet; }
83 template<typename ContextAttributesT = Aws::Map<Aws::String, Aws::String>>
84 void SetContextAttributes(ContextAttributesT&& value) { m_contextAttributesHasBeenSet = true; m_contextAttributes = std::forward<ContextAttributesT>(value); }
85 template<typename ContextAttributesT = Aws::Map<Aws::String, Aws::String>>
86 ActiveContext& WithContextAttributes(ContextAttributesT&& value) { SetContextAttributes(std::forward<ContextAttributesT>(value)); return *this;}
87 template<typename ContextAttributesKeyT = Aws::String, typename ContextAttributesValueT = Aws::String>
88 ActiveContext& AddContextAttributes(ContextAttributesKeyT&& key, ContextAttributesValueT&& value) {
89 m_contextAttributesHasBeenSet = true; m_contextAttributes.emplace(std::forward<ContextAttributesKeyT>(key), std::forward<ContextAttributesValueT>(value)); return *this;
90 }
92 private:
93
94 Aws::String m_name;
95 bool m_nameHasBeenSet = false;
96
97 ActiveContextTimeToLive m_timeToLive;
98 bool m_timeToLiveHasBeenSet = false;
99
100 Aws::Map<Aws::String, Aws::String> m_contextAttributes;
101 bool m_contextAttributesHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace LexRuntimeV2
106} // namespace Aws
AWS_LEXRUNTIMEV2_API ActiveContext()=default
const ActiveContextTimeToLive & GetTimeToLive() const
const Aws::String & GetName() const
ActiveContext & WithTimeToLive(TimeToLiveT &&value)
const Aws::Map< Aws::String, Aws::String > & GetContextAttributes() const
ActiveContext & WithContextAttributes(ContextAttributesT &&value)
void SetTimeToLive(TimeToLiveT &&value)
void SetContextAttributes(ContextAttributesT &&value)
ActiveContext & WithName(NameT &&value)
AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const
ActiveContext & AddContextAttributes(ContextAttributesKeyT &&key, ContextAttributesValueT &&value)
AWS_LEXRUNTIMEV2_API ActiveContext & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXRUNTIMEV2_API ActiveContext(Aws::Utils::Json::JsonView jsonValue)
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