AWS SDK for C++

AWS SDK for C++ Version 1.11.785

Loading...
Searching...
No Matches
GetImportedModelResult.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/model/CustomModelUnits.h>
9#include <aws/bedrock/model/ModelDataSource.h>
10#include <aws/core/http/HttpResponse.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSString.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 Bedrock {
26namespace Model {
28 public:
29 AWS_BEDROCK_API GetImportedModelResult() = default;
32
34
37 inline const Aws::String& GetModelArn() const { return m_modelArn; }
38 template <typename ModelArnT = Aws::String>
39 void SetModelArn(ModelArnT&& value) {
40 m_modelArnHasBeenSet = true;
41 m_modelArn = std::forward<ModelArnT>(value);
42 }
43 template <typename ModelArnT = Aws::String>
45 SetModelArn(std::forward<ModelArnT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetModelName() const { return m_modelName; }
55 template <typename ModelNameT = Aws::String>
56 void SetModelName(ModelNameT&& value) {
57 m_modelNameHasBeenSet = true;
58 m_modelName = std::forward<ModelNameT>(value);
59 }
60 template <typename ModelNameT = Aws::String>
62 SetModelName(std::forward<ModelNameT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetJobName() const { return m_jobName; }
72 template <typename JobNameT = Aws::String>
73 void SetJobName(JobNameT&& value) {
74 m_jobNameHasBeenSet = true;
75 m_jobName = std::forward<JobNameT>(value);
76 }
77 template <typename JobNameT = Aws::String>
79 SetJobName(std::forward<JobNameT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::String& GetJobArn() const { return m_jobArn; }
89 template <typename JobArnT = Aws::String>
90 void SetJobArn(JobArnT&& value) {
91 m_jobArnHasBeenSet = true;
92 m_jobArn = std::forward<JobArnT>(value);
93 }
94 template <typename JobArnT = Aws::String>
96 SetJobArn(std::forward<JobArnT>(value));
97 return *this;
98 }
100
102
105 inline const ModelDataSource& GetModelDataSource() const { return m_modelDataSource; }
106 template <typename ModelDataSourceT = ModelDataSource>
108 m_modelDataSourceHasBeenSet = true;
109 m_modelDataSource = std::forward<ModelDataSourceT>(value);
110 }
111 template <typename ModelDataSourceT = ModelDataSource>
113 SetModelDataSource(std::forward<ModelDataSourceT>(value));
114 return *this;
115 }
117
119
122 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
123 template <typename CreationTimeT = Aws::Utils::DateTime>
125 m_creationTimeHasBeenSet = true;
126 m_creationTime = std::forward<CreationTimeT>(value);
127 }
128 template <typename CreationTimeT = Aws::Utils::DateTime>
130 SetCreationTime(std::forward<CreationTimeT>(value));
131 return *this;
132 }
134
136
139 inline const Aws::String& GetModelArchitecture() const { return m_modelArchitecture; }
140 template <typename ModelArchitectureT = Aws::String>
142 m_modelArchitectureHasBeenSet = true;
143 m_modelArchitecture = std::forward<ModelArchitectureT>(value);
144 }
145 template <typename ModelArchitectureT = Aws::String>
147 SetModelArchitecture(std::forward<ModelArchitectureT>(value));
148 return *this;
149 }
151
153
156 inline const Aws::String& GetModelKmsKeyArn() const { return m_modelKmsKeyArn; }
157 template <typename ModelKmsKeyArnT = Aws::String>
159 m_modelKmsKeyArnHasBeenSet = true;
160 m_modelKmsKeyArn = std::forward<ModelKmsKeyArnT>(value);
161 }
162 template <typename ModelKmsKeyArnT = Aws::String>
164 SetModelKmsKeyArn(std::forward<ModelKmsKeyArnT>(value));
165 return *this;
166 }
168
170
173 inline bool GetInstructSupported() const { return m_instructSupported; }
174 inline void SetInstructSupported(bool value) {
175 m_instructSupportedHasBeenSet = true;
176 m_instructSupported = value;
177 }
180 return *this;
181 }
183
185
189 inline const CustomModelUnits& GetCustomModelUnits() const { return m_customModelUnits; }
190 template <typename CustomModelUnitsT = CustomModelUnits>
192 m_customModelUnitsHasBeenSet = true;
193 m_customModelUnits = std::forward<CustomModelUnitsT>(value);
194 }
195 template <typename CustomModelUnitsT = CustomModelUnits>
197 SetCustomModelUnits(std::forward<CustomModelUnitsT>(value));
198 return *this;
199 }
201
203
204 inline const Aws::String& GetRequestId() const { return m_requestId; }
205 template <typename RequestIdT = Aws::String>
206 void SetRequestId(RequestIdT&& value) {
207 m_requestIdHasBeenSet = true;
208 m_requestId = std::forward<RequestIdT>(value);
209 }
210 template <typename RequestIdT = Aws::String>
212 SetRequestId(std::forward<RequestIdT>(value));
213 return *this;
214 }
216 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
217
218 private:
219 Aws::String m_modelArn;
220
221 Aws::String m_modelName;
222
223 Aws::String m_jobName;
224
225 Aws::String m_jobArn;
226
227 ModelDataSource m_modelDataSource;
228
229 Aws::Utils::DateTime m_creationTime{};
230
231 Aws::String m_modelArchitecture;
232
233 Aws::String m_modelKmsKeyArn;
234
235 bool m_instructSupported{false};
236
237 CustomModelUnits m_customModelUnits;
238
239 Aws::String m_requestId;
240 Aws::Http::HttpResponseCode m_HttpResponseCode;
241 bool m_modelArnHasBeenSet = false;
242 bool m_modelNameHasBeenSet = false;
243 bool m_jobNameHasBeenSet = false;
244 bool m_jobArnHasBeenSet = false;
245 bool m_modelDataSourceHasBeenSet = false;
246 bool m_creationTimeHasBeenSet = false;
247 bool m_modelArchitectureHasBeenSet = false;
248 bool m_modelKmsKeyArnHasBeenSet = false;
249 bool m_instructSupportedHasBeenSet = false;
250 bool m_customModelUnitsHasBeenSet = false;
251 bool m_requestIdHasBeenSet = false;
252};
253
254} // namespace Model
255} // namespace Bedrock
256} // namespace Aws
AWS_BEDROCK_API GetImportedModelResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetImportedModelResult & WithModelKmsKeyArn(ModelKmsKeyArnT &&value)
AWS_BEDROCK_API GetImportedModelResult()=default
GetImportedModelResult & WithCustomModelUnits(CustomModelUnitsT &&value)
GetImportedModelResult & WithModelName(ModelNameT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
GetImportedModelResult & WithJobArn(JobArnT &&value)
AWS_BEDROCK_API GetImportedModelResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetCustomModelUnits(CustomModelUnitsT &&value)
GetImportedModelResult & WithRequestId(RequestIdT &&value)
const CustomModelUnits & GetCustomModelUnits() const
GetImportedModelResult & WithCreationTime(CreationTimeT &&value)
GetImportedModelResult & WithModelArchitecture(ModelArchitectureT &&value)
GetImportedModelResult & WithJobName(JobNameT &&value)
void SetModelArchitecture(ModelArchitectureT &&value)
const ModelDataSource & GetModelDataSource() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetImportedModelResult & WithInstructSupported(bool value)
GetImportedModelResult & WithModelArn(ModelArnT &&value)
GetImportedModelResult & WithModelDataSource(ModelDataSourceT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue