AWS SDK for C++

AWS SDK for C++ Version 1.11.782

Loading...
Searching...
No Matches
CreateBotVersionResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
12#include <aws/lexv2-models/model/BotStatus.h>
13#include <aws/lexv2-models/model/BotVersionLocaleDetails.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace LexModelsV2 {
27namespace Model {
29 public:
30 AWS_LEXMODELSV2_API CreateBotVersionResult() = default;
33
35
38 inline const Aws::String& GetBotId() const { return m_botId; }
39 template <typename BotIdT = Aws::String>
40 void SetBotId(BotIdT&& value) {
41 m_botIdHasBeenSet = true;
42 m_botId = std::forward<BotIdT>(value);
43 }
44 template <typename BotIdT = Aws::String>
46 SetBotId(std::forward<BotIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetDescription() const { return m_description; }
56 template <typename DescriptionT = Aws::String>
57 void SetDescription(DescriptionT&& value) {
58 m_descriptionHasBeenSet = true;
59 m_description = std::forward<DescriptionT>(value);
60 }
61 template <typename DescriptionT = Aws::String>
62 CreateBotVersionResult& WithDescription(DescriptionT&& value) {
63 SetDescription(std::forward<DescriptionT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetBotVersion() const { return m_botVersion; }
73 template <typename BotVersionT = Aws::String>
74 void SetBotVersion(BotVersionT&& value) {
75 m_botVersionHasBeenSet = true;
76 m_botVersion = std::forward<BotVersionT>(value);
77 }
78 template <typename BotVersionT = Aws::String>
79 CreateBotVersionResult& WithBotVersion(BotVersionT&& value) {
80 SetBotVersion(std::forward<BotVersionT>(value));
81 return *this;
82 }
84
86
90 return m_botVersionLocaleSpecification;
91 }
92 template <typename BotVersionLocaleSpecificationT = Aws::Map<Aws::String, BotVersionLocaleDetails>>
93 void SetBotVersionLocaleSpecification(BotVersionLocaleSpecificationT&& value) {
94 m_botVersionLocaleSpecificationHasBeenSet = true;
95 m_botVersionLocaleSpecification = std::forward<BotVersionLocaleSpecificationT>(value);
96 }
97 template <typename BotVersionLocaleSpecificationT = Aws::Map<Aws::String, BotVersionLocaleDetails>>
98 CreateBotVersionResult& WithBotVersionLocaleSpecification(BotVersionLocaleSpecificationT&& value) {
99 SetBotVersionLocaleSpecification(std::forward<BotVersionLocaleSpecificationT>(value));
100 return *this;
101 }
102 template <typename BotVersionLocaleSpecificationKeyT = Aws::String,
103 typename BotVersionLocaleSpecificationValueT = BotVersionLocaleDetails>
104 CreateBotVersionResult& AddBotVersionLocaleSpecification(BotVersionLocaleSpecificationKeyT&& key,
105 BotVersionLocaleSpecificationValueT&& value) {
106 m_botVersionLocaleSpecificationHasBeenSet = true;
107 m_botVersionLocaleSpecification.emplace(std::forward<BotVersionLocaleSpecificationKeyT>(key),
108 std::forward<BotVersionLocaleSpecificationValueT>(value));
109 return *this;
110 }
112
114
120 inline BotStatus GetBotStatus() const { return m_botStatus; }
121 inline void SetBotStatus(BotStatus value) {
122 m_botStatusHasBeenSet = true;
123 m_botStatus = value;
124 }
126 SetBotStatus(value);
127 return *this;
128 }
130
132
135 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
136 template <typename CreationDateTimeT = Aws::Utils::DateTime>
137 void SetCreationDateTime(CreationDateTimeT&& value) {
138 m_creationDateTimeHasBeenSet = true;
139 m_creationDateTime = std::forward<CreationDateTimeT>(value);
140 }
141 template <typename CreationDateTimeT = Aws::Utils::DateTime>
142 CreateBotVersionResult& WithCreationDateTime(CreationDateTimeT&& value) {
143 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
144 return *this;
145 }
147
149
150 inline const Aws::String& GetRequestId() const { return m_requestId; }
151 template <typename RequestIdT = Aws::String>
152 void SetRequestId(RequestIdT&& value) {
153 m_requestIdHasBeenSet = true;
154 m_requestId = std::forward<RequestIdT>(value);
155 }
156 template <typename RequestIdT = Aws::String>
158 SetRequestId(std::forward<RequestIdT>(value));
159 return *this;
160 }
162 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
163
164 private:
165 Aws::String m_botId;
166
167 Aws::String m_description;
168
169 Aws::String m_botVersion;
170
171 Aws::Map<Aws::String, BotVersionLocaleDetails> m_botVersionLocaleSpecification;
172
173 BotStatus m_botStatus{BotStatus::NOT_SET};
174
175 Aws::Utils::DateTime m_creationDateTime{};
176
177 Aws::String m_requestId;
178 Aws::Http::HttpResponseCode m_HttpResponseCode;
179 bool m_botIdHasBeenSet = false;
180 bool m_descriptionHasBeenSet = false;
181 bool m_botVersionHasBeenSet = false;
182 bool m_botVersionLocaleSpecificationHasBeenSet = false;
183 bool m_botStatusHasBeenSet = false;
184 bool m_creationDateTimeHasBeenSet = false;
185 bool m_requestIdHasBeenSet = false;
186};
187
188} // namespace Model
189} // namespace LexModelsV2
190} // namespace Aws
const Aws::Utils::DateTime & GetCreationDateTime() const
const Aws::Map< Aws::String, BotVersionLocaleDetails > & GetBotVersionLocaleSpecification() const
AWS_LEXMODELSV2_API CreateBotVersionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateBotVersionResult & WithBotVersion(BotVersionT &&value)
CreateBotVersionResult & WithDescription(DescriptionT &&value)
CreateBotVersionResult & AddBotVersionLocaleSpecification(BotVersionLocaleSpecificationKeyT &&key, BotVersionLocaleSpecificationValueT &&value)
CreateBotVersionResult & WithBotId(BotIdT &&value)
CreateBotVersionResult & WithCreationDateTime(CreationDateTimeT &&value)
AWS_LEXMODELSV2_API CreateBotVersionResult()=default
AWS_LEXMODELSV2_API CreateBotVersionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetBotVersionLocaleSpecification(BotVersionLocaleSpecificationT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
CreateBotVersionResult & WithRequestId(RequestIdT &&value)
CreateBotVersionResult & WithBotVersionLocaleSpecification(BotVersionLocaleSpecificationT &&value)
CreateBotVersionResult & WithBotStatus(BotStatus value)
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