AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ComputeQuotaSummary.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/ActivationState.h>
11#include <aws/sagemaker/model/ComputeQuotaConfig.h>
12#include <aws/sagemaker/model/ComputeQuotaTarget.h>
13#include <aws/sagemaker/model/SchedulerResourceStatus.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SageMaker {
25namespace Model {
26
33 public:
34 AWS_SAGEMAKER_API ComputeQuotaSummary() = default;
35 AWS_SAGEMAKER_API ComputeQuotaSummary(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetComputeQuotaArn() const { return m_computeQuotaArn; }
44 inline bool ComputeQuotaArnHasBeenSet() const { return m_computeQuotaArnHasBeenSet; }
45 template <typename ComputeQuotaArnT = Aws::String>
46 void SetComputeQuotaArn(ComputeQuotaArnT&& value) {
47 m_computeQuotaArnHasBeenSet = true;
48 m_computeQuotaArn = std::forward<ComputeQuotaArnT>(value);
49 }
50 template <typename ComputeQuotaArnT = Aws::String>
51 ComputeQuotaSummary& WithComputeQuotaArn(ComputeQuotaArnT&& value) {
52 SetComputeQuotaArn(std::forward<ComputeQuotaArnT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetComputeQuotaId() const { return m_computeQuotaId; }
62 inline bool ComputeQuotaIdHasBeenSet() const { return m_computeQuotaIdHasBeenSet; }
63 template <typename ComputeQuotaIdT = Aws::String>
64 void SetComputeQuotaId(ComputeQuotaIdT&& value) {
65 m_computeQuotaIdHasBeenSet = true;
66 m_computeQuotaId = std::forward<ComputeQuotaIdT>(value);
67 }
68 template <typename ComputeQuotaIdT = Aws::String>
69 ComputeQuotaSummary& WithComputeQuotaId(ComputeQuotaIdT&& value) {
70 SetComputeQuotaId(std::forward<ComputeQuotaIdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetName() const { return m_name; }
80 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
81 template <typename NameT = Aws::String>
82 void SetName(NameT&& value) {
83 m_nameHasBeenSet = true;
84 m_name = std::forward<NameT>(value);
85 }
86 template <typename NameT = Aws::String>
87 ComputeQuotaSummary& WithName(NameT&& value) {
88 SetName(std::forward<NameT>(value));
89 return *this;
90 }
92
94
97 inline int GetComputeQuotaVersion() const { return m_computeQuotaVersion; }
98 inline bool ComputeQuotaVersionHasBeenSet() const { return m_computeQuotaVersionHasBeenSet; }
99 inline void SetComputeQuotaVersion(int value) {
100 m_computeQuotaVersionHasBeenSet = true;
101 m_computeQuotaVersion = value;
102 }
105 return *this;
106 }
108
110
113 inline SchedulerResourceStatus GetStatus() const { return m_status; }
114 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
116 m_statusHasBeenSet = true;
117 m_status = value;
118 }
120 SetStatus(value);
121 return *this;
122 }
124
126
129 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
130 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
131 template <typename ClusterArnT = Aws::String>
132 void SetClusterArn(ClusterArnT&& value) {
133 m_clusterArnHasBeenSet = true;
134 m_clusterArn = std::forward<ClusterArnT>(value);
135 }
136 template <typename ClusterArnT = Aws::String>
137 ComputeQuotaSummary& WithClusterArn(ClusterArnT&& value) {
138 SetClusterArn(std::forward<ClusterArnT>(value));
139 return *this;
140 }
142
144
148 inline const ComputeQuotaConfig& GetComputeQuotaConfig() const { return m_computeQuotaConfig; }
149 inline bool ComputeQuotaConfigHasBeenSet() const { return m_computeQuotaConfigHasBeenSet; }
150 template <typename ComputeQuotaConfigT = ComputeQuotaConfig>
151 void SetComputeQuotaConfig(ComputeQuotaConfigT&& value) {
152 m_computeQuotaConfigHasBeenSet = true;
153 m_computeQuotaConfig = std::forward<ComputeQuotaConfigT>(value);
154 }
155 template <typename ComputeQuotaConfigT = ComputeQuotaConfig>
156 ComputeQuotaSummary& WithComputeQuotaConfig(ComputeQuotaConfigT&& value) {
157 SetComputeQuotaConfig(std::forward<ComputeQuotaConfigT>(value));
158 return *this;
159 }
161
163
166 inline const ComputeQuotaTarget& GetComputeQuotaTarget() const { return m_computeQuotaTarget; }
167 inline bool ComputeQuotaTargetHasBeenSet() const { return m_computeQuotaTargetHasBeenSet; }
168 template <typename ComputeQuotaTargetT = ComputeQuotaTarget>
169 void SetComputeQuotaTarget(ComputeQuotaTargetT&& value) {
170 m_computeQuotaTargetHasBeenSet = true;
171 m_computeQuotaTarget = std::forward<ComputeQuotaTargetT>(value);
172 }
173 template <typename ComputeQuotaTargetT = ComputeQuotaTarget>
174 ComputeQuotaSummary& WithComputeQuotaTarget(ComputeQuotaTargetT&& value) {
175 SetComputeQuotaTarget(std::forward<ComputeQuotaTargetT>(value));
176 return *this;
177 }
179
181
185 inline ActivationState GetActivationState() const { return m_activationState; }
186 inline bool ActivationStateHasBeenSet() const { return m_activationStateHasBeenSet; }
188 m_activationStateHasBeenSet = true;
189 m_activationState = value;
190 }
192 SetActivationState(value);
193 return *this;
194 }
196
198
201 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
202 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
203 template <typename CreationTimeT = Aws::Utils::DateTime>
204 void SetCreationTime(CreationTimeT&& value) {
205 m_creationTimeHasBeenSet = true;
206 m_creationTime = std::forward<CreationTimeT>(value);
207 }
208 template <typename CreationTimeT = Aws::Utils::DateTime>
209 ComputeQuotaSummary& WithCreationTime(CreationTimeT&& value) {
210 SetCreationTime(std::forward<CreationTimeT>(value));
211 return *this;
212 }
214
216
219 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
220 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
221 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
222 void SetLastModifiedTime(LastModifiedTimeT&& value) {
223 m_lastModifiedTimeHasBeenSet = true;
224 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
225 }
226 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
227 ComputeQuotaSummary& WithLastModifiedTime(LastModifiedTimeT&& value) {
228 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
229 return *this;
230 }
232 private:
233 Aws::String m_computeQuotaArn;
234
235 Aws::String m_computeQuotaId;
236
237 Aws::String m_name;
238
239 int m_computeQuotaVersion{0};
240
242
243 Aws::String m_clusterArn;
244
245 ComputeQuotaConfig m_computeQuotaConfig;
246
247 ComputeQuotaTarget m_computeQuotaTarget;
248
249 ActivationState m_activationState{ActivationState::NOT_SET};
250
251 Aws::Utils::DateTime m_creationTime{};
252
253 Aws::Utils::DateTime m_lastModifiedTime{};
254 bool m_computeQuotaArnHasBeenSet = false;
255 bool m_computeQuotaIdHasBeenSet = false;
256 bool m_nameHasBeenSet = false;
257 bool m_computeQuotaVersionHasBeenSet = false;
258 bool m_statusHasBeenSet = false;
259 bool m_clusterArnHasBeenSet = false;
260 bool m_computeQuotaConfigHasBeenSet = false;
261 bool m_computeQuotaTargetHasBeenSet = false;
262 bool m_activationStateHasBeenSet = false;
263 bool m_creationTimeHasBeenSet = false;
264 bool m_lastModifiedTimeHasBeenSet = false;
265};
266
267} // namespace Model
268} // namespace SageMaker
269} // namespace Aws
void SetLastModifiedTime(LastModifiedTimeT &&value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
const ComputeQuotaConfig & GetComputeQuotaConfig() const
const ComputeQuotaTarget & GetComputeQuotaTarget() const
void SetComputeQuotaTarget(ComputeQuotaTargetT &&value)
ComputeQuotaSummary & WithComputeQuotaVersion(int value)
AWS_SAGEMAKER_API ComputeQuotaSummary(Aws::Utils::Json::JsonView jsonValue)
void SetComputeQuotaConfig(ComputeQuotaConfigT &&value)
ComputeQuotaSummary & WithCreationTime(CreationTimeT &&value)
ComputeQuotaSummary & WithComputeQuotaArn(ComputeQuotaArnT &&value)
ComputeQuotaSummary & WithComputeQuotaConfig(ComputeQuotaConfigT &&value)
ComputeQuotaSummary & WithComputeQuotaId(ComputeQuotaIdT &&value)
void SetStatus(SchedulerResourceStatus value)
ComputeQuotaSummary & WithActivationState(ActivationState value)
ComputeQuotaSummary & WithComputeQuotaTarget(ComputeQuotaTargetT &&value)
AWS_SAGEMAKER_API ComputeQuotaSummary()=default
SchedulerResourceStatus GetStatus() const
void SetComputeQuotaArn(ComputeQuotaArnT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
ComputeQuotaSummary & WithClusterArn(ClusterArnT &&value)
void SetComputeQuotaId(ComputeQuotaIdT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
AWS_SAGEMAKER_API ComputeQuotaSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ComputeQuotaSummary & WithLastModifiedTime(LastModifiedTimeT &&value)
ComputeQuotaSummary & WithName(NameT &&value)
ComputeQuotaSummary & WithStatus(SchedulerResourceStatus value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue