AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
55 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
56 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
57 inline ActiveContext& WithName(const Aws::String& value) { SetName(value); return *this;}
58 inline ActiveContext& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
59 inline ActiveContext& WithName(const char* value) { SetName(value); return *this;}
61
63
67 inline const ActiveContextTimeToLive& GetTimeToLive() const{ return m_timeToLive; }
68 inline bool TimeToLiveHasBeenSet() const { return m_timeToLiveHasBeenSet; }
69 inline void SetTimeToLive(const ActiveContextTimeToLive& value) { m_timeToLiveHasBeenSet = true; m_timeToLive = value; }
70 inline void SetTimeToLive(ActiveContextTimeToLive&& value) { m_timeToLiveHasBeenSet = true; m_timeToLive = std::move(value); }
71 inline ActiveContext& WithTimeToLive(const ActiveContextTimeToLive& value) { SetTimeToLive(value); return *this;}
72 inline ActiveContext& WithTimeToLive(ActiveContextTimeToLive&& value) { SetTimeToLive(std::move(value)); return *this;}
74
76
83 inline const Aws::Map<Aws::String, Aws::String>& GetContextAttributes() const{ return m_contextAttributes; }
84 inline bool ContextAttributesHasBeenSet() const { return m_contextAttributesHasBeenSet; }
85 inline void SetContextAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_contextAttributesHasBeenSet = true; m_contextAttributes = value; }
86 inline void SetContextAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_contextAttributesHasBeenSet = true; m_contextAttributes = std::move(value); }
89 inline ActiveContext& AddContextAttributes(const Aws::String& key, const Aws::String& value) { m_contextAttributesHasBeenSet = true; m_contextAttributes.emplace(key, value); return *this; }
90 inline ActiveContext& AddContextAttributes(Aws::String&& key, const Aws::String& value) { m_contextAttributesHasBeenSet = true; m_contextAttributes.emplace(std::move(key), value); return *this; }
91 inline ActiveContext& AddContextAttributes(const Aws::String& key, Aws::String&& value) { m_contextAttributesHasBeenSet = true; m_contextAttributes.emplace(key, std::move(value)); return *this; }
92 inline ActiveContext& AddContextAttributes(Aws::String&& key, Aws::String&& value) { m_contextAttributesHasBeenSet = true; m_contextAttributes.emplace(std::move(key), std::move(value)); return *this; }
93 inline ActiveContext& AddContextAttributes(const char* key, Aws::String&& value) { m_contextAttributesHasBeenSet = true; m_contextAttributes.emplace(key, std::move(value)); return *this; }
94 inline ActiveContext& AddContextAttributes(Aws::String&& key, const char* value) { m_contextAttributesHasBeenSet = true; m_contextAttributes.emplace(std::move(key), value); return *this; }
95 inline ActiveContext& AddContextAttributes(const char* key, const char* value) { m_contextAttributesHasBeenSet = true; m_contextAttributes.emplace(key, value); return *this; }
97 private:
98
99 Aws::String m_name;
100 bool m_nameHasBeenSet = false;
101
102 ActiveContextTimeToLive m_timeToLive;
103 bool m_timeToLiveHasBeenSet = false;
104
105 Aws::Map<Aws::String, Aws::String> m_contextAttributes;
106 bool m_contextAttributesHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace LexRuntimeV2
111} // namespace Aws
ActiveContext & AddContextAttributes(const Aws::String &key, const Aws::String &value)
const ActiveContextTimeToLive & GetTimeToLive() const
ActiveContext & AddContextAttributes(const char *key, const char *value)
void SetContextAttributes(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::String & GetName() const
const Aws::Map< Aws::String, Aws::String > & GetContextAttributes() const
ActiveContext & WithName(Aws::String &&value)
ActiveContext & WithName(const Aws::String &value)
void SetName(const Aws::String &value)
AWS_LEXRUNTIMEV2_API ActiveContext()
ActiveContext & WithTimeToLive(ActiveContextTimeToLive &&value)
ActiveContext & AddContextAttributes(Aws::String &&key, Aws::String &&value)
ActiveContext & AddContextAttributes(const Aws::String &key, Aws::String &&value)
ActiveContext & WithTimeToLive(const ActiveContextTimeToLive &value)
void SetName(Aws::String &&value)
ActiveContext & WithContextAttributes(Aws::Map< Aws::String, Aws::String > &&value)
void SetContextAttributes(const Aws::Map< Aws::String, Aws::String > &value)
AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const
ActiveContext & AddContextAttributes(Aws::String &&key, const char *value)
ActiveContext & WithName(const char *value)
ActiveContext & AddContextAttributes(const char *key, Aws::String &&value)
AWS_LEXRUNTIMEV2_API ActiveContext & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTimeToLive(ActiveContextTimeToLive &&value)
void SetTimeToLive(const ActiveContextTimeToLive &value)
ActiveContext & AddContextAttributes(Aws::String &&key, const Aws::String &value)
AWS_LEXRUNTIMEV2_API ActiveContext(Aws::Utils::Json::JsonView jsonValue)
ActiveContext & WithContextAttributes(const Aws::Map< Aws::String, Aws::String > &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