AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
ListSlotsResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.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/SlotSummary.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace LexModelsV2 {
25namespace Model {
27 public:
28 AWS_LEXMODELSV2_API ListSlotsResult() = default;
31
33
36 inline const Aws::String& GetBotId() const { return m_botId; }
37 template <typename BotIdT = Aws::String>
38 void SetBotId(BotIdT&& value) {
39 m_botIdHasBeenSet = true;
40 m_botId = std::forward<BotIdT>(value);
41 }
42 template <typename BotIdT = Aws::String>
43 ListSlotsResult& WithBotId(BotIdT&& value) {
44 SetBotId(std::forward<BotIdT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetBotVersion() const { return m_botVersion; }
54 template <typename BotVersionT = Aws::String>
55 void SetBotVersion(BotVersionT&& value) {
56 m_botVersionHasBeenSet = true;
57 m_botVersion = std::forward<BotVersionT>(value);
58 }
59 template <typename BotVersionT = Aws::String>
60 ListSlotsResult& WithBotVersion(BotVersionT&& value) {
61 SetBotVersion(std::forward<BotVersionT>(value));
62 return *this;
63 }
65
67
70 inline const Aws::String& GetLocaleId() const { return m_localeId; }
71 template <typename LocaleIdT = Aws::String>
72 void SetLocaleId(LocaleIdT&& value) {
73 m_localeIdHasBeenSet = true;
74 m_localeId = std::forward<LocaleIdT>(value);
75 }
76 template <typename LocaleIdT = Aws::String>
77 ListSlotsResult& WithLocaleId(LocaleIdT&& value) {
78 SetLocaleId(std::forward<LocaleIdT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::String& GetIntentId() const { return m_intentId; }
88 template <typename IntentIdT = Aws::String>
89 void SetIntentId(IntentIdT&& value) {
90 m_intentIdHasBeenSet = true;
91 m_intentId = std::forward<IntentIdT>(value);
92 }
93 template <typename IntentIdT = Aws::String>
94 ListSlotsResult& WithIntentId(IntentIdT&& value) {
95 SetIntentId(std::forward<IntentIdT>(value));
96 return *this;
97 }
99
101
108 inline const Aws::Vector<SlotSummary>& GetSlotSummaries() const { return m_slotSummaries; }
109 template <typename SlotSummariesT = Aws::Vector<SlotSummary>>
110 void SetSlotSummaries(SlotSummariesT&& value) {
111 m_slotSummariesHasBeenSet = true;
112 m_slotSummaries = std::forward<SlotSummariesT>(value);
113 }
114 template <typename SlotSummariesT = Aws::Vector<SlotSummary>>
115 ListSlotsResult& WithSlotSummaries(SlotSummariesT&& value) {
116 SetSlotSummaries(std::forward<SlotSummariesT>(value));
117 return *this;
118 }
119 template <typename SlotSummariesT = SlotSummary>
120 ListSlotsResult& AddSlotSummaries(SlotSummariesT&& value) {
121 m_slotSummariesHasBeenSet = true;
122 m_slotSummaries.emplace_back(std::forward<SlotSummariesT>(value));
123 return *this;
124 }
126
128
134 inline const Aws::String& GetNextToken() const { return m_nextToken; }
135 template <typename NextTokenT = Aws::String>
136 void SetNextToken(NextTokenT&& value) {
137 m_nextTokenHasBeenSet = true;
138 m_nextToken = std::forward<NextTokenT>(value);
139 }
140 template <typename NextTokenT = Aws::String>
141 ListSlotsResult& WithNextToken(NextTokenT&& value) {
142 SetNextToken(std::forward<NextTokenT>(value));
143 return *this;
144 }
146
148
149 inline const Aws::String& GetRequestId() const { return m_requestId; }
150 template <typename RequestIdT = Aws::String>
151 void SetRequestId(RequestIdT&& value) {
152 m_requestIdHasBeenSet = true;
153 m_requestId = std::forward<RequestIdT>(value);
154 }
155 template <typename RequestIdT = Aws::String>
156 ListSlotsResult& WithRequestId(RequestIdT&& value) {
157 SetRequestId(std::forward<RequestIdT>(value));
158 return *this;
159 }
161 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
162
163 private:
164 Aws::String m_botId;
165
166 Aws::String m_botVersion;
167
168 Aws::String m_localeId;
169
170 Aws::String m_intentId;
171
172 Aws::Vector<SlotSummary> m_slotSummaries;
173
174 Aws::String m_nextToken;
175
176 Aws::String m_requestId;
177 Aws::Http::HttpResponseCode m_HttpResponseCode;
178 bool m_botIdHasBeenSet = false;
179 bool m_botVersionHasBeenSet = false;
180 bool m_localeIdHasBeenSet = false;
181 bool m_intentIdHasBeenSet = false;
182 bool m_slotSummariesHasBeenSet = false;
183 bool m_nextTokenHasBeenSet = false;
184 bool m_requestIdHasBeenSet = false;
185};
186
187} // namespace Model
188} // namespace LexModelsV2
189} // namespace Aws
AWS_LEXMODELSV2_API ListSlotsResult()=default
ListSlotsResult & AddSlotSummaries(SlotSummariesT &&value)
const Aws::Vector< SlotSummary > & GetSlotSummaries() const
void SetSlotSummaries(SlotSummariesT &&value)
ListSlotsResult & WithRequestId(RequestIdT &&value)
const Aws::String & GetBotId() const
AWS_LEXMODELSV2_API ListSlotsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetBotVersion(BotVersionT &&value)
const Aws::String & GetNextToken() const
AWS_LEXMODELSV2_API ListSlotsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::String & GetLocaleId() const
const Aws::String & GetBotVersion() const
ListSlotsResult & WithLocaleId(LocaleIdT &&value)
ListSlotsResult & WithBotId(BotIdT &&value)
ListSlotsResult & WithNextToken(NextTokenT &&value)
const Aws::String & GetRequestId() const
const Aws::String & GetIntentId() const
ListSlotsResult & WithBotVersion(BotVersionT &&value)
ListSlotsResult & WithSlotSummaries(SlotSummariesT &&value)
ListSlotsResult & WithIntentId(IntentIdT &&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