AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
DescribeTrainingPlanResult.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemaker/model/TrainingPlanStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/sagemaker/model/SageMakerResourceName.h>
13#include <aws/sagemaker/model/ReservedCapacitySummary.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace SageMaker
29{
30namespace Model
31{
33 {
34 public:
35 AWS_SAGEMAKER_API DescribeTrainingPlanResult() = default;
38
39
41
44 inline const Aws::String& GetTrainingPlanArn() const { return m_trainingPlanArn; }
45 template<typename TrainingPlanArnT = Aws::String>
46 void SetTrainingPlanArn(TrainingPlanArnT&& value) { m_trainingPlanArnHasBeenSet = true; m_trainingPlanArn = std::forward<TrainingPlanArnT>(value); }
47 template<typename TrainingPlanArnT = Aws::String>
48 DescribeTrainingPlanResult& WithTrainingPlanArn(TrainingPlanArnT&& value) { SetTrainingPlanArn(std::forward<TrainingPlanArnT>(value)); return *this;}
50
52
55 inline const Aws::String& GetTrainingPlanName() const { return m_trainingPlanName; }
56 template<typename TrainingPlanNameT = Aws::String>
57 void SetTrainingPlanName(TrainingPlanNameT&& value) { m_trainingPlanNameHasBeenSet = true; m_trainingPlanName = std::forward<TrainingPlanNameT>(value); }
58 template<typename TrainingPlanNameT = Aws::String>
59 DescribeTrainingPlanResult& WithTrainingPlanName(TrainingPlanNameT&& value) { SetTrainingPlanName(std::forward<TrainingPlanNameT>(value)); return *this;}
61
63
70 inline TrainingPlanStatus GetStatus() const { return m_status; }
71 inline void SetStatus(TrainingPlanStatus value) { m_statusHasBeenSet = true; m_status = value; }
72 inline DescribeTrainingPlanResult& WithStatus(TrainingPlanStatus value) { SetStatus(value); return *this;}
74
76
80 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
81 template<typename StatusMessageT = Aws::String>
82 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::forward<StatusMessageT>(value); }
83 template<typename StatusMessageT = Aws::String>
84 DescribeTrainingPlanResult& WithStatusMessage(StatusMessageT&& value) { SetStatusMessage(std::forward<StatusMessageT>(value)); return *this;}
86
88
91 inline long long GetDurationHours() const { return m_durationHours; }
92 inline void SetDurationHours(long long value) { m_durationHoursHasBeenSet = true; m_durationHours = value; }
93 inline DescribeTrainingPlanResult& WithDurationHours(long long value) { SetDurationHours(value); return *this;}
95
97
101 inline long long GetDurationMinutes() const { return m_durationMinutes; }
102 inline void SetDurationMinutes(long long value) { m_durationMinutesHasBeenSet = true; m_durationMinutes = value; }
103 inline DescribeTrainingPlanResult& WithDurationMinutes(long long value) { SetDurationMinutes(value); return *this;}
105
107
110 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
111 template<typename StartTimeT = Aws::Utils::DateTime>
112 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
113 template<typename StartTimeT = Aws::Utils::DateTime>
114 DescribeTrainingPlanResult& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
116
118
121 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
122 template<typename EndTimeT = Aws::Utils::DateTime>
123 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
124 template<typename EndTimeT = Aws::Utils::DateTime>
125 DescribeTrainingPlanResult& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
127
129
132 inline const Aws::String& GetUpfrontFee() const { return m_upfrontFee; }
133 template<typename UpfrontFeeT = Aws::String>
134 void SetUpfrontFee(UpfrontFeeT&& value) { m_upfrontFeeHasBeenSet = true; m_upfrontFee = std::forward<UpfrontFeeT>(value); }
135 template<typename UpfrontFeeT = Aws::String>
136 DescribeTrainingPlanResult& WithUpfrontFee(UpfrontFeeT&& value) { SetUpfrontFee(std::forward<UpfrontFeeT>(value)); return *this;}
138
140
143 inline const Aws::String& GetCurrencyCode() const { return m_currencyCode; }
144 template<typename CurrencyCodeT = Aws::String>
145 void SetCurrencyCode(CurrencyCodeT&& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = std::forward<CurrencyCodeT>(value); }
146 template<typename CurrencyCodeT = Aws::String>
147 DescribeTrainingPlanResult& WithCurrencyCode(CurrencyCodeT&& value) { SetCurrencyCode(std::forward<CurrencyCodeT>(value)); return *this;}
149
151
154 inline int GetTotalInstanceCount() const { return m_totalInstanceCount; }
155 inline void SetTotalInstanceCount(int value) { m_totalInstanceCountHasBeenSet = true; m_totalInstanceCount = value; }
158
160
164 inline int GetAvailableInstanceCount() const { return m_availableInstanceCount; }
165 inline void SetAvailableInstanceCount(int value) { m_availableInstanceCountHasBeenSet = true; m_availableInstanceCount = value; }
168
170
173 inline int GetInUseInstanceCount() const { return m_inUseInstanceCount; }
174 inline void SetInUseInstanceCount(int value) { m_inUseInstanceCountHasBeenSet = true; m_inUseInstanceCount = value; }
177
179
183 inline int GetUnhealthyInstanceCount() const { return m_unhealthyInstanceCount; }
184 inline void SetUnhealthyInstanceCount(int value) { m_unhealthyInstanceCountHasBeenSet = true; m_unhealthyInstanceCount = value; }
187
189
192 inline int GetAvailableSpareInstanceCount() const { return m_availableSpareInstanceCount; }
193 inline void SetAvailableSpareInstanceCount(int value) { m_availableSpareInstanceCountHasBeenSet = true; m_availableSpareInstanceCount = value; }
196
198
201 inline int GetTotalUltraServerCount() const { return m_totalUltraServerCount; }
202 inline void SetTotalUltraServerCount(int value) { m_totalUltraServerCountHasBeenSet = true; m_totalUltraServerCount = value; }
205
207
215 inline const Aws::Vector<SageMakerResourceName>& GetTargetResources() const { return m_targetResources; }
216 template<typename TargetResourcesT = Aws::Vector<SageMakerResourceName>>
217 void SetTargetResources(TargetResourcesT&& value) { m_targetResourcesHasBeenSet = true; m_targetResources = std::forward<TargetResourcesT>(value); }
218 template<typename TargetResourcesT = Aws::Vector<SageMakerResourceName>>
219 DescribeTrainingPlanResult& WithTargetResources(TargetResourcesT&& value) { SetTargetResources(std::forward<TargetResourcesT>(value)); return *this;}
220 inline DescribeTrainingPlanResult& AddTargetResources(SageMakerResourceName value) { m_targetResourcesHasBeenSet = true; m_targetResources.push_back(value); return *this; }
222
224
228 inline const Aws::Vector<ReservedCapacitySummary>& GetReservedCapacitySummaries() const { return m_reservedCapacitySummaries; }
229 template<typename ReservedCapacitySummariesT = Aws::Vector<ReservedCapacitySummary>>
230 void SetReservedCapacitySummaries(ReservedCapacitySummariesT&& value) { m_reservedCapacitySummariesHasBeenSet = true; m_reservedCapacitySummaries = std::forward<ReservedCapacitySummariesT>(value); }
231 template<typename ReservedCapacitySummariesT = Aws::Vector<ReservedCapacitySummary>>
232 DescribeTrainingPlanResult& WithReservedCapacitySummaries(ReservedCapacitySummariesT&& value) { SetReservedCapacitySummaries(std::forward<ReservedCapacitySummariesT>(value)); return *this;}
233 template<typename ReservedCapacitySummariesT = ReservedCapacitySummary>
234 DescribeTrainingPlanResult& AddReservedCapacitySummaries(ReservedCapacitySummariesT&& value) { m_reservedCapacitySummariesHasBeenSet = true; m_reservedCapacitySummaries.emplace_back(std::forward<ReservedCapacitySummariesT>(value)); return *this; }
236
238
239 inline const Aws::String& GetRequestId() const { return m_requestId; }
240 template<typename RequestIdT = Aws::String>
241 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
242 template<typename RequestIdT = Aws::String>
243 DescribeTrainingPlanResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
245 private:
246
247 Aws::String m_trainingPlanArn;
248 bool m_trainingPlanArnHasBeenSet = false;
249
250 Aws::String m_trainingPlanName;
251 bool m_trainingPlanNameHasBeenSet = false;
252
254 bool m_statusHasBeenSet = false;
255
256 Aws::String m_statusMessage;
257 bool m_statusMessageHasBeenSet = false;
258
259 long long m_durationHours{0};
260 bool m_durationHoursHasBeenSet = false;
261
262 long long m_durationMinutes{0};
263 bool m_durationMinutesHasBeenSet = false;
264
265 Aws::Utils::DateTime m_startTime{};
266 bool m_startTimeHasBeenSet = false;
267
268 Aws::Utils::DateTime m_endTime{};
269 bool m_endTimeHasBeenSet = false;
270
271 Aws::String m_upfrontFee;
272 bool m_upfrontFeeHasBeenSet = false;
273
274 Aws::String m_currencyCode;
275 bool m_currencyCodeHasBeenSet = false;
276
277 int m_totalInstanceCount{0};
278 bool m_totalInstanceCountHasBeenSet = false;
279
280 int m_availableInstanceCount{0};
281 bool m_availableInstanceCountHasBeenSet = false;
282
283 int m_inUseInstanceCount{0};
284 bool m_inUseInstanceCountHasBeenSet = false;
285
286 int m_unhealthyInstanceCount{0};
287 bool m_unhealthyInstanceCountHasBeenSet = false;
288
289 int m_availableSpareInstanceCount{0};
290 bool m_availableSpareInstanceCountHasBeenSet = false;
291
292 int m_totalUltraServerCount{0};
293 bool m_totalUltraServerCountHasBeenSet = false;
294
295 Aws::Vector<SageMakerResourceName> m_targetResources;
296 bool m_targetResourcesHasBeenSet = false;
297
298 Aws::Vector<ReservedCapacitySummary> m_reservedCapacitySummaries;
299 bool m_reservedCapacitySummariesHasBeenSet = false;
300
301 Aws::String m_requestId;
302 bool m_requestIdHasBeenSet = false;
303 };
304
305} // namespace Model
306} // namespace SageMaker
307} // namespace Aws
DescribeTrainingPlanResult & WithUpfrontFee(UpfrontFeeT &&value)
DescribeTrainingPlanResult & WithStartTime(StartTimeT &&value)
DescribeTrainingPlanResult & AddReservedCapacitySummaries(ReservedCapacitySummariesT &&value)
void SetReservedCapacitySummaries(ReservedCapacitySummariesT &&value)
DescribeTrainingPlanResult & WithStatus(TrainingPlanStatus value)
DescribeTrainingPlanResult & WithCurrencyCode(CurrencyCodeT &&value)
DescribeTrainingPlanResult & WithRequestId(RequestIdT &&value)
DescribeTrainingPlanResult & WithStatusMessage(StatusMessageT &&value)
AWS_SAGEMAKER_API DescribeTrainingPlanResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeTrainingPlanResult & WithReservedCapacitySummaries(ReservedCapacitySummariesT &&value)
const Aws::Vector< SageMakerResourceName > & GetTargetResources() const
DescribeTrainingPlanResult & WithTargetResources(TargetResourcesT &&value)
DescribeTrainingPlanResult & WithUnhealthyInstanceCount(int value)
DescribeTrainingPlanResult & WithDurationHours(long long value)
DescribeTrainingPlanResult & WithDurationMinutes(long long value)
DescribeTrainingPlanResult & WithTrainingPlanName(TrainingPlanNameT &&value)
const Aws::Vector< ReservedCapacitySummary > & GetReservedCapacitySummaries() const
DescribeTrainingPlanResult & WithTotalUltraServerCount(int value)
DescribeTrainingPlanResult & WithEndTime(EndTimeT &&value)
DescribeTrainingPlanResult & AddTargetResources(SageMakerResourceName value)
DescribeTrainingPlanResult & WithTotalInstanceCount(int value)
AWS_SAGEMAKER_API DescribeTrainingPlanResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeTrainingPlanResult & WithAvailableSpareInstanceCount(int value)
DescribeTrainingPlanResult & WithTrainingPlanArn(TrainingPlanArnT &&value)
AWS_SAGEMAKER_API DescribeTrainingPlanResult()=default
DescribeTrainingPlanResult & WithAvailableInstanceCount(int value)
DescribeTrainingPlanResult & WithInUseInstanceCount(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue