AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ReservedCapacityOffering.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#include <aws/sagemaker/model/ReservedCapacityInstanceType.h>
11#include <aws/sagemaker/model/ReservedCapacityType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SageMaker {
23namespace Model {
24
35 public:
36 AWS_SAGEMAKER_API ReservedCapacityOffering() = default;
39 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline ReservedCapacityType GetReservedCapacityType() const { return m_reservedCapacityType; }
46 inline bool ReservedCapacityTypeHasBeenSet() const { return m_reservedCapacityTypeHasBeenSet; }
48 m_reservedCapacityTypeHasBeenSet = true;
49 m_reservedCapacityType = value;
50 }
53 return *this;
54 }
56
58
62 inline const Aws::String& GetUltraServerType() const { return m_ultraServerType; }
63 inline bool UltraServerTypeHasBeenSet() const { return m_ultraServerTypeHasBeenSet; }
64 template <typename UltraServerTypeT = Aws::String>
65 void SetUltraServerType(UltraServerTypeT&& value) {
66 m_ultraServerTypeHasBeenSet = true;
67 m_ultraServerType = std::forward<UltraServerTypeT>(value);
68 }
69 template <typename UltraServerTypeT = Aws::String>
70 ReservedCapacityOffering& WithUltraServerType(UltraServerTypeT&& value) {
71 SetUltraServerType(std::forward<UltraServerTypeT>(value));
72 return *this;
73 }
75
77
80 inline int GetUltraServerCount() const { return m_ultraServerCount; }
81 inline bool UltraServerCountHasBeenSet() const { return m_ultraServerCountHasBeenSet; }
82 inline void SetUltraServerCount(int value) {
83 m_ultraServerCountHasBeenSet = true;
84 m_ultraServerCount = value;
85 }
88 return *this;
89 }
91
93
96 inline ReservedCapacityInstanceType GetInstanceType() const { return m_instanceType; }
97 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
99 m_instanceTypeHasBeenSet = true;
100 m_instanceType = value;
101 }
103 SetInstanceType(value);
104 return *this;
105 }
107
109
112 inline int GetInstanceCount() const { return m_instanceCount; }
113 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
114 inline void SetInstanceCount(int value) {
115 m_instanceCountHasBeenSet = true;
116 m_instanceCount = value;
117 }
119 SetInstanceCount(value);
120 return *this;
121 }
123
125
128 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
129 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
130 template <typename AvailabilityZoneT = Aws::String>
131 void SetAvailabilityZone(AvailabilityZoneT&& value) {
132 m_availabilityZoneHasBeenSet = true;
133 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
134 }
135 template <typename AvailabilityZoneT = Aws::String>
136 ReservedCapacityOffering& WithAvailabilityZone(AvailabilityZoneT&& value) {
137 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
138 return *this;
139 }
141
143
147 inline long long GetDurationHours() const { return m_durationHours; }
148 inline bool DurationHoursHasBeenSet() const { return m_durationHoursHasBeenSet; }
149 inline void SetDurationHours(long long value) {
150 m_durationHoursHasBeenSet = true;
151 m_durationHours = value;
152 }
154 SetDurationHours(value);
155 return *this;
156 }
158
160
164 inline long long GetDurationMinutes() const { return m_durationMinutes; }
165 inline bool DurationMinutesHasBeenSet() const { return m_durationMinutesHasBeenSet; }
166 inline void SetDurationMinutes(long long value) {
167 m_durationMinutesHasBeenSet = true;
168 m_durationMinutes = value;
169 }
171 SetDurationMinutes(value);
172 return *this;
173 }
175
177
180 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
181 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
182 template <typename StartTimeT = Aws::Utils::DateTime>
183 void SetStartTime(StartTimeT&& value) {
184 m_startTimeHasBeenSet = true;
185 m_startTime = std::forward<StartTimeT>(value);
186 }
187 template <typename StartTimeT = Aws::Utils::DateTime>
189 SetStartTime(std::forward<StartTimeT>(value));
190 return *this;
191 }
193
195
198 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
199 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
200 template <typename EndTimeT = Aws::Utils::DateTime>
201 void SetEndTime(EndTimeT&& value) {
202 m_endTimeHasBeenSet = true;
203 m_endTime = std::forward<EndTimeT>(value);
204 }
205 template <typename EndTimeT = Aws::Utils::DateTime>
207 SetEndTime(std::forward<EndTimeT>(value));
208 return *this;
209 }
211 private:
213
214 Aws::String m_ultraServerType;
215
216 int m_ultraServerCount{0};
217
219
220 int m_instanceCount{0};
221
222 Aws::String m_availabilityZone;
223
224 long long m_durationHours{0};
225
226 long long m_durationMinutes{0};
227
228 Aws::Utils::DateTime m_startTime{};
229
230 Aws::Utils::DateTime m_endTime{};
231 bool m_reservedCapacityTypeHasBeenSet = false;
232 bool m_ultraServerTypeHasBeenSet = false;
233 bool m_ultraServerCountHasBeenSet = false;
234 bool m_instanceTypeHasBeenSet = false;
235 bool m_instanceCountHasBeenSet = false;
236 bool m_availabilityZoneHasBeenSet = false;
237 bool m_durationHoursHasBeenSet = false;
238 bool m_durationMinutesHasBeenSet = false;
239 bool m_startTimeHasBeenSet = false;
240 bool m_endTimeHasBeenSet = false;
241};
242
243} // namespace Model
244} // namespace SageMaker
245} // namespace Aws
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKER_API ReservedCapacityOffering & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API ReservedCapacityOffering(Aws::Utils::Json::JsonView jsonValue)
ReservedCapacityOffering & WithUltraServerCount(int value)
AWS_SAGEMAKER_API ReservedCapacityOffering()=default
ReservedCapacityOffering & WithAvailabilityZone(AvailabilityZoneT &&value)
ReservedCapacityOffering & WithInstanceType(ReservedCapacityInstanceType value)
ReservedCapacityOffering & WithDurationHours(long long value)
ReservedCapacityOffering & WithReservedCapacityType(ReservedCapacityType value)
ReservedCapacityOffering & WithDurationMinutes(long long value)
ReservedCapacityOffering & WithStartTime(StartTimeT &&value)
void SetInstanceType(ReservedCapacityInstanceType value)
ReservedCapacityOffering & WithEndTime(EndTimeT &&value)
ReservedCapacityOffering & WithInstanceCount(int value)
ReservedCapacityOffering & WithUltraServerType(UltraServerTypeT &&value)
ReservedCapacityInstanceType GetInstanceType() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue