AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InputSessionStateSpecification.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/lexv2-models/model/RuntimeHints.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/lexv2-models/model/ActiveContext.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace LexModelsV2
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_LEXMODELSV2_API InputSessionStateSpecification();
42 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::Map<Aws::String, Aws::String>& GetSessionAttributes() const{ return m_sessionAttributes; }
50 inline bool SessionAttributesHasBeenSet() const { return m_sessionAttributesHasBeenSet; }
51 inline void SetSessionAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes = value; }
52 inline void SetSessionAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes = std::move(value); }
55 inline InputSessionStateSpecification& AddSessionAttributes(const Aws::String& key, const Aws::String& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(key, value); return *this; }
56 inline InputSessionStateSpecification& AddSessionAttributes(Aws::String&& key, const Aws::String& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(std::move(key), value); return *this; }
57 inline InputSessionStateSpecification& AddSessionAttributes(const Aws::String& key, Aws::String&& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(key, std::move(value)); return *this; }
58 inline InputSessionStateSpecification& AddSessionAttributes(Aws::String&& key, Aws::String&& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(std::move(key), std::move(value)); return *this; }
59 inline InputSessionStateSpecification& AddSessionAttributes(const char* key, Aws::String&& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(key, std::move(value)); return *this; }
60 inline InputSessionStateSpecification& AddSessionAttributes(Aws::String&& key, const char* value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(std::move(key), value); return *this; }
61 inline InputSessionStateSpecification& AddSessionAttributes(const char* key, const char* value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.emplace(key, value); return *this; }
63
65
68 inline const Aws::Vector<ActiveContext>& GetActiveContexts() const{ return m_activeContexts; }
69 inline bool ActiveContextsHasBeenSet() const { return m_activeContextsHasBeenSet; }
70 inline void SetActiveContexts(const Aws::Vector<ActiveContext>& value) { m_activeContextsHasBeenSet = true; m_activeContexts = value; }
71 inline void SetActiveContexts(Aws::Vector<ActiveContext>&& value) { m_activeContextsHasBeenSet = true; m_activeContexts = std::move(value); }
74 inline InputSessionStateSpecification& AddActiveContexts(const ActiveContext& value) { m_activeContextsHasBeenSet = true; m_activeContexts.push_back(value); return *this; }
75 inline InputSessionStateSpecification& AddActiveContexts(ActiveContext&& value) { m_activeContextsHasBeenSet = true; m_activeContexts.push_back(std::move(value)); return *this; }
77
79
82 inline const RuntimeHints& GetRuntimeHints() const{ return m_runtimeHints; }
83 inline bool RuntimeHintsHasBeenSet() const { return m_runtimeHintsHasBeenSet; }
84 inline void SetRuntimeHints(const RuntimeHints& value) { m_runtimeHintsHasBeenSet = true; m_runtimeHints = value; }
85 inline void SetRuntimeHints(RuntimeHints&& value) { m_runtimeHintsHasBeenSet = true; m_runtimeHints = std::move(value); }
86 inline InputSessionStateSpecification& WithRuntimeHints(const RuntimeHints& value) { SetRuntimeHints(value); return *this;}
87 inline InputSessionStateSpecification& WithRuntimeHints(RuntimeHints&& value) { SetRuntimeHints(std::move(value)); return *this;}
89 private:
90
91 Aws::Map<Aws::String, Aws::String> m_sessionAttributes;
92 bool m_sessionAttributesHasBeenSet = false;
93
94 Aws::Vector<ActiveContext> m_activeContexts;
95 bool m_activeContextsHasBeenSet = false;
96
97 RuntimeHints m_runtimeHints;
98 bool m_runtimeHintsHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace LexModelsV2
103} // namespace Aws
InputSessionStateSpecification & AddSessionAttributes(Aws::String &&key, const Aws::String &value)
InputSessionStateSpecification & WithActiveContexts(const Aws::Vector< ActiveContext > &value)
InputSessionStateSpecification & AddSessionAttributes(const char *key, const char *value)
InputSessionStateSpecification & WithSessionAttributes(Aws::Map< Aws::String, Aws::String > &&value)
AWS_LEXMODELSV2_API InputSessionStateSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
InputSessionStateSpecification & AddSessionAttributes(Aws::String &&key, Aws::String &&value)
InputSessionStateSpecification & AddActiveContexts(ActiveContext &&value)
void SetSessionAttributes(const Aws::Map< Aws::String, Aws::String > &value)
InputSessionStateSpecification & AddSessionAttributes(const char *key, Aws::String &&value)
InputSessionStateSpecification & WithSessionAttributes(const Aws::Map< Aws::String, Aws::String > &value)
InputSessionStateSpecification & WithRuntimeHints(RuntimeHints &&value)
InputSessionStateSpecification & AddSessionAttributes(Aws::String &&key, const char *value)
InputSessionStateSpecification & AddSessionAttributes(const Aws::String &key, Aws::String &&value)
void SetActiveContexts(const Aws::Vector< ActiveContext > &value)
void SetSessionAttributes(Aws::Map< Aws::String, Aws::String > &&value)
InputSessionStateSpecification & AddActiveContexts(const ActiveContext &value)
AWS_LEXMODELSV2_API InputSessionStateSpecification(Aws::Utils::Json::JsonView jsonValue)
InputSessionStateSpecification & AddSessionAttributes(const Aws::String &key, const Aws::String &value)
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
InputSessionStateSpecification & WithActiveContexts(Aws::Vector< ActiveContext > &&value)
InputSessionStateSpecification & WithRuntimeHints(const RuntimeHints &value)
const Aws::Map< Aws::String, Aws::String > & GetSessionAttributes() const
const Aws::Vector< ActiveContext > & GetActiveContexts() 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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue