AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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
71 inline const Aws::Vector<SageMakerResourceName>& GetTargetResources() const { return m_targetResources; }
72 inline bool TargetResourcesHasBeenSet() const { return m_targetResourcesHasBeenSet; }
73 template <typename TargetResourcesT = Aws::Vector<SageMakerResourceName>>
74 void SetTargetResources(TargetResourcesT&& value) {
75 m_targetResourcesHasBeenSet = true;
76 m_targetResources = std::forward<TargetResourcesT>(value);
77 }
78 template <typename TargetResourcesT = Aws::Vector<SageMakerResourceName>>
79 TrainingPlanOffering& WithTargetResources(TargetResourcesT&& value) {
80 SetTargetResources(std::forward<TargetResourcesT>(value));
81 return *this;
82 }
84 m_targetResourcesHasBeenSet = true;
85 m_targetResources.push_back(value);
86 return *this;
87 }
89
91
95 inline const Aws::Utils::DateTime& GetRequestedStartTimeAfter() const { return m_requestedStartTimeAfter; }
96 inline bool RequestedStartTimeAfterHasBeenSet() const { return m_requestedStartTimeAfterHasBeenSet; }
97 template <typename RequestedStartTimeAfterT = Aws::Utils::DateTime>
98 void SetRequestedStartTimeAfter(RequestedStartTimeAfterT&& value) {
99 m_requestedStartTimeAfterHasBeenSet = true;
100 m_requestedStartTimeAfter = std::forward<RequestedStartTimeAfterT>(value);
101 }
102 template <typename RequestedStartTimeAfterT = Aws::Utils::DateTime>
103 TrainingPlanOffering& WithRequestedStartTimeAfter(RequestedStartTimeAfterT&& value) {
104 SetRequestedStartTimeAfter(std::forward<RequestedStartTimeAfterT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::Utils::DateTime& GetRequestedEndTimeBefore() const { return m_requestedEndTimeBefore; }
115 inline bool RequestedEndTimeBeforeHasBeenSet() const { return m_requestedEndTimeBeforeHasBeenSet; }
116 template <typename RequestedEndTimeBeforeT = Aws::Utils::DateTime>
117 void SetRequestedEndTimeBefore(RequestedEndTimeBeforeT&& value) {
118 m_requestedEndTimeBeforeHasBeenSet = true;
119 m_requestedEndTimeBefore = std::forward<RequestedEndTimeBeforeT>(value);
120 }
121 template <typename RequestedEndTimeBeforeT = Aws::Utils::DateTime>
122 TrainingPlanOffering& WithRequestedEndTimeBefore(RequestedEndTimeBeforeT&& value) {
123 SetRequestedEndTimeBefore(std::forward<RequestedEndTimeBeforeT>(value));
124 return *this;
125 }
127
129
133 inline long long GetDurationHours() const { return m_durationHours; }
134 inline bool DurationHoursHasBeenSet() const { return m_durationHoursHasBeenSet; }
135 inline void SetDurationHours(long long value) {
136 m_durationHoursHasBeenSet = true;
137 m_durationHours = value;
138 }
139 inline TrainingPlanOffering& WithDurationHours(long long value) {
140 SetDurationHours(value);
141 return *this;
142 }
144
146
150 inline long long GetDurationMinutes() const { return m_durationMinutes; }
151 inline bool DurationMinutesHasBeenSet() const { return m_durationMinutesHasBeenSet; }
152 inline void SetDurationMinutes(long long value) {
153 m_durationMinutesHasBeenSet = true;
154 m_durationMinutes = value;
155 }
156 inline TrainingPlanOffering& WithDurationMinutes(long long value) {
157 SetDurationMinutes(value);
158 return *this;
159 }
161
163
166 inline const Aws::String& GetUpfrontFee() const { return m_upfrontFee; }
167 inline bool UpfrontFeeHasBeenSet() const { return m_upfrontFeeHasBeenSet; }
168 template <typename UpfrontFeeT = Aws::String>
169 void SetUpfrontFee(UpfrontFeeT&& value) {
170 m_upfrontFeeHasBeenSet = true;
171 m_upfrontFee = std::forward<UpfrontFeeT>(value);
172 }
173 template <typename UpfrontFeeT = Aws::String>
174 TrainingPlanOffering& WithUpfrontFee(UpfrontFeeT&& value) {
175 SetUpfrontFee(std::forward<UpfrontFeeT>(value));
176 return *this;
177 }
179
181
184 inline const Aws::String& GetCurrencyCode() const { return m_currencyCode; }
185 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
186 template <typename CurrencyCodeT = Aws::String>
187 void SetCurrencyCode(CurrencyCodeT&& value) {
188 m_currencyCodeHasBeenSet = true;
189 m_currencyCode = std::forward<CurrencyCodeT>(value);
190 }
191 template <typename CurrencyCodeT = Aws::String>
192 TrainingPlanOffering& WithCurrencyCode(CurrencyCodeT&& value) {
193 SetCurrencyCode(std::forward<CurrencyCodeT>(value));
194 return *this;
195 }
197
199
203 inline const Aws::Vector<ReservedCapacityOffering>& GetReservedCapacityOfferings() const { return m_reservedCapacityOfferings; }
204 inline bool ReservedCapacityOfferingsHasBeenSet() const { return m_reservedCapacityOfferingsHasBeenSet; }
205 template <typename ReservedCapacityOfferingsT = Aws::Vector<ReservedCapacityOffering>>
206 void SetReservedCapacityOfferings(ReservedCapacityOfferingsT&& value) {
207 m_reservedCapacityOfferingsHasBeenSet = true;
208 m_reservedCapacityOfferings = std::forward<ReservedCapacityOfferingsT>(value);
209 }
210 template <typename ReservedCapacityOfferingsT = Aws::Vector<ReservedCapacityOffering>>
211 TrainingPlanOffering& WithReservedCapacityOfferings(ReservedCapacityOfferingsT&& value) {
212 SetReservedCapacityOfferings(std::forward<ReservedCapacityOfferingsT>(value));
213 return *this;
214 }
215 template <typename ReservedCapacityOfferingsT = ReservedCapacityOffering>
216 TrainingPlanOffering& AddReservedCapacityOfferings(ReservedCapacityOfferingsT&& value) {
217 m_reservedCapacityOfferingsHasBeenSet = true;
218 m_reservedCapacityOfferings.emplace_back(std::forward<ReservedCapacityOfferingsT>(value));
219 return *this;
220 }
222 private:
223 Aws::String m_trainingPlanOfferingId;
224
225 Aws::Vector<SageMakerResourceName> m_targetResources;
226
227 Aws::Utils::DateTime m_requestedStartTimeAfter{};
228
229 Aws::Utils::DateTime m_requestedEndTimeBefore{};
230
231 long long m_durationHours{0};
232
233 long long m_durationMinutes{0};
234
235 Aws::String m_upfrontFee;
236
237 Aws::String m_currencyCode;
238
239 Aws::Vector<ReservedCapacityOffering> m_reservedCapacityOfferings;
240 bool m_trainingPlanOfferingIdHasBeenSet = false;
241 bool m_targetResourcesHasBeenSet = false;
242 bool m_requestedStartTimeAfterHasBeenSet = false;
243 bool m_requestedEndTimeBeforeHasBeenSet = false;
244 bool m_durationHoursHasBeenSet = false;
245 bool m_durationMinutesHasBeenSet = false;
246 bool m_upfrontFeeHasBeenSet = false;
247 bool m_currencyCodeHasBeenSet = false;
248 bool m_reservedCapacityOfferingsHasBeenSet = false;
249};
250
251} // namespace Model
252} // namespace SageMaker
253} // 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