AWS SDK for C++

AWS SDK for C++ Version 1.11.742

Loading...
Searching...
No Matches
ProvisionedModelSummary.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/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Bedrock {
23namespace Model {
24
34 public:
35 AWS_BEDROCK_API ProvisionedModelSummary() = default;
38 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetProvisionedModelName() const { return m_provisionedModelName; }
45 inline bool ProvisionedModelNameHasBeenSet() const { return m_provisionedModelNameHasBeenSet; }
46 template <typename ProvisionedModelNameT = Aws::String>
48 m_provisionedModelNameHasBeenSet = true;
49 m_provisionedModelName = std::forward<ProvisionedModelNameT>(value);
50 }
51 template <typename ProvisionedModelNameT = Aws::String>
53 SetProvisionedModelName(std::forward<ProvisionedModelNameT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetProvisionedModelArn() const { return m_provisionedModelArn; }
63 inline bool ProvisionedModelArnHasBeenSet() const { return m_provisionedModelArnHasBeenSet; }
64 template <typename ProvisionedModelArnT = Aws::String>
66 m_provisionedModelArnHasBeenSet = true;
67 m_provisionedModelArn = std::forward<ProvisionedModelArnT>(value);
68 }
69 template <typename ProvisionedModelArnT = Aws::String>
71 SetProvisionedModelArn(std::forward<ProvisionedModelArnT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::String& GetModelArn() const { return m_modelArn; }
82 inline bool ModelArnHasBeenSet() const { return m_modelArnHasBeenSet; }
83 template <typename ModelArnT = Aws::String>
84 void SetModelArn(ModelArnT&& value) {
85 m_modelArnHasBeenSet = true;
86 m_modelArn = std::forward<ModelArnT>(value);
87 }
88 template <typename ModelArnT = Aws::String>
90 SetModelArn(std::forward<ModelArnT>(value));
91 return *this;
92 }
94
96
101 inline const Aws::String& GetDesiredModelArn() const { return m_desiredModelArn; }
102 inline bool DesiredModelArnHasBeenSet() const { return m_desiredModelArnHasBeenSet; }
103 template <typename DesiredModelArnT = Aws::String>
105 m_desiredModelArnHasBeenSet = true;
106 m_desiredModelArn = std::forward<DesiredModelArnT>(value);
107 }
108 template <typename DesiredModelArnT = Aws::String>
110 SetDesiredModelArn(std::forward<DesiredModelArnT>(value));
111 return *this;
112 }
114
116
121 inline const Aws::String& GetFoundationModelArn() const { return m_foundationModelArn; }
122 inline bool FoundationModelArnHasBeenSet() const { return m_foundationModelArnHasBeenSet; }
123 template <typename FoundationModelArnT = Aws::String>
125 m_foundationModelArnHasBeenSet = true;
126 m_foundationModelArn = std::forward<FoundationModelArnT>(value);
127 }
128 template <typename FoundationModelArnT = Aws::String>
130 SetFoundationModelArn(std::forward<FoundationModelArnT>(value));
131 return *this;
132 }
134
136
139 inline int GetModelUnits() const { return m_modelUnits; }
140 inline bool ModelUnitsHasBeenSet() const { return m_modelUnitsHasBeenSet; }
141 inline void SetModelUnits(int value) {
142 m_modelUnitsHasBeenSet = true;
143 m_modelUnits = value;
144 }
146 SetModelUnits(value);
147 return *this;
148 }
150
152
156 inline int GetDesiredModelUnits() const { return m_desiredModelUnits; }
157 inline bool DesiredModelUnitsHasBeenSet() const { return m_desiredModelUnitsHasBeenSet; }
158 inline void SetDesiredModelUnits(int value) {
159 m_desiredModelUnitsHasBeenSet = true;
160 m_desiredModelUnits = value;
161 }
164 return *this;
165 }
167
169
172 inline ProvisionedModelStatus GetStatus() const { return m_status; }
173 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
175 m_statusHasBeenSet = true;
176 m_status = value;
177 }
179 SetStatus(value);
180 return *this;
181 }
183
185
188 inline CommitmentDuration GetCommitmentDuration() const { return m_commitmentDuration; }
189 inline bool CommitmentDurationHasBeenSet() const { return m_commitmentDurationHasBeenSet; }
191 m_commitmentDurationHasBeenSet = true;
192 m_commitmentDuration = value;
193 }
196 return *this;
197 }
199
201
205 inline const Aws::Utils::DateTime& GetCommitmentExpirationTime() const { return m_commitmentExpirationTime; }
206 inline bool CommitmentExpirationTimeHasBeenSet() const { return m_commitmentExpirationTimeHasBeenSet; }
207 template <typename CommitmentExpirationTimeT = Aws::Utils::DateTime>
209 m_commitmentExpirationTimeHasBeenSet = true;
210 m_commitmentExpirationTime = std::forward<CommitmentExpirationTimeT>(value);
211 }
212 template <typename CommitmentExpirationTimeT = Aws::Utils::DateTime>
214 SetCommitmentExpirationTime(std::forward<CommitmentExpirationTimeT>(value));
215 return *this;
216 }
218
220
223 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
224 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
225 template <typename CreationTimeT = Aws::Utils::DateTime>
227 m_creationTimeHasBeenSet = true;
228 m_creationTime = std::forward<CreationTimeT>(value);
229 }
230 template <typename CreationTimeT = Aws::Utils::DateTime>
232 SetCreationTime(std::forward<CreationTimeT>(value));
233 return *this;
234 }
236
238
241 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
242 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
243 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
245 m_lastModifiedTimeHasBeenSet = true;
246 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
247 }
248 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
250 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
251 return *this;
252 }
254 private:
255 Aws::String m_provisionedModelName;
256
257 Aws::String m_provisionedModelArn;
258
259 Aws::String m_modelArn;
260
261 Aws::String m_desiredModelArn;
262
263 Aws::String m_foundationModelArn;
264
265 int m_modelUnits{0};
266
267 int m_desiredModelUnits{0};
268
270
272
273 Aws::Utils::DateTime m_commitmentExpirationTime{};
274
275 Aws::Utils::DateTime m_creationTime{};
276
277 Aws::Utils::DateTime m_lastModifiedTime{};
278 bool m_provisionedModelNameHasBeenSet = false;
279 bool m_provisionedModelArnHasBeenSet = false;
280 bool m_modelArnHasBeenSet = false;
281 bool m_desiredModelArnHasBeenSet = false;
282 bool m_foundationModelArnHasBeenSet = false;
283 bool m_modelUnitsHasBeenSet = false;
284 bool m_desiredModelUnitsHasBeenSet = false;
285 bool m_statusHasBeenSet = false;
286 bool m_commitmentDurationHasBeenSet = false;
287 bool m_commitmentExpirationTimeHasBeenSet = false;
288 bool m_creationTimeHasBeenSet = false;
289 bool m_lastModifiedTimeHasBeenSet = false;
290};
291
292} // namespace Model
293} // namespace Bedrock
294} // namespace Aws
void SetCommitmentExpirationTime(CommitmentExpirationTimeT &&value)
ProvisionedModelSummary & WithModelUnits(int value)
void SetProvisionedModelName(ProvisionedModelNameT &&value)
ProvisionedModelSummary & WithCreationTime(CreationTimeT &&value)
AWS_BEDROCK_API ProvisionedModelSummary(Aws::Utils::Json::JsonView jsonValue)
ProvisionedModelSummary & WithModelArn(ModelArnT &&value)
ProvisionedModelSummary & WithProvisionedModelArn(ProvisionedModelArnT &&value)
ProvisionedModelSummary & WithFoundationModelArn(FoundationModelArnT &&value)
AWS_BEDROCK_API ProvisionedModelSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
ProvisionedModelSummary & WithCommitmentDuration(CommitmentDuration value)
const Aws::Utils::DateTime & GetCreationTime() const
ProvisionedModelSummary & WithCommitmentExpirationTime(CommitmentExpirationTimeT &&value)
ProvisionedModelSummary & WithProvisionedModelName(ProvisionedModelNameT &&value)
ProvisionedModelSummary & WithStatus(ProvisionedModelStatus value)
AWS_BEDROCK_API ProvisionedModelSummary()=default
void SetFoundationModelArn(FoundationModelArnT &&value)
ProvisionedModelSummary & WithLastModifiedTime(LastModifiedTimeT &&value)
void SetProvisionedModelArn(ProvisionedModelArnT &&value)
ProvisionedModelSummary & WithDesiredModelArn(DesiredModelArnT &&value)
const Aws::Utils::DateTime & GetCommitmentExpirationTime() const
const Aws::Utils::DateTime & GetLastModifiedTime() const
ProvisionedModelSummary & WithDesiredModelUnits(int 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