AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetProvisionedModelThroughputResult.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/model/CommitmentDuration.h>
9#include <aws/bedrock/model/ProvisionedModelStatus.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 GetProvisionedModelThroughputResult() = default;
32
34
37 inline int GetModelUnits() const { return m_modelUnits; }
38 inline void SetModelUnits(int value) {
39 m_modelUnitsHasBeenSet = true;
40 m_modelUnits = value;
41 }
43 SetModelUnits(value);
44 return *this;
45 }
47
49
53 inline int GetDesiredModelUnits() const { return m_desiredModelUnits; }
54 inline void SetDesiredModelUnits(int value) {
55 m_desiredModelUnitsHasBeenSet = true;
56 m_desiredModelUnits = value;
57 }
60 return *this;
61 }
63
65
68 inline const Aws::String& GetProvisionedModelName() const { return m_provisionedModelName; }
69 template <typename ProvisionedModelNameT = Aws::String>
71 m_provisionedModelNameHasBeenSet = true;
72 m_provisionedModelName = std::forward<ProvisionedModelNameT>(value);
73 }
74 template <typename ProvisionedModelNameT = Aws::String>
76 SetProvisionedModelName(std::forward<ProvisionedModelNameT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::String& GetProvisionedModelArn() const { return m_provisionedModelArn; }
86 template <typename ProvisionedModelArnT = Aws::String>
88 m_provisionedModelArnHasBeenSet = true;
89 m_provisionedModelArn = std::forward<ProvisionedModelArnT>(value);
90 }
91 template <typename ProvisionedModelArnT = Aws::String>
93 SetProvisionedModelArn(std::forward<ProvisionedModelArnT>(value));
94 return *this;
95 }
97
99
103 inline const Aws::String& GetModelArn() const { return m_modelArn; }
104 template <typename ModelArnT = Aws::String>
105 void SetModelArn(ModelArnT&& value) {
106 m_modelArnHasBeenSet = true;
107 m_modelArn = std::forward<ModelArnT>(value);
108 }
109 template <typename ModelArnT = Aws::String>
111 SetModelArn(std::forward<ModelArnT>(value));
112 return *this;
113 }
115
117
122 inline const Aws::String& GetDesiredModelArn() const { return m_desiredModelArn; }
123 template <typename DesiredModelArnT = Aws::String>
125 m_desiredModelArnHasBeenSet = true;
126 m_desiredModelArn = std::forward<DesiredModelArnT>(value);
127 }
128 template <typename DesiredModelArnT = Aws::String>
130 SetDesiredModelArn(std::forward<DesiredModelArnT>(value));
131 return *this;
132 }
134
136
141 inline const Aws::String& GetFoundationModelArn() const { return m_foundationModelArn; }
142 template <typename FoundationModelArnT = Aws::String>
144 m_foundationModelArnHasBeenSet = true;
145 m_foundationModelArn = std::forward<FoundationModelArnT>(value);
146 }
147 template <typename FoundationModelArnT = Aws::String>
149 SetFoundationModelArn(std::forward<FoundationModelArnT>(value));
150 return *this;
151 }
153
155
158 inline ProvisionedModelStatus GetStatus() const { return m_status; }
160 m_statusHasBeenSet = true;
161 m_status = value;
162 }
164 SetStatus(value);
165 return *this;
166 }
168
170
173 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
174 template <typename CreationTimeT = Aws::Utils::DateTime>
176 m_creationTimeHasBeenSet = true;
177 m_creationTime = std::forward<CreationTimeT>(value);
178 }
179 template <typename CreationTimeT = Aws::Utils::DateTime>
181 SetCreationTime(std::forward<CreationTimeT>(value));
182 return *this;
183 }
185
187
191 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
192 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
194 m_lastModifiedTimeHasBeenSet = true;
195 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
196 }
197 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
199 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
200 return *this;
201 }
203
205
209 inline const Aws::String& GetFailureMessage() const { return m_failureMessage; }
210 template <typename FailureMessageT = Aws::String>
212 m_failureMessageHasBeenSet = true;
213 m_failureMessage = std::forward<FailureMessageT>(value);
214 }
215 template <typename FailureMessageT = Aws::String>
217 SetFailureMessage(std::forward<FailureMessageT>(value));
218 return *this;
219 }
221
223
226 inline CommitmentDuration GetCommitmentDuration() const { return m_commitmentDuration; }
228 m_commitmentDurationHasBeenSet = true;
229 m_commitmentDuration = value;
230 }
233 return *this;
234 }
236
238
242 inline const Aws::Utils::DateTime& GetCommitmentExpirationTime() const { return m_commitmentExpirationTime; }
243 template <typename CommitmentExpirationTimeT = Aws::Utils::DateTime>
245 m_commitmentExpirationTimeHasBeenSet = true;
246 m_commitmentExpirationTime = std::forward<CommitmentExpirationTimeT>(value);
247 }
248 template <typename CommitmentExpirationTimeT = Aws::Utils::DateTime>
250 SetCommitmentExpirationTime(std::forward<CommitmentExpirationTimeT>(value));
251 return *this;
252 }
254
256
257 inline const Aws::String& GetRequestId() const { return m_requestId; }
258 template <typename RequestIdT = Aws::String>
259 void SetRequestId(RequestIdT&& value) {
260 m_requestIdHasBeenSet = true;
261 m_requestId = std::forward<RequestIdT>(value);
262 }
263 template <typename RequestIdT = Aws::String>
265 SetRequestId(std::forward<RequestIdT>(value));
266 return *this;
267 }
269 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
270
271 private:
272 int m_modelUnits{0};
273
274 int m_desiredModelUnits{0};
275
276 Aws::String m_provisionedModelName;
277
278 Aws::String m_provisionedModelArn;
279
280 Aws::String m_modelArn;
281
282 Aws::String m_desiredModelArn;
283
284 Aws::String m_foundationModelArn;
285
287
288 Aws::Utils::DateTime m_creationTime{};
289
290 Aws::Utils::DateTime m_lastModifiedTime{};
291
292 Aws::String m_failureMessage;
293
295
296 Aws::Utils::DateTime m_commitmentExpirationTime{};
297
298 Aws::String m_requestId;
299 Aws::Http::HttpResponseCode m_HttpResponseCode;
300 bool m_modelUnitsHasBeenSet = false;
301 bool m_desiredModelUnitsHasBeenSet = false;
302 bool m_provisionedModelNameHasBeenSet = false;
303 bool m_provisionedModelArnHasBeenSet = false;
304 bool m_modelArnHasBeenSet = false;
305 bool m_desiredModelArnHasBeenSet = false;
306 bool m_foundationModelArnHasBeenSet = false;
307 bool m_statusHasBeenSet = false;
308 bool m_creationTimeHasBeenSet = false;
309 bool m_lastModifiedTimeHasBeenSet = false;
310 bool m_failureMessageHasBeenSet = false;
311 bool m_commitmentDurationHasBeenSet = false;
312 bool m_commitmentExpirationTimeHasBeenSet = false;
313 bool m_requestIdHasBeenSet = false;
314};
315
316} // namespace Model
317} // namespace Bedrock
318} // namespace Aws
GetProvisionedModelThroughputResult & WithProvisionedModelName(ProvisionedModelNameT &&value)
GetProvisionedModelThroughputResult & WithRequestId(RequestIdT &&value)
GetProvisionedModelThroughputResult & WithDesiredModelArn(DesiredModelArnT &&value)
GetProvisionedModelThroughputResult & WithModelArn(ModelArnT &&value)
GetProvisionedModelThroughputResult & WithFoundationModelArn(FoundationModelArnT &&value)
GetProvisionedModelThroughputResult & WithProvisionedModelArn(ProvisionedModelArnT &&value)
AWS_BEDROCK_API GetProvisionedModelThroughputResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetProvisionedModelThroughputResult & WithCommitmentDuration(CommitmentDuration value)
GetProvisionedModelThroughputResult & WithCreationTime(CreationTimeT &&value)
GetProvisionedModelThroughputResult & WithDesiredModelUnits(int value)
GetProvisionedModelThroughputResult & WithLastModifiedTime(LastModifiedTimeT &&value)
GetProvisionedModelThroughputResult & WithCommitmentExpirationTime(CommitmentExpirationTimeT &&value)
AWS_BEDROCK_API GetProvisionedModelThroughputResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetProvisionedModelThroughputResult & WithStatus(ProvisionedModelStatus value)
GetProvisionedModelThroughputResult & WithFailureMessage(FailureMessageT &&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