AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
ListIntentsResult.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/IntentSummary.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 ListIntentsResult() = 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 ListIntentsResult& 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 ListIntentsResult& 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 ListIntentsResult& WithLocaleId(LocaleIdT&& value) {
78 SetLocaleId(std::forward<LocaleIdT>(value));
79 return *this;
80 }
82
84
91 inline const Aws::Vector<IntentSummary>& GetIntentSummaries() const { return m_intentSummaries; }
92 template <typename IntentSummariesT = Aws::Vector<IntentSummary>>
93 void SetIntentSummaries(IntentSummariesT&& value) {
94 m_intentSummariesHasBeenSet = true;
95 m_intentSummaries = std::forward<IntentSummariesT>(value);
96 }
97 template <typename IntentSummariesT = Aws::Vector<IntentSummary>>
98 ListIntentsResult& WithIntentSummaries(IntentSummariesT&& value) {
99 SetIntentSummaries(std::forward<IntentSummariesT>(value));
100 return *this;
101 }
102 template <typename IntentSummariesT = IntentSummary>
103 ListIntentsResult& AddIntentSummaries(IntentSummariesT&& value) {
104 m_intentSummariesHasBeenSet = true;
105 m_intentSummaries.emplace_back(std::forward<IntentSummariesT>(value));
106 return *this;
107 }
109
111
117 inline const Aws::String& GetNextToken() const { return m_nextToken; }
118 template <typename NextTokenT = Aws::String>
119 void SetNextToken(NextTokenT&& value) {
120 m_nextTokenHasBeenSet = true;
121 m_nextToken = std::forward<NextTokenT>(value);
122 }
123 template <typename NextTokenT = Aws::String>
124 ListIntentsResult& WithNextToken(NextTokenT&& value) {
125 SetNextToken(std::forward<NextTokenT>(value));
126 return *this;
127 }
129
131
132 inline const Aws::String& GetRequestId() const { return m_requestId; }
133 template <typename RequestIdT = Aws::String>
134 void SetRequestId(RequestIdT&& value) {
135 m_requestIdHasBeenSet = true;
136 m_requestId = std::forward<RequestIdT>(value);
137 }
138 template <typename RequestIdT = Aws::String>
139 ListIntentsResult& WithRequestId(RequestIdT&& value) {
140 SetRequestId(std::forward<RequestIdT>(value));
141 return *this;
142 }
144 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
145
146 private:
147 Aws::String m_botId;
148
149 Aws::String m_botVersion;
150
151 Aws::String m_localeId;
152
153 Aws::Vector<IntentSummary> m_intentSummaries;
154
155 Aws::String m_nextToken;
156
157 Aws::String m_requestId;
158 Aws::Http::HttpResponseCode m_HttpResponseCode;
159 bool m_botIdHasBeenSet = false;
160 bool m_botVersionHasBeenSet = false;
161 bool m_localeIdHasBeenSet = false;
162 bool m_intentSummariesHasBeenSet = false;
163 bool m_nextTokenHasBeenSet = false;
164 bool m_requestIdHasBeenSet = false;
165};
166
167} // namespace Model
168} // namespace LexModelsV2
169} // namespace Aws
void SetIntentSummaries(IntentSummariesT &&value)
ListIntentsResult & WithLocaleId(LocaleIdT &&value)
ListIntentsResult & WithNextToken(NextTokenT &&value)
ListIntentsResult & WithBotId(BotIdT &&value)
const Aws::Vector< IntentSummary > & GetIntentSummaries() const
ListIntentsResult & WithIntentSummaries(IntentSummariesT &&value)
AWS_LEXMODELSV2_API ListIntentsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListIntentsResult & AddIntentSummaries(IntentSummariesT &&value)
ListIntentsResult & WithBotVersion(BotVersionT &&value)
AWS_LEXMODELSV2_API ListIntentsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListIntentsResult & WithRequestId(RequestIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_LEXMODELSV2_API ListIntentsResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue