AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
TrainingPlanOffering.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/sagemaker/model/SageMakerResourceName.h>
12#include <aws/sagemaker/model/ReservedCapacityOffering.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace SageMaker
26{
27namespace Model
28{
29
40 {
41 public:
42 AWS_SAGEMAKER_API TrainingPlanOffering() = default;
45 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::String& GetTrainingPlanOfferingId() const { return m_trainingPlanOfferingId; }
53 inline bool TrainingPlanOfferingIdHasBeenSet() const { return m_trainingPlanOfferingIdHasBeenSet; }
54 template<typename TrainingPlanOfferingIdT = Aws::String>
55 void SetTrainingPlanOfferingId(TrainingPlanOfferingIdT&& value) { m_trainingPlanOfferingIdHasBeenSet = true; m_trainingPlanOfferingId = std::forward<TrainingPlanOfferingIdT>(value); }
56 template<typename TrainingPlanOfferingIdT = Aws::String>
57 TrainingPlanOffering& WithTrainingPlanOfferingId(TrainingPlanOfferingIdT&& value) { SetTrainingPlanOfferingId(std::forward<TrainingPlanOfferingIdT>(value)); return *this;}
59
61
69 inline const Aws::Vector<SageMakerResourceName>& GetTargetResources() const { return m_targetResources; }
70 inline bool TargetResourcesHasBeenSet() const { return m_targetResourcesHasBeenSet; }
71 template<typename TargetResourcesT = Aws::Vector<SageMakerResourceName>>
72 void SetTargetResources(TargetResourcesT&& value) { m_targetResourcesHasBeenSet = true; m_targetResources = std::forward<TargetResourcesT>(value); }
73 template<typename TargetResourcesT = Aws::Vector<SageMakerResourceName>>
74 TrainingPlanOffering& WithTargetResources(TargetResourcesT&& value) { SetTargetResources(std::forward<TargetResourcesT>(value)); return *this;}
75 inline TrainingPlanOffering& AddTargetResources(SageMakerResourceName value) { m_targetResourcesHasBeenSet = true; m_targetResources.push_back(value); return *this; }
77
79
83 inline const Aws::Utils::DateTime& GetRequestedStartTimeAfter() const { return m_requestedStartTimeAfter; }
84 inline bool RequestedStartTimeAfterHasBeenSet() const { return m_requestedStartTimeAfterHasBeenSet; }
85 template<typename RequestedStartTimeAfterT = Aws::Utils::DateTime>
86 void SetRequestedStartTimeAfter(RequestedStartTimeAfterT&& value) { m_requestedStartTimeAfterHasBeenSet = true; m_requestedStartTimeAfter = std::forward<RequestedStartTimeAfterT>(value); }
87 template<typename RequestedStartTimeAfterT = Aws::Utils::DateTime>
88 TrainingPlanOffering& WithRequestedStartTimeAfter(RequestedStartTimeAfterT&& value) { SetRequestedStartTimeAfter(std::forward<RequestedStartTimeAfterT>(value)); return *this;}
90
92
96 inline const Aws::Utils::DateTime& GetRequestedEndTimeBefore() const { return m_requestedEndTimeBefore; }
97 inline bool RequestedEndTimeBeforeHasBeenSet() const { return m_requestedEndTimeBeforeHasBeenSet; }
98 template<typename RequestedEndTimeBeforeT = Aws::Utils::DateTime>
99 void SetRequestedEndTimeBefore(RequestedEndTimeBeforeT&& value) { m_requestedEndTimeBeforeHasBeenSet = true; m_requestedEndTimeBefore = std::forward<RequestedEndTimeBeforeT>(value); }
100 template<typename RequestedEndTimeBeforeT = Aws::Utils::DateTime>
101 TrainingPlanOffering& WithRequestedEndTimeBefore(RequestedEndTimeBeforeT&& value) { SetRequestedEndTimeBefore(std::forward<RequestedEndTimeBeforeT>(value)); return *this;}
103
105
109 inline long long GetDurationHours() const { return m_durationHours; }
110 inline bool DurationHoursHasBeenSet() const { return m_durationHoursHasBeenSet; }
111 inline void SetDurationHours(long long value) { m_durationHoursHasBeenSet = true; m_durationHours = value; }
112 inline TrainingPlanOffering& WithDurationHours(long long value) { SetDurationHours(value); return *this;}
114
116
120 inline long long GetDurationMinutes() const { return m_durationMinutes; }
121 inline bool DurationMinutesHasBeenSet() const { return m_durationMinutesHasBeenSet; }
122 inline void SetDurationMinutes(long long value) { m_durationMinutesHasBeenSet = true; m_durationMinutes = value; }
123 inline TrainingPlanOffering& WithDurationMinutes(long long value) { SetDurationMinutes(value); return *this;}
125
127
130 inline const Aws::String& GetUpfrontFee() const { return m_upfrontFee; }
131 inline bool UpfrontFeeHasBeenSet() const { return m_upfrontFeeHasBeenSet; }
132 template<typename UpfrontFeeT = Aws::String>
133 void SetUpfrontFee(UpfrontFeeT&& value) { m_upfrontFeeHasBeenSet = true; m_upfrontFee = std::forward<UpfrontFeeT>(value); }
134 template<typename UpfrontFeeT = Aws::String>
135 TrainingPlanOffering& WithUpfrontFee(UpfrontFeeT&& value) { SetUpfrontFee(std::forward<UpfrontFeeT>(value)); return *this;}
137
139
142 inline const Aws::String& GetCurrencyCode() const { return m_currencyCode; }
143 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
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 TrainingPlanOffering& WithCurrencyCode(CurrencyCodeT&& value) { SetCurrencyCode(std::forward<CurrencyCodeT>(value)); return *this;}
149
151
155 inline const Aws::Vector<ReservedCapacityOffering>& GetReservedCapacityOfferings() const { return m_reservedCapacityOfferings; }
156 inline bool ReservedCapacityOfferingsHasBeenSet() const { return m_reservedCapacityOfferingsHasBeenSet; }
157 template<typename ReservedCapacityOfferingsT = Aws::Vector<ReservedCapacityOffering>>
158 void SetReservedCapacityOfferings(ReservedCapacityOfferingsT&& value) { m_reservedCapacityOfferingsHasBeenSet = true; m_reservedCapacityOfferings = std::forward<ReservedCapacityOfferingsT>(value); }
159 template<typename ReservedCapacityOfferingsT = Aws::Vector<ReservedCapacityOffering>>
160 TrainingPlanOffering& WithReservedCapacityOfferings(ReservedCapacityOfferingsT&& value) { SetReservedCapacityOfferings(std::forward<ReservedCapacityOfferingsT>(value)); return *this;}
161 template<typename ReservedCapacityOfferingsT = ReservedCapacityOffering>
162 TrainingPlanOffering& AddReservedCapacityOfferings(ReservedCapacityOfferingsT&& value) { m_reservedCapacityOfferingsHasBeenSet = true; m_reservedCapacityOfferings.emplace_back(std::forward<ReservedCapacityOfferingsT>(value)); return *this; }
164 private:
165
166 Aws::String m_trainingPlanOfferingId;
167 bool m_trainingPlanOfferingIdHasBeenSet = false;
168
169 Aws::Vector<SageMakerResourceName> m_targetResources;
170 bool m_targetResourcesHasBeenSet = false;
171
172 Aws::Utils::DateTime m_requestedStartTimeAfter{};
173 bool m_requestedStartTimeAfterHasBeenSet = false;
174
175 Aws::Utils::DateTime m_requestedEndTimeBefore{};
176 bool m_requestedEndTimeBeforeHasBeenSet = false;
177
178 long long m_durationHours{0};
179 bool m_durationHoursHasBeenSet = false;
180
181 long long m_durationMinutes{0};
182 bool m_durationMinutesHasBeenSet = false;
183
184 Aws::String m_upfrontFee;
185 bool m_upfrontFeeHasBeenSet = false;
186
187 Aws::String m_currencyCode;
188 bool m_currencyCodeHasBeenSet = false;
189
190 Aws::Vector<ReservedCapacityOffering> m_reservedCapacityOfferings;
191 bool m_reservedCapacityOfferingsHasBeenSet = false;
192 };
193
194} // namespace Model
195} // namespace SageMaker
196} // 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