AWS SDK for C++

AWS SDK for C++ Version 1.11.767

Loading...
Searching...
No Matches
TrainingPlanExtensionOffering.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
32 public:
33 AWS_SAGEMAKER_API TrainingPlanExtensionOffering() = default;
36 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetTrainingPlanExtensionOfferingId() const { return m_trainingPlanExtensionOfferingId; }
43 inline bool TrainingPlanExtensionOfferingIdHasBeenSet() const { return m_trainingPlanExtensionOfferingIdHasBeenSet; }
44 template <typename TrainingPlanExtensionOfferingIdT = Aws::String>
45 void SetTrainingPlanExtensionOfferingId(TrainingPlanExtensionOfferingIdT&& value) {
46 m_trainingPlanExtensionOfferingIdHasBeenSet = true;
47 m_trainingPlanExtensionOfferingId = std::forward<TrainingPlanExtensionOfferingIdT>(value);
48 }
49 template <typename TrainingPlanExtensionOfferingIdT = Aws::String>
50 TrainingPlanExtensionOffering& WithTrainingPlanExtensionOfferingId(TrainingPlanExtensionOfferingIdT&& value) {
51 SetTrainingPlanExtensionOfferingId(std::forward<TrainingPlanExtensionOfferingIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
61 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
62 template <typename AvailabilityZoneT = Aws::String>
63 void SetAvailabilityZone(AvailabilityZoneT&& value) {
64 m_availabilityZoneHasBeenSet = true;
65 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
66 }
67 template <typename AvailabilityZoneT = Aws::String>
69 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::Utils::DateTime& GetStartDate() const { return m_startDate; }
79 inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
80 template <typename StartDateT = Aws::Utils::DateTime>
81 void SetStartDate(StartDateT&& value) {
82 m_startDateHasBeenSet = true;
83 m_startDate = std::forward<StartDateT>(value);
84 }
85 template <typename StartDateT = Aws::Utils::DateTime>
87 SetStartDate(std::forward<StartDateT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::Utils::DateTime& GetEndDate() const { return m_endDate; }
97 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
98 template <typename EndDateT = Aws::Utils::DateTime>
99 void SetEndDate(EndDateT&& value) {
100 m_endDateHasBeenSet = true;
101 m_endDate = std::forward<EndDateT>(value);
102 }
103 template <typename EndDateT = Aws::Utils::DateTime>
105 SetEndDate(std::forward<EndDateT>(value));
106 return *this;
107 }
109
111
114 inline int GetDurationHours() const { return m_durationHours; }
115 inline bool DurationHoursHasBeenSet() const { return m_durationHoursHasBeenSet; }
116 inline void SetDurationHours(int value) {
117 m_durationHoursHasBeenSet = true;
118 m_durationHours = value;
119 }
121 SetDurationHours(value);
122 return *this;
123 }
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) {
134 m_upfrontFeeHasBeenSet = true;
135 m_upfrontFee = std::forward<UpfrontFeeT>(value);
136 }
137 template <typename UpfrontFeeT = Aws::String>
139 SetUpfrontFee(std::forward<UpfrontFeeT>(value));
140 return *this;
141 }
143
145
148 inline const Aws::String& GetCurrencyCode() const { return m_currencyCode; }
149 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
150 template <typename CurrencyCodeT = Aws::String>
151 void SetCurrencyCode(CurrencyCodeT&& value) {
152 m_currencyCodeHasBeenSet = true;
153 m_currencyCode = std::forward<CurrencyCodeT>(value);
154 }
155 template <typename CurrencyCodeT = Aws::String>
157 SetCurrencyCode(std::forward<CurrencyCodeT>(value));
158 return *this;
159 }
161 private:
162 Aws::String m_trainingPlanExtensionOfferingId;
163
164 Aws::String m_availabilityZone;
165
166 Aws::Utils::DateTime m_startDate{};
167
168 Aws::Utils::DateTime m_endDate{};
169
170 int m_durationHours{0};
171
172 Aws::String m_upfrontFee;
173
174 Aws::String m_currencyCode;
175 bool m_trainingPlanExtensionOfferingIdHasBeenSet = false;
176 bool m_availabilityZoneHasBeenSet = false;
177 bool m_startDateHasBeenSet = false;
178 bool m_endDateHasBeenSet = false;
179 bool m_durationHoursHasBeenSet = false;
180 bool m_upfrontFeeHasBeenSet = false;
181 bool m_currencyCodeHasBeenSet = false;
182};
183
184} // namespace Model
185} // namespace SageMaker
186} // namespace Aws
TrainingPlanExtensionOffering & WithEndDate(EndDateT &&value)
TrainingPlanExtensionOffering & WithStartDate(StartDateT &&value)
TrainingPlanExtensionOffering & WithUpfrontFee(UpfrontFeeT &&value)
AWS_SAGEMAKER_API TrainingPlanExtensionOffering()=default
AWS_SAGEMAKER_API TrainingPlanExtensionOffering(Aws::Utils::Json::JsonView jsonValue)
TrainingPlanExtensionOffering & WithDurationHours(int value)
AWS_SAGEMAKER_API TrainingPlanExtensionOffering & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTrainingPlanExtensionOfferingId(TrainingPlanExtensionOfferingIdT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
TrainingPlanExtensionOffering & WithCurrencyCode(CurrencyCodeT &&value)
TrainingPlanExtensionOffering & WithAvailabilityZone(AvailabilityZoneT &&value)
TrainingPlanExtensionOffering & WithTrainingPlanExtensionOfferingId(TrainingPlanExtensionOfferingIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue