AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
TrainingPlanOffering.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/sagemaker/SageMaker_EXPORTS.h>
11#include <aws/sagemaker/model/ReservedCapacityOffering.h>
12#include <aws/sagemaker/model/SageMakerResourceName.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SageMaker {
24namespace Model {
25
36 public:
37 AWS_SAGEMAKER_API TrainingPlanOffering() = default;
40 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Aws::String& GetTrainingPlanOfferingId() const { return m_trainingPlanOfferingId; }
47 inline bool TrainingPlanOfferingIdHasBeenSet() const { return m_trainingPlanOfferingIdHasBeenSet; }
48 template <typename TrainingPlanOfferingIdT = Aws::String>
49 void SetTrainingPlanOfferingId(TrainingPlanOfferingIdT&& value) {
50 m_trainingPlanOfferingIdHasBeenSet = true;
51 m_trainingPlanOfferingId = std::forward<TrainingPlanOfferingIdT>(value);
52 }
53 template <typename TrainingPlanOfferingIdT = Aws::String>
54 TrainingPlanOffering& WithTrainingPlanOfferingId(TrainingPlanOfferingIdT&& value) {
55 SetTrainingPlanOfferingId(std::forward<TrainingPlanOfferingIdT>(value));
56 return *this;
57 }
59
61
74 inline const Aws::Vector<SageMakerResourceName>& GetTargetResources() const { return m_targetResources; }
75 inline bool TargetResourcesHasBeenSet() const { return m_targetResourcesHasBeenSet; }
76 template <typename TargetResourcesT = Aws::Vector<SageMakerResourceName>>
77 void SetTargetResources(TargetResourcesT&& value) {
78 m_targetResourcesHasBeenSet = true;
79 m_targetResources = std::forward<TargetResourcesT>(value);
80 }
81 template <typename TargetResourcesT = Aws::Vector<SageMakerResourceName>>
82 TrainingPlanOffering& WithTargetResources(TargetResourcesT&& value) {
83 SetTargetResources(std::forward<TargetResourcesT>(value));
84 return *this;
85 }
87 m_targetResourcesHasBeenSet = true;
88 m_targetResources.push_back(value);
89 return *this;
90 }
92
94
98 inline const Aws::Utils::DateTime& GetRequestedStartTimeAfter() const { return m_requestedStartTimeAfter; }
99 inline bool RequestedStartTimeAfterHasBeenSet() const { return m_requestedStartTimeAfterHasBeenSet; }
100 template <typename RequestedStartTimeAfterT = Aws::Utils::DateTime>
101 void SetRequestedStartTimeAfter(RequestedStartTimeAfterT&& value) {
102 m_requestedStartTimeAfterHasBeenSet = true;
103 m_requestedStartTimeAfter = std::forward<RequestedStartTimeAfterT>(value);
104 }
105 template <typename RequestedStartTimeAfterT = Aws::Utils::DateTime>
106 TrainingPlanOffering& WithRequestedStartTimeAfter(RequestedStartTimeAfterT&& value) {
107 SetRequestedStartTimeAfter(std::forward<RequestedStartTimeAfterT>(value));
108 return *this;
109 }
111
113
117 inline const Aws::Utils::DateTime& GetRequestedEndTimeBefore() const { return m_requestedEndTimeBefore; }
118 inline bool RequestedEndTimeBeforeHasBeenSet() const { return m_requestedEndTimeBeforeHasBeenSet; }
119 template <typename RequestedEndTimeBeforeT = Aws::Utils::DateTime>
120 void SetRequestedEndTimeBefore(RequestedEndTimeBeforeT&& value) {
121 m_requestedEndTimeBeforeHasBeenSet = true;
122 m_requestedEndTimeBefore = std::forward<RequestedEndTimeBeforeT>(value);
123 }
124 template <typename RequestedEndTimeBeforeT = Aws::Utils::DateTime>
125 TrainingPlanOffering& WithRequestedEndTimeBefore(RequestedEndTimeBeforeT&& value) {
126 SetRequestedEndTimeBefore(std::forward<RequestedEndTimeBeforeT>(value));
127 return *this;
128 }
130
132
136 inline long long GetDurationHours() const { return m_durationHours; }
137 inline bool DurationHoursHasBeenSet() const { return m_durationHoursHasBeenSet; }
138 inline void SetDurationHours(long long value) {
139 m_durationHoursHasBeenSet = true;
140 m_durationHours = value;
141 }
142 inline TrainingPlanOffering& WithDurationHours(long long value) {
143 SetDurationHours(value);
144 return *this;
145 }
147
149
153 inline long long GetDurationMinutes() const { return m_durationMinutes; }
154 inline bool DurationMinutesHasBeenSet() const { return m_durationMinutesHasBeenSet; }
155 inline void SetDurationMinutes(long long value) {
156 m_durationMinutesHasBeenSet = true;
157 m_durationMinutes = value;
158 }
159 inline TrainingPlanOffering& WithDurationMinutes(long long value) {
160 SetDurationMinutes(value);
161 return *this;
162 }
164
166
169 inline const Aws::String& GetUpfrontFee() const { return m_upfrontFee; }
170 inline bool UpfrontFeeHasBeenSet() const { return m_upfrontFeeHasBeenSet; }
171 template <typename UpfrontFeeT = Aws::String>
172 void SetUpfrontFee(UpfrontFeeT&& value) {
173 m_upfrontFeeHasBeenSet = true;
174 m_upfrontFee = std::forward<UpfrontFeeT>(value);
175 }
176 template <typename UpfrontFeeT = Aws::String>
177 TrainingPlanOffering& WithUpfrontFee(UpfrontFeeT&& value) {
178 SetUpfrontFee(std::forward<UpfrontFeeT>(value));
179 return *this;
180 }
182
184
187 inline const Aws::String& GetCurrencyCode() const { return m_currencyCode; }
188 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
189 template <typename CurrencyCodeT = Aws::String>
190 void SetCurrencyCode(CurrencyCodeT&& value) {
191 m_currencyCodeHasBeenSet = true;
192 m_currencyCode = std::forward<CurrencyCodeT>(value);
193 }
194 template <typename CurrencyCodeT = Aws::String>
195 TrainingPlanOffering& WithCurrencyCode(CurrencyCodeT&& value) {
196 SetCurrencyCode(std::forward<CurrencyCodeT>(value));
197 return *this;
198 }
200
202
206 inline const Aws::Vector<ReservedCapacityOffering>& GetReservedCapacityOfferings() const { return m_reservedCapacityOfferings; }
207 inline bool ReservedCapacityOfferingsHasBeenSet() const { return m_reservedCapacityOfferingsHasBeenSet; }
208 template <typename ReservedCapacityOfferingsT = Aws::Vector<ReservedCapacityOffering>>
209 void SetReservedCapacityOfferings(ReservedCapacityOfferingsT&& value) {
210 m_reservedCapacityOfferingsHasBeenSet = true;
211 m_reservedCapacityOfferings = std::forward<ReservedCapacityOfferingsT>(value);
212 }
213 template <typename ReservedCapacityOfferingsT = Aws::Vector<ReservedCapacityOffering>>
214 TrainingPlanOffering& WithReservedCapacityOfferings(ReservedCapacityOfferingsT&& value) {
215 SetReservedCapacityOfferings(std::forward<ReservedCapacityOfferingsT>(value));
216 return *this;
217 }
218 template <typename ReservedCapacityOfferingsT = ReservedCapacityOffering>
219 TrainingPlanOffering& AddReservedCapacityOfferings(ReservedCapacityOfferingsT&& value) {
220 m_reservedCapacityOfferingsHasBeenSet = true;
221 m_reservedCapacityOfferings.emplace_back(std::forward<ReservedCapacityOfferingsT>(value));
222 return *this;
223 }
225 private:
226 Aws::String m_trainingPlanOfferingId;
227
228 Aws::Vector<SageMakerResourceName> m_targetResources;
229
230 Aws::Utils::DateTime m_requestedStartTimeAfter{};
231
232 Aws::Utils::DateTime m_requestedEndTimeBefore{};
233
234 long long m_durationHours{0};
235
236 long long m_durationMinutes{0};
237
238 Aws::String m_upfrontFee;
239
240 Aws::String m_currencyCode;
241
242 Aws::Vector<ReservedCapacityOffering> m_reservedCapacityOfferings;
243 bool m_trainingPlanOfferingIdHasBeenSet = false;
244 bool m_targetResourcesHasBeenSet = false;
245 bool m_requestedStartTimeAfterHasBeenSet = false;
246 bool m_requestedEndTimeBeforeHasBeenSet = false;
247 bool m_durationHoursHasBeenSet = false;
248 bool m_durationMinutesHasBeenSet = false;
249 bool m_upfrontFeeHasBeenSet = false;
250 bool m_currencyCodeHasBeenSet = false;
251 bool m_reservedCapacityOfferingsHasBeenSet = false;
252};
253
254} // namespace Model
255} // namespace SageMaker
256} // namespace Aws
TrainingPlanOffering & WithReservedCapacityOfferings(ReservedCapacityOfferingsT &&value)
TrainingPlanOffering & WithTargetResources(TargetResourcesT &&value)
AWS_SAGEMAKER_API TrainingPlanOffering()=default
const Aws::Vector< ReservedCapacityOffering > & GetReservedCapacityOfferings() const
TrainingPlanOffering & WithUpfrontFee(UpfrontFeeT &&value)
TrainingPlanOffering & WithDurationHours(long long value)
TrainingPlanOffering & WithRequestedEndTimeBefore(RequestedEndTimeBeforeT &&value)
void SetRequestedEndTimeBefore(RequestedEndTimeBeforeT &&value)
void SetTrainingPlanOfferingId(TrainingPlanOfferingIdT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
TrainingPlanOffering & WithCurrencyCode(CurrencyCodeT &&value)
AWS_SAGEMAKER_API TrainingPlanOffering(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< SageMakerResourceName > & GetTargetResources() const
TrainingPlanOffering & WithDurationMinutes(long long value)
const Aws::Utils::DateTime & GetRequestedEndTimeBefore() const
TrainingPlanOffering & WithRequestedStartTimeAfter(RequestedStartTimeAfterT &&value)
void SetTargetResources(TargetResourcesT &&value)
void SetReservedCapacityOfferings(ReservedCapacityOfferingsT &&value)
TrainingPlanOffering & WithTrainingPlanOfferingId(TrainingPlanOfferingIdT &&value)
TrainingPlanOffering & AddReservedCapacityOfferings(ReservedCapacityOfferingsT &&value)
const Aws::String & GetTrainingPlanOfferingId() const
AWS_SAGEMAKER_API TrainingPlanOffering & operator=(Aws::Utils::Json::JsonView jsonValue)
TrainingPlanOffering & AddTargetResources(SageMakerResourceName value)
void SetRequestedStartTimeAfter(RequestedStartTimeAfterT &&value)
const Aws::Utils::DateTime & GetRequestedStartTimeAfter() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue