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>
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>
67 template<
typename TimeToLiveT = ActiveContextTimeToLive>
68 void SetTimeToLive(TimeToLiveT&& value) { m_timeToLiveHasBeenSet =
true; m_timeToLive = std::forward<TimeToLiveT>(value); }
69 template<
typename TimeToLiveT = ActiveContextTimeToLive>
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>>
87 template<
typename ContextAttributesKeyT = Aws::String,
typename ContextAttributesValueT = Aws::String>
89 m_contextAttributesHasBeenSet =
true; m_contextAttributes.emplace(std::forward<ContextAttributesKeyT>(key), std::forward<ContextAttributesValueT>(value));
return *
this;
95 bool m_nameHasBeenSet =
false;
98 bool m_timeToLiveHasBeenSet =
false;
101 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