AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ComputeQuotaSummary.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemaker/model/SchedulerResourceStatus.h>
10#include <aws/sagemaker/model/ComputeQuotaConfig.h>
11#include <aws/sagemaker/model/ComputeQuotaTarget.h>
12#include <aws/sagemaker/model/ActivationState.h>
13#include <aws/core/utils/DateTime.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace SageMaker
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_SAGEMAKER_API ComputeQuotaSummary() = default;
40 AWS_SAGEMAKER_API ComputeQuotaSummary(Aws::Utils::Json::JsonView jsonValue);
42 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetComputeQuotaArn() const { return m_computeQuotaArn; }
50 inline bool ComputeQuotaArnHasBeenSet() const { return m_computeQuotaArnHasBeenSet; }
51 template<typename ComputeQuotaArnT = Aws::String>
52 void SetComputeQuotaArn(ComputeQuotaArnT&& value) { m_computeQuotaArnHasBeenSet = true; m_computeQuotaArn = std::forward<ComputeQuotaArnT>(value); }
53 template<typename ComputeQuotaArnT = Aws::String>
54 ComputeQuotaSummary& WithComputeQuotaArn(ComputeQuotaArnT&& value) { SetComputeQuotaArn(std::forward<ComputeQuotaArnT>(value)); return *this;}
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) { m_computeQuotaIdHasBeenSet = true; m_computeQuotaId = std::forward<ComputeQuotaIdT>(value); }
65 template<typename ComputeQuotaIdT = Aws::String>
66 ComputeQuotaSummary& WithComputeQuotaId(ComputeQuotaIdT&& value) { SetComputeQuotaId(std::forward<ComputeQuotaIdT>(value)); return *this;}
68
70
73 inline const Aws::String& GetName() const { return m_name; }
74 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
75 template<typename NameT = Aws::String>
76 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
77 template<typename NameT = Aws::String>
78 ComputeQuotaSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
80
82
85 inline int GetComputeQuotaVersion() const { return m_computeQuotaVersion; }
86 inline bool ComputeQuotaVersionHasBeenSet() const { return m_computeQuotaVersionHasBeenSet; }
87 inline void SetComputeQuotaVersion(int value) { m_computeQuotaVersionHasBeenSet = true; m_computeQuotaVersion = value; }
88 inline ComputeQuotaSummary& WithComputeQuotaVersion(int value) { SetComputeQuotaVersion(value); return *this;}
90
92
95 inline SchedulerResourceStatus GetStatus() const { return m_status; }
96 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
97 inline void SetStatus(SchedulerResourceStatus value) { m_statusHasBeenSet = true; m_status = value; }
98 inline ComputeQuotaSummary& WithStatus(SchedulerResourceStatus value) { SetStatus(value); return *this;}
100
102
105 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
106 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
107 template<typename ClusterArnT = Aws::String>
108 void SetClusterArn(ClusterArnT&& value) { m_clusterArnHasBeenSet = true; m_clusterArn = std::forward<ClusterArnT>(value); }
109 template<typename ClusterArnT = Aws::String>
110 ComputeQuotaSummary& WithClusterArn(ClusterArnT&& value) { SetClusterArn(std::forward<ClusterArnT>(value)); return *this;}
112
114
118 inline const ComputeQuotaConfig& GetComputeQuotaConfig() const { return m_computeQuotaConfig; }
119 inline bool ComputeQuotaConfigHasBeenSet() const { return m_computeQuotaConfigHasBeenSet; }
120 template<typename ComputeQuotaConfigT = ComputeQuotaConfig>
121 void SetComputeQuotaConfig(ComputeQuotaConfigT&& value) { m_computeQuotaConfigHasBeenSet = true; m_computeQuotaConfig = std::forward<ComputeQuotaConfigT>(value); }
122 template<typename ComputeQuotaConfigT = ComputeQuotaConfig>
123 ComputeQuotaSummary& WithComputeQuotaConfig(ComputeQuotaConfigT&& value) { SetComputeQuotaConfig(std::forward<ComputeQuotaConfigT>(value)); return *this;}
125
127
130 inline const ComputeQuotaTarget& GetComputeQuotaTarget() const { return m_computeQuotaTarget; }
131 inline bool ComputeQuotaTargetHasBeenSet() const { return m_computeQuotaTargetHasBeenSet; }
132 template<typename ComputeQuotaTargetT = ComputeQuotaTarget>
133 void SetComputeQuotaTarget(ComputeQuotaTargetT&& value) { m_computeQuotaTargetHasBeenSet = true; m_computeQuotaTarget = std::forward<ComputeQuotaTargetT>(value); }
134 template<typename ComputeQuotaTargetT = ComputeQuotaTarget>
135 ComputeQuotaSummary& WithComputeQuotaTarget(ComputeQuotaTargetT&& value) { SetComputeQuotaTarget(std::forward<ComputeQuotaTargetT>(value)); return *this;}
137
139
143 inline ActivationState GetActivationState() const { return m_activationState; }
144 inline bool ActivationStateHasBeenSet() const { return m_activationStateHasBeenSet; }
145 inline void SetActivationState(ActivationState value) { m_activationStateHasBeenSet = true; m_activationState = value; }
148
150
153 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
154 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
155 template<typename CreationTimeT = Aws::Utils::DateTime>
156 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
157 template<typename CreationTimeT = Aws::Utils::DateTime>
158 ComputeQuotaSummary& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
160
162
165 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
166 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
167 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
168 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
169 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
170 ComputeQuotaSummary& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
172 private:
173
174 Aws::String m_computeQuotaArn;
175 bool m_computeQuotaArnHasBeenSet = false;
176
177 Aws::String m_computeQuotaId;
178 bool m_computeQuotaIdHasBeenSet = false;
179
180 Aws::String m_name;
181 bool m_nameHasBeenSet = false;
182
183 int m_computeQuotaVersion{0};
184 bool m_computeQuotaVersionHasBeenSet = false;
185
187 bool m_statusHasBeenSet = false;
188
189 Aws::String m_clusterArn;
190 bool m_clusterArnHasBeenSet = false;
191
192 ComputeQuotaConfig m_computeQuotaConfig;
193 bool m_computeQuotaConfigHasBeenSet = false;
194
195 ComputeQuotaTarget m_computeQuotaTarget;
196 bool m_computeQuotaTargetHasBeenSet = false;
197
198 ActivationState m_activationState{ActivationState::NOT_SET};
199 bool m_activationStateHasBeenSet = false;
200
201 Aws::Utils::DateTime m_creationTime{};
202 bool m_creationTimeHasBeenSet = false;
203
204 Aws::Utils::DateTime m_lastModifiedTime{};
205 bool m_lastModifiedTimeHasBeenSet = false;
206 };
207
208} // namespace Model
209} // namespace SageMaker
210} // 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