AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
ReservedCapacityOffering.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/model/ReservedCapacityType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/sagemaker/model/ReservedCapacityInstanceType.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SageMaker
25{
26namespace Model
27{
28
39 {
40 public:
41 AWS_SAGEMAKER_API ReservedCapacityOffering() = default;
44 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline ReservedCapacityType GetReservedCapacityType() const { return m_reservedCapacityType; }
52 inline bool ReservedCapacityTypeHasBeenSet() const { return m_reservedCapacityTypeHasBeenSet; }
53 inline void SetReservedCapacityType(ReservedCapacityType value) { m_reservedCapacityTypeHasBeenSet = true; m_reservedCapacityType = value; }
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) { m_ultraServerTypeHasBeenSet = true; m_ultraServerType = std::forward<UltraServerTypeT>(value); }
66 template<typename UltraServerTypeT = Aws::String>
67 ReservedCapacityOffering& WithUltraServerType(UltraServerTypeT&& value) { SetUltraServerType(std::forward<UltraServerTypeT>(value)); return *this;}
69
71
74 inline int GetUltraServerCount() const { return m_ultraServerCount; }
75 inline bool UltraServerCountHasBeenSet() const { return m_ultraServerCountHasBeenSet; }
76 inline void SetUltraServerCount(int value) { m_ultraServerCountHasBeenSet = true; m_ultraServerCount = value; }
77 inline ReservedCapacityOffering& WithUltraServerCount(int value) { SetUltraServerCount(value); return *this;}
79
81
84 inline ReservedCapacityInstanceType GetInstanceType() const { return m_instanceType; }
85 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
86 inline void SetInstanceType(ReservedCapacityInstanceType value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
89
91
94 inline int GetInstanceCount() const { return m_instanceCount; }
95 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
96 inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
97 inline ReservedCapacityOffering& WithInstanceCount(int value) { SetInstanceCount(value); return *this;}
99
101
104 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
105 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
106 template<typename AvailabilityZoneT = Aws::String>
107 void SetAvailabilityZone(AvailabilityZoneT&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::forward<AvailabilityZoneT>(value); }
108 template<typename AvailabilityZoneT = Aws::String>
109 ReservedCapacityOffering& WithAvailabilityZone(AvailabilityZoneT&& value) { SetAvailabilityZone(std::forward<AvailabilityZoneT>(value)); return *this;}
111
113
117 inline long long GetDurationHours() const { return m_durationHours; }
118 inline bool DurationHoursHasBeenSet() const { return m_durationHoursHasBeenSet; }
119 inline void SetDurationHours(long long value) { m_durationHoursHasBeenSet = true; m_durationHours = value; }
120 inline ReservedCapacityOffering& WithDurationHours(long long value) { SetDurationHours(value); return *this;}
122
124
128 inline long long GetDurationMinutes() const { return m_durationMinutes; }
129 inline bool DurationMinutesHasBeenSet() const { return m_durationMinutesHasBeenSet; }
130 inline void SetDurationMinutes(long long value) { m_durationMinutesHasBeenSet = true; m_durationMinutes = value; }
131 inline ReservedCapacityOffering& WithDurationMinutes(long long value) { SetDurationMinutes(value); return *this;}
133
135
138 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
139 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
140 template<typename StartTimeT = Aws::Utils::DateTime>
141 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
142 template<typename StartTimeT = Aws::Utils::DateTime>
143 ReservedCapacityOffering& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
145
147
150 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
151 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
152 template<typename EndTimeT = Aws::Utils::DateTime>
153 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
154 template<typename EndTimeT = Aws::Utils::DateTime>
155 ReservedCapacityOffering& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
157 private:
158
160 bool m_reservedCapacityTypeHasBeenSet = false;
161
162 Aws::String m_ultraServerType;
163 bool m_ultraServerTypeHasBeenSet = false;
164
165 int m_ultraServerCount{0};
166 bool m_ultraServerCountHasBeenSet = false;
167
169 bool m_instanceTypeHasBeenSet = false;
170
171 int m_instanceCount{0};
172 bool m_instanceCountHasBeenSet = false;
173
174 Aws::String m_availabilityZone;
175 bool m_availabilityZoneHasBeenSet = false;
176
177 long long m_durationHours{0};
178 bool m_durationHoursHasBeenSet = false;
179
180 long long m_durationMinutes{0};
181 bool m_durationMinutesHasBeenSet = false;
182
183 Aws::Utils::DateTime m_startTime{};
184 bool m_startTimeHasBeenSet = false;
185
186 Aws::Utils::DateTime m_endTime{};
187 bool m_endTimeHasBeenSet = false;
188 };
189
190} // namespace Model
191} // namespace SageMaker
192} // 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