7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lexv2-runtime/LexRuntimeV2_EXPORTS.h>
10#include <aws/lexv2-runtime/model/ActiveContextTimeToLive.h>
21namespace LexRuntimeV2 {
48 template <
typename NameT = Aws::String>
50 m_nameHasBeenSet =
true;
51 m_name = std::forward<NameT>(value);
53 template <
typename NameT = Aws::String>
55 SetName(std::forward<NameT>(value));
67 template <
typename TimeToLiveT = ActiveContextTimeToLive>
69 m_timeToLiveHasBeenSet =
true;
70 m_timeToLive = std::forward<TimeToLiveT>(value);
72 template <
typename TimeToLiveT = ActiveContextTimeToLive>
89 template <
typename ContextAttributesT = Aws::Map<Aws::String, Aws::String>>
91 m_contextAttributesHasBeenSet =
true;
92 m_contextAttributes = std::forward<ContextAttributesT>(value);
94 template <
typename ContextAttributesT = Aws::Map<Aws::String, Aws::String>>
99 template <
typename ContextAttributesKeyT = Aws::String,
typename ContextAttributesValueT = Aws::String>
101 m_contextAttributesHasBeenSet =
true;
102 m_contextAttributes.emplace(std::forward<ContextAttributesKeyT>(key), std::forward<ContextAttributesValueT>(value));
112 bool m_nameHasBeenSet =
false;
113 bool m_timeToLiveHasBeenSet =
false;
114 bool m_contextAttributesHasBeenSet =
false;
AWS_LEXRUNTIMEV2_API ActiveContext()=default
const ActiveContextTimeToLive & GetTimeToLive() const
const Aws::String & GetName() const
ActiveContext & WithTimeToLive(TimeToLiveT &&value)
bool TimeToLiveHasBeenSet() const
const Aws::Map< Aws::String, Aws::String > & GetContextAttributes() const
bool NameHasBeenSet() 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
void SetName(NameT &&value)
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)
bool ContextAttributesHasBeenSet() const
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