AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Intent.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/core/utils/memory/stl/AWSMap.h>
10#include <aws/lexv2-runtime/model/IntentState.h>
11#include <aws/lexv2-runtime/model/ConfirmationState.h>
12#include <aws/lexv2-runtime/model/Slot.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 LexRuntimeV2
26{
27namespace Model
28{
29
36 class Intent
37 {
38 public:
39 AWS_LEXRUNTIMEV2_API Intent();
40 AWS_LEXRUNTIMEV2_API Intent(Aws::Utils::Json::JsonView jsonValue);
41 AWS_LEXRUNTIMEV2_API Intent& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetName() const{ return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
52 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
53 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
54 inline Intent& WithName(const Aws::String& value) { SetName(value); return *this;}
55 inline Intent& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
56 inline Intent& WithName(const char* value) { SetName(value); return *this;}
58
60
64 inline const Aws::Map<Aws::String, Slot>& GetSlots() const{ return m_slots; }
65 inline bool SlotsHasBeenSet() const { return m_slotsHasBeenSet; }
66 inline void SetSlots(const Aws::Map<Aws::String, Slot>& value) { m_slotsHasBeenSet = true; m_slots = value; }
67 inline void SetSlots(Aws::Map<Aws::String, Slot>&& value) { m_slotsHasBeenSet = true; m_slots = std::move(value); }
68 inline Intent& WithSlots(const Aws::Map<Aws::String, Slot>& value) { SetSlots(value); return *this;}
69 inline Intent& WithSlots(Aws::Map<Aws::String, Slot>&& value) { SetSlots(std::move(value)); return *this;}
70 inline Intent& AddSlots(const Aws::String& key, const Slot& value) { m_slotsHasBeenSet = true; m_slots.emplace(key, value); return *this; }
71 inline Intent& AddSlots(Aws::String&& key, const Slot& value) { m_slotsHasBeenSet = true; m_slots.emplace(std::move(key), value); return *this; }
72 inline Intent& AddSlots(const Aws::String& key, Slot&& value) { m_slotsHasBeenSet = true; m_slots.emplace(key, std::move(value)); return *this; }
73 inline Intent& AddSlots(Aws::String&& key, Slot&& value) { m_slotsHasBeenSet = true; m_slots.emplace(std::move(key), std::move(value)); return *this; }
74 inline Intent& AddSlots(const char* key, Slot&& value) { m_slotsHasBeenSet = true; m_slots.emplace(key, std::move(value)); return *this; }
75 inline Intent& AddSlots(const char* key, const Slot& value) { m_slotsHasBeenSet = true; m_slots.emplace(key, value); return *this; }
77
79
92 inline const IntentState& GetState() const{ return m_state; }
93 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
94 inline void SetState(const IntentState& value) { m_stateHasBeenSet = true; m_state = value; }
95 inline void SetState(IntentState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
96 inline Intent& WithState(const IntentState& value) { SetState(value); return *this;}
97 inline Intent& WithState(IntentState&& value) { SetState(std::move(value)); return *this;}
99
101
106 inline const ConfirmationState& GetConfirmationState() const{ return m_confirmationState; }
107 inline bool ConfirmationStateHasBeenSet() const { return m_confirmationStateHasBeenSet; }
108 inline void SetConfirmationState(const ConfirmationState& value) { m_confirmationStateHasBeenSet = true; m_confirmationState = value; }
109 inline void SetConfirmationState(ConfirmationState&& value) { m_confirmationStateHasBeenSet = true; m_confirmationState = std::move(value); }
110 inline Intent& WithConfirmationState(const ConfirmationState& value) { SetConfirmationState(value); return *this;}
111 inline Intent& WithConfirmationState(ConfirmationState&& value) { SetConfirmationState(std::move(value)); return *this;}
113 private:
114
115 Aws::String m_name;
116 bool m_nameHasBeenSet = false;
117
119 bool m_slotsHasBeenSet = false;
120
121 IntentState m_state;
122 bool m_stateHasBeenSet = false;
123
124 ConfirmationState m_confirmationState;
125 bool m_confirmationStateHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace LexRuntimeV2
130} // namespace Aws
Intent & WithName(const char *value)
Definition Intent.h:56
void SetState(IntentState &&value)
Definition Intent.h:95
const ConfirmationState & GetConfirmationState() const
Definition Intent.h:106
Intent & WithName(const Aws::String &value)
Definition Intent.h:54
Intent & AddSlots(const char *key, const Slot &value)
Definition Intent.h:75
AWS_LEXRUNTIMEV2_API Intent(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXRUNTIMEV2_API Intent & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
Definition Intent.h:49
void SetName(const char *value)
Definition Intent.h:53
Intent & AddSlots(Aws::String &&key, Slot &&value)
Definition Intent.h:73
void SetConfirmationState(const ConfirmationState &value)
Definition Intent.h:108
Intent & WithSlots(const Aws::Map< Aws::String, Slot > &value)
Definition Intent.h:68
void SetSlots(const Aws::Map< Aws::String, Slot > &value)
Definition Intent.h:66
void SetSlots(Aws::Map< Aws::String, Slot > &&value)
Definition Intent.h:67
Intent & AddSlots(const Aws::String &key, const Slot &value)
Definition Intent.h:70
Intent & WithState(const IntentState &value)
Definition Intent.h:96
bool ConfirmationStateHasBeenSet() const
Definition Intent.h:107
const IntentState & GetState() const
Definition Intent.h:92
AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetName(Aws::String &&value)
Definition Intent.h:52
Intent & WithConfirmationState(const ConfirmationState &value)
Definition Intent.h:110
Intent & AddSlots(const Aws::String &key, Slot &&value)
Definition Intent.h:72
Intent & WithName(Aws::String &&value)
Definition Intent.h:55
Intent & AddSlots(const char *key, Slot &&value)
Definition Intent.h:74
Intent & WithState(IntentState &&value)
Definition Intent.h:97
void SetState(const IntentState &value)
Definition Intent.h:94
Intent & WithSlots(Aws::Map< Aws::String, Slot > &&value)
Definition Intent.h:69
void SetConfirmationState(ConfirmationState &&value)
Definition Intent.h:109
AWS_LEXRUNTIMEV2_API Intent()
const Aws::Map< Aws::String, Slot > & GetSlots() const
Definition Intent.h:64
Intent & AddSlots(Aws::String &&key, const Slot &value)
Definition Intent.h:71
void SetName(const Aws::String &value)
Definition Intent.h:51
Intent & WithConfirmationState(ConfirmationState &&value)
Definition Intent.h:111
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