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/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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
53 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
54 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
55 inline ActiveContext& WithName(const Aws::String& value) { SetName(value); return *this;}
56 inline ActiveContext& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
57 inline ActiveContext& WithName(const char* value) { SetName(value); return *this;}
59
61
64 inline const ActiveContextTimeToLive& GetTimeToLive() const{ return m_timeToLive; }
65 inline bool TimeToLiveHasBeenSet() const { return m_timeToLiveHasBeenSet; }
66 inline void SetTimeToLive(const ActiveContextTimeToLive& value) { m_timeToLiveHasBeenSet = true; m_timeToLive = value; }
67 inline void SetTimeToLive(ActiveContextTimeToLive&& value) { m_timeToLiveHasBeenSet = true; m_timeToLive = std::move(value); }
68 inline ActiveContext& WithTimeToLive(const ActiveContextTimeToLive& value) { SetTimeToLive(value); return *this;}
69 inline ActiveContext& WithTimeToLive(ActiveContextTimeToLive&& value) { SetTimeToLive(std::move(value)); return *this;}
71
73
77 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const{ return m_parameters; }
78 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
79 inline void SetParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
80 inline void SetParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
82 inline ActiveContext& WithParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetParameters(std::move(value)); return *this;}
83 inline ActiveContext& AddParameters(const Aws::String& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
84 inline ActiveContext& AddParameters(Aws::String&& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
85 inline ActiveContext& AddParameters(const Aws::String& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
86 inline ActiveContext& AddParameters(Aws::String&& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
87 inline ActiveContext& AddParameters(const char* key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
88 inline ActiveContext& AddParameters(Aws::String&& key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
89 inline ActiveContext& AddParameters(const char* key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
91 private:
92
93 Aws::String m_name;
94 bool m_nameHasBeenSet = false;
95
96 ActiveContextTimeToLive m_timeToLive;
97 bool m_timeToLiveHasBeenSet = false;
98
100 bool m_parametersHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace LexRuntimeService
105} // namespace Aws
ActiveContext & AddParameters(const char *key, const char *value)
ActiveContext & WithTimeToLive(ActiveContextTimeToLive &&value)
void SetName(const Aws::String &value)
ActiveContext & WithName(const Aws::String &value)
ActiveContext & WithName(const char *value)
void SetTimeToLive(const ActiveContextTimeToLive &value)
ActiveContext & AddParameters(Aws::String &&key, const char *value)
ActiveContext & WithParameters(Aws::Map< Aws::String, Aws::String > &&value)
AWS_LEXRUNTIMESERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetParameters(const Aws::Map< Aws::String, Aws::String > &value)
ActiveContext & AddParameters(const char *key, Aws::String &&value)
ActiveContext & AddParameters(const Aws::String &key, const Aws::String &value)
ActiveContext & AddParameters(Aws::String &&key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
void SetTimeToLive(ActiveContextTimeToLive &&value)
ActiveContext & WithTimeToLive(const ActiveContextTimeToLive &value)
AWS_LEXRUNTIMESERVICE_API ActiveContext(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXRUNTIMESERVICE_API ActiveContext()
ActiveContext & WithParameters(const Aws::Map< Aws::String, Aws::String > &value)
AWS_LEXRUNTIMESERVICE_API ActiveContext & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetParameters(Aws::Map< Aws::String, Aws::String > &&value)
const ActiveContextTimeToLive & GetTimeToLive() const
ActiveContext & AddParameters(Aws::String &&key, const Aws::String &value)
ActiveContext & AddParameters(const Aws::String &key, Aws::String &&value)
ActiveContext & WithName(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