AWS SDK for C++

AWS SDK for C++ Version 1.11.767

Loading...
Searching...
No Matches
TrainingPlanExtension.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemaker/SageMaker_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SageMaker {
21namespace Model {
22
30 public:
31 AWS_SAGEMAKER_API TrainingPlanExtension() = default;
34 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetTrainingPlanExtensionOfferingId() const { return m_trainingPlanExtensionOfferingId; }
42 inline bool TrainingPlanExtensionOfferingIdHasBeenSet() const { return m_trainingPlanExtensionOfferingIdHasBeenSet; }
43 template <typename TrainingPlanExtensionOfferingIdT = Aws::String>
44 void SetTrainingPlanExtensionOfferingId(TrainingPlanExtensionOfferingIdT&& value) {
45 m_trainingPlanExtensionOfferingIdHasBeenSet = true;
46 m_trainingPlanExtensionOfferingId = std::forward<TrainingPlanExtensionOfferingIdT>(value);
47 }
48 template <typename TrainingPlanExtensionOfferingIdT = Aws::String>
49 TrainingPlanExtension& WithTrainingPlanExtensionOfferingId(TrainingPlanExtensionOfferingIdT&& value) {
50 SetTrainingPlanExtensionOfferingId(std::forward<TrainingPlanExtensionOfferingIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Utils::DateTime& GetExtendedAt() const { return m_extendedAt; }
60 inline bool ExtendedAtHasBeenSet() const { return m_extendedAtHasBeenSet; }
61 template <typename ExtendedAtT = Aws::Utils::DateTime>
62 void SetExtendedAt(ExtendedAtT&& value) {
63 m_extendedAtHasBeenSet = true;
64 m_extendedAt = std::forward<ExtendedAtT>(value);
65 }
66 template <typename ExtendedAtT = Aws::Utils::DateTime>
67 TrainingPlanExtension& WithExtendedAt(ExtendedAtT&& value) {
68 SetExtendedAt(std::forward<ExtendedAtT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Utils::DateTime& GetStartDate() const { return m_startDate; }
78 inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
79 template <typename StartDateT = Aws::Utils::DateTime>
80 void SetStartDate(StartDateT&& value) {
81 m_startDateHasBeenSet = true;
82 m_startDate = std::forward<StartDateT>(value);
83 }
84 template <typename StartDateT = Aws::Utils::DateTime>
85 TrainingPlanExtension& WithStartDate(StartDateT&& value) {
86 SetStartDate(std::forward<StartDateT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::Utils::DateTime& GetEndDate() const { return m_endDate; }
96 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
97 template <typename EndDateT = Aws::Utils::DateTime>
98 void SetEndDate(EndDateT&& value) {
99 m_endDateHasBeenSet = true;
100 m_endDate = std::forward<EndDateT>(value);
101 }
102 template <typename EndDateT = Aws::Utils::DateTime>
104 SetEndDate(std::forward<EndDateT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::String& GetStatus() const { return m_status; }
115 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
116 template <typename StatusT = Aws::String>
117 void SetStatus(StatusT&& value) {
118 m_statusHasBeenSet = true;
119 m_status = std::forward<StatusT>(value);
120 }
121 template <typename StatusT = Aws::String>
123 SetStatus(std::forward<StatusT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::String& GetPaymentStatus() const { return m_paymentStatus; }
133 inline bool PaymentStatusHasBeenSet() const { return m_paymentStatusHasBeenSet; }
134 template <typename PaymentStatusT = Aws::String>
135 void SetPaymentStatus(PaymentStatusT&& value) {
136 m_paymentStatusHasBeenSet = true;
137 m_paymentStatus = std::forward<PaymentStatusT>(value);
138 }
139 template <typename PaymentStatusT = Aws::String>
140 TrainingPlanExtension& WithPaymentStatus(PaymentStatusT&& value) {
141 SetPaymentStatus(std::forward<PaymentStatusT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
151 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
152 template <typename AvailabilityZoneT = Aws::String>
153 void SetAvailabilityZone(AvailabilityZoneT&& value) {
154 m_availabilityZoneHasBeenSet = true;
155 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
156 }
157 template <typename AvailabilityZoneT = Aws::String>
158 TrainingPlanExtension& WithAvailabilityZone(AvailabilityZoneT&& value) {
159 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
160 return *this;
161 }
163
165
168 inline const Aws::String& GetAvailabilityZoneId() const { return m_availabilityZoneId; }
169 inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
170 template <typename AvailabilityZoneIdT = Aws::String>
171 void SetAvailabilityZoneId(AvailabilityZoneIdT&& value) {
172 m_availabilityZoneIdHasBeenSet = true;
173 m_availabilityZoneId = std::forward<AvailabilityZoneIdT>(value);
174 }
175 template <typename AvailabilityZoneIdT = Aws::String>
176 TrainingPlanExtension& WithAvailabilityZoneId(AvailabilityZoneIdT&& value) {
177 SetAvailabilityZoneId(std::forward<AvailabilityZoneIdT>(value));
178 return *this;
179 }
181
183
186 inline int GetDurationHours() const { return m_durationHours; }
187 inline bool DurationHoursHasBeenSet() const { return m_durationHoursHasBeenSet; }
188 inline void SetDurationHours(int value) {
189 m_durationHoursHasBeenSet = true;
190 m_durationHours = value;
191 }
193 SetDurationHours(value);
194 return *this;
195 }
197
199
202 inline const Aws::String& GetUpfrontFee() const { return m_upfrontFee; }
203 inline bool UpfrontFeeHasBeenSet() const { return m_upfrontFeeHasBeenSet; }
204 template <typename UpfrontFeeT = Aws::String>
205 void SetUpfrontFee(UpfrontFeeT&& value) {
206 m_upfrontFeeHasBeenSet = true;
207 m_upfrontFee = std::forward<UpfrontFeeT>(value);
208 }
209 template <typename UpfrontFeeT = Aws::String>
210 TrainingPlanExtension& WithUpfrontFee(UpfrontFeeT&& value) {
211 SetUpfrontFee(std::forward<UpfrontFeeT>(value));
212 return *this;
213 }
215
217
220 inline const Aws::String& GetCurrencyCode() const { return m_currencyCode; }
221 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
222 template <typename CurrencyCodeT = Aws::String>
223 void SetCurrencyCode(CurrencyCodeT&& value) {
224 m_currencyCodeHasBeenSet = true;
225 m_currencyCode = std::forward<CurrencyCodeT>(value);
226 }
227 template <typename CurrencyCodeT = Aws::String>
228 TrainingPlanExtension& WithCurrencyCode(CurrencyCodeT&& value) {
229 SetCurrencyCode(std::forward<CurrencyCodeT>(value));
230 return *this;
231 }
233 private:
234 Aws::String m_trainingPlanExtensionOfferingId;
235
236 Aws::Utils::DateTime m_extendedAt{};
237
238 Aws::Utils::DateTime m_startDate{};
239
240 Aws::Utils::DateTime m_endDate{};
241
242 Aws::String m_status;
243
244 Aws::String m_paymentStatus;
245
246 Aws::String m_availabilityZone;
247
248 Aws::String m_availabilityZoneId;
249
250 int m_durationHours{0};
251
252 Aws::String m_upfrontFee;
253
254 Aws::String m_currencyCode;
255 bool m_trainingPlanExtensionOfferingIdHasBeenSet = false;
256 bool m_extendedAtHasBeenSet = false;
257 bool m_startDateHasBeenSet = false;
258 bool m_endDateHasBeenSet = false;
259 bool m_statusHasBeenSet = false;
260 bool m_paymentStatusHasBeenSet = false;
261 bool m_availabilityZoneHasBeenSet = false;
262 bool m_availabilityZoneIdHasBeenSet = false;
263 bool m_durationHoursHasBeenSet = false;
264 bool m_upfrontFeeHasBeenSet = false;
265 bool m_currencyCodeHasBeenSet = false;
266};
267
268} // namespace Model
269} // namespace SageMaker
270} // namespace Aws
void SetTrainingPlanExtensionOfferingId(TrainingPlanExtensionOfferingIdT &&value)
void SetAvailabilityZoneId(AvailabilityZoneIdT &&value)
TrainingPlanExtension & WithStartDate(StartDateT &&value)
AWS_SAGEMAKER_API TrainingPlanExtension(Aws::Utils::Json::JsonView jsonValue)
TrainingPlanExtension & WithCurrencyCode(CurrencyCodeT &&value)
const Aws::String & GetTrainingPlanExtensionOfferingId() const
TrainingPlanExtension & WithAvailabilityZoneId(AvailabilityZoneIdT &&value)
TrainingPlanExtension & WithUpfrontFee(UpfrontFeeT &&value)
AWS_SAGEMAKER_API TrainingPlanExtension()=default
TrainingPlanExtension & WithEndDate(EndDateT &&value)
const Aws::Utils::DateTime & GetExtendedAt() const
TrainingPlanExtension & WithTrainingPlanExtensionOfferingId(TrainingPlanExtensionOfferingIdT &&value)
TrainingPlanExtension & WithPaymentStatus(PaymentStatusT &&value)
const Aws::Utils::DateTime & GetEndDate() const
void SetAvailabilityZone(AvailabilityZoneT &&value)
TrainingPlanExtension & WithExtendedAt(ExtendedAtT &&value)
TrainingPlanExtension & WithAvailabilityZone(AvailabilityZoneT &&value)
AWS_SAGEMAKER_API TrainingPlanExtension & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
TrainingPlanExtension & WithDurationHours(int value)
const Aws::Utils::DateTime & GetStartDate() const
TrainingPlanExtension & WithStatus(StatusT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue