AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
IntentSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
11#include <aws/lexv2-models/model/InputContext.h>
12#include <aws/lexv2-models/model/OutputContext.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace LexModelsV2 {
24namespace Model {
25
33 public:
34 AWS_LEXMODELSV2_API IntentSummary() = default;
35 AWS_LEXMODELSV2_API IntentSummary(Aws::Utils::Json::JsonView jsonValue);
36 AWS_LEXMODELSV2_API IntentSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline const Aws::String& GetIntentId() const { return m_intentId; }
45 inline bool IntentIdHasBeenSet() const { return m_intentIdHasBeenSet; }
46 template <typename IntentIdT = Aws::String>
47 void SetIntentId(IntentIdT&& value) {
48 m_intentIdHasBeenSet = true;
49 m_intentId = std::forward<IntentIdT>(value);
50 }
51 template <typename IntentIdT = Aws::String>
52 IntentSummary& WithIntentId(IntentIdT&& value) {
53 SetIntentId(std::forward<IntentIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetIntentName() const { return m_intentName; }
63 inline bool IntentNameHasBeenSet() const { return m_intentNameHasBeenSet; }
64 template <typename IntentNameT = Aws::String>
65 void SetIntentName(IntentNameT&& value) {
66 m_intentNameHasBeenSet = true;
67 m_intentName = std::forward<IntentNameT>(value);
68 }
69 template <typename IntentNameT = Aws::String>
70 IntentSummary& WithIntentName(IntentNameT&& value) {
71 SetIntentName(std::forward<IntentNameT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetIntentDisplayName() const { return m_intentDisplayName; }
81 inline bool IntentDisplayNameHasBeenSet() const { return m_intentDisplayNameHasBeenSet; }
82 template <typename IntentDisplayNameT = Aws::String>
83 void SetIntentDisplayName(IntentDisplayNameT&& value) {
84 m_intentDisplayNameHasBeenSet = true;
85 m_intentDisplayName = std::forward<IntentDisplayNameT>(value);
86 }
87 template <typename IntentDisplayNameT = Aws::String>
88 IntentSummary& WithIntentDisplayName(IntentDisplayNameT&& value) {
89 SetIntentDisplayName(std::forward<IntentDisplayNameT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetDescription() const { return m_description; }
99 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
100 template <typename DescriptionT = Aws::String>
101 void SetDescription(DescriptionT&& value) {
102 m_descriptionHasBeenSet = true;
103 m_description = std::forward<DescriptionT>(value);
104 }
105 template <typename DescriptionT = Aws::String>
106 IntentSummary& WithDescription(DescriptionT&& value) {
107 SetDescription(std::forward<DescriptionT>(value));
108 return *this;
109 }
111
113
117 inline const Aws::String& GetParentIntentSignature() const { return m_parentIntentSignature; }
118 inline bool ParentIntentSignatureHasBeenSet() const { return m_parentIntentSignatureHasBeenSet; }
119 template <typename ParentIntentSignatureT = Aws::String>
120 void SetParentIntentSignature(ParentIntentSignatureT&& value) {
121 m_parentIntentSignatureHasBeenSet = true;
122 m_parentIntentSignature = std::forward<ParentIntentSignatureT>(value);
123 }
124 template <typename ParentIntentSignatureT = Aws::String>
125 IntentSummary& WithParentIntentSignature(ParentIntentSignatureT&& value) {
126 SetParentIntentSignature(std::forward<ParentIntentSignatureT>(value));
127 return *this;
128 }
130
132
136 inline const Aws::Vector<InputContext>& GetInputContexts() const { return m_inputContexts; }
137 inline bool InputContextsHasBeenSet() const { return m_inputContextsHasBeenSet; }
138 template <typename InputContextsT = Aws::Vector<InputContext>>
139 void SetInputContexts(InputContextsT&& value) {
140 m_inputContextsHasBeenSet = true;
141 m_inputContexts = std::forward<InputContextsT>(value);
142 }
143 template <typename InputContextsT = Aws::Vector<InputContext>>
144 IntentSummary& WithInputContexts(InputContextsT&& value) {
145 SetInputContexts(std::forward<InputContextsT>(value));
146 return *this;
147 }
148 template <typename InputContextsT = InputContext>
149 IntentSummary& AddInputContexts(InputContextsT&& value) {
150 m_inputContextsHasBeenSet = true;
151 m_inputContexts.emplace_back(std::forward<InputContextsT>(value));
152 return *this;
153 }
155
157
160 inline const Aws::Vector<OutputContext>& GetOutputContexts() const { return m_outputContexts; }
161 inline bool OutputContextsHasBeenSet() const { return m_outputContextsHasBeenSet; }
162 template <typename OutputContextsT = Aws::Vector<OutputContext>>
163 void SetOutputContexts(OutputContextsT&& value) {
164 m_outputContextsHasBeenSet = true;
165 m_outputContexts = std::forward<OutputContextsT>(value);
166 }
167 template <typename OutputContextsT = Aws::Vector<OutputContext>>
168 IntentSummary& WithOutputContexts(OutputContextsT&& value) {
169 SetOutputContexts(std::forward<OutputContextsT>(value));
170 return *this;
171 }
172 template <typename OutputContextsT = OutputContext>
173 IntentSummary& AddOutputContexts(OutputContextsT&& value) {
174 m_outputContextsHasBeenSet = true;
175 m_outputContexts.emplace_back(std::forward<OutputContextsT>(value));
176 return *this;
177 }
179
181
184 inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const { return m_lastUpdatedDateTime; }
185 inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; }
186 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
187 void SetLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
188 m_lastUpdatedDateTimeHasBeenSet = true;
189 m_lastUpdatedDateTime = std::forward<LastUpdatedDateTimeT>(value);
190 }
191 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
192 IntentSummary& WithLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
193 SetLastUpdatedDateTime(std::forward<LastUpdatedDateTimeT>(value));
194 return *this;
195 }
197 private:
198 Aws::String m_intentId;
199
200 Aws::String m_intentName;
201
202 Aws::String m_intentDisplayName;
203
204 Aws::String m_description;
205
206 Aws::String m_parentIntentSignature;
207
208 Aws::Vector<InputContext> m_inputContexts;
209
210 Aws::Vector<OutputContext> m_outputContexts;
211
212 Aws::Utils::DateTime m_lastUpdatedDateTime{};
213 bool m_intentIdHasBeenSet = false;
214 bool m_intentNameHasBeenSet = false;
215 bool m_intentDisplayNameHasBeenSet = false;
216 bool m_descriptionHasBeenSet = false;
217 bool m_parentIntentSignatureHasBeenSet = false;
218 bool m_inputContextsHasBeenSet = false;
219 bool m_outputContextsHasBeenSet = false;
220 bool m_lastUpdatedDateTimeHasBeenSet = false;
221};
222
223} // namespace Model
224} // namespace LexModelsV2
225} // namespace Aws
IntentSummary & WithParentIntentSignature(ParentIntentSignatureT &&value)
AWS_LEXMODELSV2_API IntentSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetIntentName() const
const Aws::String & GetIntentId() const
void SetDescription(DescriptionT &&value)
void SetIntentId(IntentIdT &&value)
void SetInputContexts(InputContextsT &&value)
const Aws::String & GetIntentDisplayName() const
IntentSummary & WithIntentDisplayName(IntentDisplayNameT &&value)
IntentSummary & AddInputContexts(InputContextsT &&value)
const Aws::Vector< OutputContext > & GetOutputContexts() const
IntentSummary & WithDescription(DescriptionT &&value)
AWS_LEXMODELSV2_API IntentSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
IntentSummary & WithLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
const Aws::String & GetDescription() const
void SetParentIntentSignature(ParentIntentSignatureT &&value)
void SetOutputContexts(OutputContextsT &&value)
void SetIntentDisplayName(IntentDisplayNameT &&value)
const Aws::Utils::DateTime & GetLastUpdatedDateTime() const
AWS_LEXMODELSV2_API IntentSummary()=default
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
IntentSummary & AddOutputContexts(OutputContextsT &&value)
const Aws::String & GetParentIntentSignature() const
const Aws::Vector< InputContext > & GetInputContexts() const
IntentSummary & WithIntentId(IntentIdT &&value)
IntentSummary & WithOutputContexts(OutputContextsT &&value)
IntentSummary & WithIntentName(IntentNameT &&value)
IntentSummary & WithInputContexts(InputContextsT &&value)
void SetIntentName(IntentNameT &&value)
void SetLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue