AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
GetProvisionedModelThroughputResult.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/bedrock/model/ProvisionedModelStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/bedrock/model/CommitmentDuration.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace Bedrock
27{
28namespace Model
29{
31 {
32 public:
33 AWS_BEDROCK_API GetProvisionedModelThroughputResult() = default;
36
37
39
42 inline int GetModelUnits() const { return m_modelUnits; }
43 inline void SetModelUnits(int value) { m_modelUnitsHasBeenSet = true; m_modelUnits = value; }
44 inline GetProvisionedModelThroughputResult& WithModelUnits(int value) { SetModelUnits(value); return *this;}
46
48
52 inline int GetDesiredModelUnits() const { return m_desiredModelUnits; }
53 inline void SetDesiredModelUnits(int value) { m_desiredModelUnitsHasBeenSet = true; m_desiredModelUnits = value; }
56
58
61 inline const Aws::String& GetProvisionedModelName() const { return m_provisionedModelName; }
62 template<typename ProvisionedModelNameT = Aws::String>
63 void SetProvisionedModelName(ProvisionedModelNameT&& value) { m_provisionedModelNameHasBeenSet = true; m_provisionedModelName = std::forward<ProvisionedModelNameT>(value); }
64 template<typename ProvisionedModelNameT = Aws::String>
65 GetProvisionedModelThroughputResult& WithProvisionedModelName(ProvisionedModelNameT&& value) { SetProvisionedModelName(std::forward<ProvisionedModelNameT>(value)); return *this;}
67
69
72 inline const Aws::String& GetProvisionedModelArn() const { return m_provisionedModelArn; }
73 template<typename ProvisionedModelArnT = Aws::String>
74 void SetProvisionedModelArn(ProvisionedModelArnT&& value) { m_provisionedModelArnHasBeenSet = true; m_provisionedModelArn = std::forward<ProvisionedModelArnT>(value); }
75 template<typename ProvisionedModelArnT = Aws::String>
76 GetProvisionedModelThroughputResult& WithProvisionedModelArn(ProvisionedModelArnT&& value) { SetProvisionedModelArn(std::forward<ProvisionedModelArnT>(value)); return *this;}
78
80
84 inline const Aws::String& GetModelArn() const { return m_modelArn; }
85 template<typename ModelArnT = Aws::String>
86 void SetModelArn(ModelArnT&& value) { m_modelArnHasBeenSet = true; m_modelArn = std::forward<ModelArnT>(value); }
87 template<typename ModelArnT = Aws::String>
88 GetProvisionedModelThroughputResult& WithModelArn(ModelArnT&& value) { SetModelArn(std::forward<ModelArnT>(value)); return *this;}
90
92
97 inline const Aws::String& GetDesiredModelArn() const { return m_desiredModelArn; }
98 template<typename DesiredModelArnT = Aws::String>
99 void SetDesiredModelArn(DesiredModelArnT&& value) { m_desiredModelArnHasBeenSet = true; m_desiredModelArn = std::forward<DesiredModelArnT>(value); }
100 template<typename DesiredModelArnT = Aws::String>
101 GetProvisionedModelThroughputResult& WithDesiredModelArn(DesiredModelArnT&& value) { SetDesiredModelArn(std::forward<DesiredModelArnT>(value)); return *this;}
103
105
110 inline const Aws::String& GetFoundationModelArn() const { return m_foundationModelArn; }
111 template<typename FoundationModelArnT = Aws::String>
112 void SetFoundationModelArn(FoundationModelArnT&& value) { m_foundationModelArnHasBeenSet = true; m_foundationModelArn = std::forward<FoundationModelArnT>(value); }
113 template<typename FoundationModelArnT = Aws::String>
114 GetProvisionedModelThroughputResult& WithFoundationModelArn(FoundationModelArnT&& value) { SetFoundationModelArn(std::forward<FoundationModelArnT>(value)); return *this;}
116
118
121 inline ProvisionedModelStatus GetStatus() const { return m_status; }
122 inline void SetStatus(ProvisionedModelStatus value) { m_statusHasBeenSet = true; m_status = value; }
125
127
130 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
131 template<typename CreationTimeT = Aws::Utils::DateTime>
132 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
133 template<typename CreationTimeT = Aws::Utils::DateTime>
134 GetProvisionedModelThroughputResult& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
136
138
142 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
143 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
144 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
145 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
146 GetProvisionedModelThroughputResult& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
148
150
154 inline const Aws::String& GetFailureMessage() const { return m_failureMessage; }
155 template<typename FailureMessageT = Aws::String>
156 void SetFailureMessage(FailureMessageT&& value) { m_failureMessageHasBeenSet = true; m_failureMessage = std::forward<FailureMessageT>(value); }
157 template<typename FailureMessageT = Aws::String>
158 GetProvisionedModelThroughputResult& WithFailureMessage(FailureMessageT&& value) { SetFailureMessage(std::forward<FailureMessageT>(value)); return *this;}
160
162
165 inline CommitmentDuration GetCommitmentDuration() const { return m_commitmentDuration; }
166 inline void SetCommitmentDuration(CommitmentDuration value) { m_commitmentDurationHasBeenSet = true; m_commitmentDuration = value; }
169
171
175 inline const Aws::Utils::DateTime& GetCommitmentExpirationTime() const { return m_commitmentExpirationTime; }
176 template<typename CommitmentExpirationTimeT = Aws::Utils::DateTime>
177 void SetCommitmentExpirationTime(CommitmentExpirationTimeT&& value) { m_commitmentExpirationTimeHasBeenSet = true; m_commitmentExpirationTime = std::forward<CommitmentExpirationTimeT>(value); }
178 template<typename CommitmentExpirationTimeT = Aws::Utils::DateTime>
179 GetProvisionedModelThroughputResult& WithCommitmentExpirationTime(CommitmentExpirationTimeT&& value) { SetCommitmentExpirationTime(std::forward<CommitmentExpirationTimeT>(value)); return *this;}
181
183
184 inline const Aws::String& GetRequestId() const { return m_requestId; }
185 template<typename RequestIdT = Aws::String>
186 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
187 template<typename RequestIdT = Aws::String>
188 GetProvisionedModelThroughputResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
190 private:
191
192 int m_modelUnits{0};
193 bool m_modelUnitsHasBeenSet = false;
194
195 int m_desiredModelUnits{0};
196 bool m_desiredModelUnitsHasBeenSet = false;
197
198 Aws::String m_provisionedModelName;
199 bool m_provisionedModelNameHasBeenSet = false;
200
201 Aws::String m_provisionedModelArn;
202 bool m_provisionedModelArnHasBeenSet = false;
203
204 Aws::String m_modelArn;
205 bool m_modelArnHasBeenSet = false;
206
207 Aws::String m_desiredModelArn;
208 bool m_desiredModelArnHasBeenSet = false;
209
210 Aws::String m_foundationModelArn;
211 bool m_foundationModelArnHasBeenSet = false;
212
214 bool m_statusHasBeenSet = false;
215
216 Aws::Utils::DateTime m_creationTime{};
217 bool m_creationTimeHasBeenSet = false;
218
219 Aws::Utils::DateTime m_lastModifiedTime{};
220 bool m_lastModifiedTimeHasBeenSet = false;
221
222 Aws::String m_failureMessage;
223 bool m_failureMessageHasBeenSet = false;
224
226 bool m_commitmentDurationHasBeenSet = false;
227
228 Aws::Utils::DateTime m_commitmentExpirationTime{};
229 bool m_commitmentExpirationTimeHasBeenSet = false;
230
231 Aws::String m_requestId;
232 bool m_requestIdHasBeenSet = false;
233 };
234
235} // namespace Model
236} // namespace Bedrock
237} // 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::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue