AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
CreateBotVersionResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
11#include <aws/lexv2-models/model/BotStatus.h>
12#include <aws/lexv2-models/model/BotVersionLocaleDetails.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace LexModelsV2 {
26namespace Model {
28 public:
29 AWS_LEXMODELSV2_API CreateBotVersionResult() = default;
32
34
37 inline const Aws::String& GetBotId() const { return m_botId; }
38 template <typename BotIdT = Aws::String>
39 void SetBotId(BotIdT&& value) {
40 m_botIdHasBeenSet = true;
41 m_botId = std::forward<BotIdT>(value);
42 }
43 template <typename BotIdT = Aws::String>
45 SetBotId(std::forward<BotIdT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetDescription() const { return m_description; }
55 template <typename DescriptionT = Aws::String>
56 void SetDescription(DescriptionT&& value) {
57 m_descriptionHasBeenSet = true;
58 m_description = std::forward<DescriptionT>(value);
59 }
60 template <typename DescriptionT = Aws::String>
61 CreateBotVersionResult& WithDescription(DescriptionT&& value) {
62 SetDescription(std::forward<DescriptionT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetBotVersion() const { return m_botVersion; }
72 template <typename BotVersionT = Aws::String>
73 void SetBotVersion(BotVersionT&& value) {
74 m_botVersionHasBeenSet = true;
75 m_botVersion = std::forward<BotVersionT>(value);
76 }
77 template <typename BotVersionT = Aws::String>
78 CreateBotVersionResult& WithBotVersion(BotVersionT&& value) {
79 SetBotVersion(std::forward<BotVersionT>(value));
80 return *this;
81 }
83
85
89 return m_botVersionLocaleSpecification;
90 }
91 template <typename BotVersionLocaleSpecificationT = Aws::Map<Aws::String, BotVersionLocaleDetails>>
92 void SetBotVersionLocaleSpecification(BotVersionLocaleSpecificationT&& value) {
93 m_botVersionLocaleSpecificationHasBeenSet = true;
94 m_botVersionLocaleSpecification = std::forward<BotVersionLocaleSpecificationT>(value);
95 }
96 template <typename BotVersionLocaleSpecificationT = Aws::Map<Aws::String, BotVersionLocaleDetails>>
97 CreateBotVersionResult& WithBotVersionLocaleSpecification(BotVersionLocaleSpecificationT&& value) {
98 SetBotVersionLocaleSpecification(std::forward<BotVersionLocaleSpecificationT>(value));
99 return *this;
100 }
101 template <typename BotVersionLocaleSpecificationKeyT = Aws::String,
102 typename BotVersionLocaleSpecificationValueT = BotVersionLocaleDetails>
103 CreateBotVersionResult& AddBotVersionLocaleSpecification(BotVersionLocaleSpecificationKeyT&& key,
104 BotVersionLocaleSpecificationValueT&& value) {
105 m_botVersionLocaleSpecificationHasBeenSet = true;
106 m_botVersionLocaleSpecification.emplace(std::forward<BotVersionLocaleSpecificationKeyT>(key),
107 std::forward<BotVersionLocaleSpecificationValueT>(value));
108 return *this;
109 }
111
113
119 inline BotStatus GetBotStatus() const { return m_botStatus; }
120 inline void SetBotStatus(BotStatus value) {
121 m_botStatusHasBeenSet = true;
122 m_botStatus = value;
123 }
125 SetBotStatus(value);
126 return *this;
127 }
129
131
134 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
135 template <typename CreationDateTimeT = Aws::Utils::DateTime>
136 void SetCreationDateTime(CreationDateTimeT&& value) {
137 m_creationDateTimeHasBeenSet = true;
138 m_creationDateTime = std::forward<CreationDateTimeT>(value);
139 }
140 template <typename CreationDateTimeT = Aws::Utils::DateTime>
141 CreateBotVersionResult& WithCreationDateTime(CreationDateTimeT&& value) {
142 SetCreationDateTime(std::forward<CreationDateTimeT>(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>
157 SetRequestId(std::forward<RequestIdT>(value));
158 return *this;
159 }
161 private:
162 Aws::String m_botId;
163
164 Aws::String m_description;
165
166 Aws::String m_botVersion;
167
168 Aws::Map<Aws::String, BotVersionLocaleDetails> m_botVersionLocaleSpecification;
169
170 BotStatus m_botStatus{BotStatus::NOT_SET};
171
172 Aws::Utils::DateTime m_creationDateTime{};
173
174 Aws::String m_requestId;
175 bool m_botIdHasBeenSet = false;
176 bool m_descriptionHasBeenSet = false;
177 bool m_botVersionHasBeenSet = false;
178 bool m_botVersionLocaleSpecificationHasBeenSet = false;
179 bool m_botStatusHasBeenSet = false;
180 bool m_creationDateTimeHasBeenSet = false;
181 bool m_requestIdHasBeenSet = false;
182};
183
184} // namespace Model
185} // namespace LexModelsV2
186} // 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)
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