AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Queue.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/pcs/PCS_EXPORTS.h>
11#include <aws/pcs/model/ComputeNodeGroupConfiguration.h>
12#include <aws/pcs/model/ErrorInfo.h>
13#include <aws/pcs/model/QueueSlurmConfiguration.h>
14#include <aws/pcs/model/QueueStatus.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace PCS {
26namespace Model {
27
33class Queue {
34 public:
35 AWS_PCS_API Queue() = default;
36 AWS_PCS_API Queue(Aws::Utils::Json::JsonView jsonValue);
39
41
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 template <typename NameT = Aws::String>
47 void SetName(NameT&& value) {
48 m_nameHasBeenSet = true;
49 m_name = std::forward<NameT>(value);
50 }
51 template <typename NameT = Aws::String>
52 Queue& WithName(NameT&& value) {
53 SetName(std::forward<NameT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetId() const { return m_id; }
63 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
64 template <typename IdT = Aws::String>
65 void SetId(IdT&& value) {
66 m_idHasBeenSet = true;
67 m_id = std::forward<IdT>(value);
68 }
69 template <typename IdT = Aws::String>
70 Queue& WithId(IdT&& value) {
71 SetId(std::forward<IdT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetArn() const { return m_arn; }
81 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
82 template <typename ArnT = Aws::String>
83 void SetArn(ArnT&& value) {
84 m_arnHasBeenSet = true;
85 m_arn = std::forward<ArnT>(value);
86 }
87 template <typename ArnT = Aws::String>
88 Queue& WithArn(ArnT&& value) {
89 SetArn(std::forward<ArnT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetClusterId() const { return m_clusterId; }
99 inline bool ClusterIdHasBeenSet() const { return m_clusterIdHasBeenSet; }
100 template <typename ClusterIdT = Aws::String>
101 void SetClusterId(ClusterIdT&& value) {
102 m_clusterIdHasBeenSet = true;
103 m_clusterId = std::forward<ClusterIdT>(value);
104 }
105 template <typename ClusterIdT = Aws::String>
106 Queue& WithClusterId(ClusterIdT&& value) {
107 SetClusterId(std::forward<ClusterIdT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
117 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
118 template <typename CreatedAtT = Aws::Utils::DateTime>
119 void SetCreatedAt(CreatedAtT&& value) {
120 m_createdAtHasBeenSet = true;
121 m_createdAt = std::forward<CreatedAtT>(value);
122 }
123 template <typename CreatedAtT = Aws::Utils::DateTime>
124 Queue& WithCreatedAt(CreatedAtT&& value) {
125 SetCreatedAt(std::forward<CreatedAtT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
135 inline bool ModifiedAtHasBeenSet() const { return m_modifiedAtHasBeenSet; }
136 template <typename ModifiedAtT = Aws::Utils::DateTime>
137 void SetModifiedAt(ModifiedAtT&& value) {
138 m_modifiedAtHasBeenSet = true;
139 m_modifiedAt = std::forward<ModifiedAtT>(value);
140 }
141 template <typename ModifiedAtT = Aws::Utils::DateTime>
142 Queue& WithModifiedAt(ModifiedAtT&& value) {
143 SetModifiedAt(std::forward<ModifiedAtT>(value));
144 return *this;
145 }
147
149
162 inline QueueStatus GetStatus() const { return m_status; }
163 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
164 inline void SetStatus(QueueStatus value) {
165 m_statusHasBeenSet = true;
166 m_status = value;
167 }
168 inline Queue& WithStatus(QueueStatus value) {
169 SetStatus(value);
170 return *this;
171 }
173
175
180 return m_computeNodeGroupConfigurations;
181 }
182 inline bool ComputeNodeGroupConfigurationsHasBeenSet() const { return m_computeNodeGroupConfigurationsHasBeenSet; }
183 template <typename ComputeNodeGroupConfigurationsT = Aws::Vector<ComputeNodeGroupConfiguration>>
184 void SetComputeNodeGroupConfigurations(ComputeNodeGroupConfigurationsT&& value) {
185 m_computeNodeGroupConfigurationsHasBeenSet = true;
186 m_computeNodeGroupConfigurations = std::forward<ComputeNodeGroupConfigurationsT>(value);
187 }
188 template <typename ComputeNodeGroupConfigurationsT = Aws::Vector<ComputeNodeGroupConfiguration>>
189 Queue& WithComputeNodeGroupConfigurations(ComputeNodeGroupConfigurationsT&& value) {
190 SetComputeNodeGroupConfigurations(std::forward<ComputeNodeGroupConfigurationsT>(value));
191 return *this;
192 }
193 template <typename ComputeNodeGroupConfigurationsT = ComputeNodeGroupConfiguration>
194 Queue& AddComputeNodeGroupConfigurations(ComputeNodeGroupConfigurationsT&& value) {
195 m_computeNodeGroupConfigurationsHasBeenSet = true;
196 m_computeNodeGroupConfigurations.emplace_back(std::forward<ComputeNodeGroupConfigurationsT>(value));
197 return *this;
198 }
200
202
205 inline const QueueSlurmConfiguration& GetSlurmConfiguration() const { return m_slurmConfiguration; }
206 inline bool SlurmConfigurationHasBeenSet() const { return m_slurmConfigurationHasBeenSet; }
207 template <typename SlurmConfigurationT = QueueSlurmConfiguration>
208 void SetSlurmConfiguration(SlurmConfigurationT&& value) {
209 m_slurmConfigurationHasBeenSet = true;
210 m_slurmConfiguration = std::forward<SlurmConfigurationT>(value);
211 }
212 template <typename SlurmConfigurationT = QueueSlurmConfiguration>
213 Queue& WithSlurmConfiguration(SlurmConfigurationT&& value) {
214 SetSlurmConfiguration(std::forward<SlurmConfigurationT>(value));
215 return *this;
216 }
218
220
223 inline const Aws::Vector<ErrorInfo>& GetErrorInfo() const { return m_errorInfo; }
224 inline bool ErrorInfoHasBeenSet() const { return m_errorInfoHasBeenSet; }
225 template <typename ErrorInfoT = Aws::Vector<ErrorInfo>>
226 void SetErrorInfo(ErrorInfoT&& value) {
227 m_errorInfoHasBeenSet = true;
228 m_errorInfo = std::forward<ErrorInfoT>(value);
229 }
230 template <typename ErrorInfoT = Aws::Vector<ErrorInfo>>
231 Queue& WithErrorInfo(ErrorInfoT&& value) {
232 SetErrorInfo(std::forward<ErrorInfoT>(value));
233 return *this;
234 }
235 template <typename ErrorInfoT = ErrorInfo>
236 Queue& AddErrorInfo(ErrorInfoT&& value) {
237 m_errorInfoHasBeenSet = true;
238 m_errorInfo.emplace_back(std::forward<ErrorInfoT>(value));
239 return *this;
240 }
242 private:
243 Aws::String m_name;
244
245 Aws::String m_id;
246
247 Aws::String m_arn;
248
249 Aws::String m_clusterId;
250
251 Aws::Utils::DateTime m_createdAt{};
252
253 Aws::Utils::DateTime m_modifiedAt{};
254
256
257 Aws::Vector<ComputeNodeGroupConfiguration> m_computeNodeGroupConfigurations;
258
259 QueueSlurmConfiguration m_slurmConfiguration;
260
261 Aws::Vector<ErrorInfo> m_errorInfo;
262 bool m_nameHasBeenSet = false;
263 bool m_idHasBeenSet = false;
264 bool m_arnHasBeenSet = false;
265 bool m_clusterIdHasBeenSet = false;
266 bool m_createdAtHasBeenSet = false;
267 bool m_modifiedAtHasBeenSet = false;
268 bool m_statusHasBeenSet = false;
269 bool m_computeNodeGroupConfigurationsHasBeenSet = false;
270 bool m_slurmConfigurationHasBeenSet = false;
271 bool m_errorInfoHasBeenSet = false;
272};
273
274} // namespace Model
275} // namespace PCS
276} // namespace Aws
bool ModifiedAtHasBeenSet() const
Definition Queue.h:135
const Aws::Vector< ErrorInfo > & GetErrorInfo() const
Definition Queue.h:223
Queue & AddErrorInfo(ErrorInfoT &&value)
Definition Queue.h:236
Queue & WithErrorInfo(ErrorInfoT &&value)
Definition Queue.h:231
const Aws::String & GetArn() const
Definition Queue.h:80
AWS_PCS_API Queue(Aws::Utils::Json::JsonView jsonValue)
bool StatusHasBeenSet() const
Definition Queue.h:163
void SetArn(ArnT &&value)
Definition Queue.h:83
void SetSlurmConfiguration(SlurmConfigurationT &&value)
Definition Queue.h:208
AWS_PCS_API Queue()=default
bool CreatedAtHasBeenSet() const
Definition Queue.h:117
const Aws::Vector< ComputeNodeGroupConfiguration > & GetComputeNodeGroupConfigurations() const
Definition Queue.h:179
void SetErrorInfo(ErrorInfoT &&value)
Definition Queue.h:226
bool ClusterIdHasBeenSet() const
Definition Queue.h:99
const Aws::Utils::DateTime & GetModifiedAt() const
Definition Queue.h:134
Queue & WithStatus(QueueStatus value)
Definition Queue.h:168
Queue & WithComputeNodeGroupConfigurations(ComputeNodeGroupConfigurationsT &&value)
Definition Queue.h:189
void SetClusterId(ClusterIdT &&value)
Definition Queue.h:101
bool ArnHasBeenSet() const
Definition Queue.h:81
void SetModifiedAt(ModifiedAtT &&value)
Definition Queue.h:137
bool NameHasBeenSet() const
Definition Queue.h:45
Queue & AddComputeNodeGroupConfigurations(ComputeNodeGroupConfigurationsT &&value)
Definition Queue.h:194
void SetCreatedAt(CreatedAtT &&value)
Definition Queue.h:119
Queue & WithClusterId(ClusterIdT &&value)
Definition Queue.h:106
QueueStatus GetStatus() const
Definition Queue.h:162
Queue & WithCreatedAt(CreatedAtT &&value)
Definition Queue.h:124
AWS_PCS_API Queue & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ErrorInfoHasBeenSet() const
Definition Queue.h:224
AWS_PCS_API Aws::Utils::Json::JsonValue Jsonize() const
Queue & WithName(NameT &&value)
Definition Queue.h:52
void SetId(IdT &&value)
Definition Queue.h:65
Queue & WithArn(ArnT &&value)
Definition Queue.h:88
bool SlurmConfigurationHasBeenSet() const
Definition Queue.h:206
void SetName(NameT &&value)
Definition Queue.h:47
Queue & WithId(IdT &&value)
Definition Queue.h:70
bool ComputeNodeGroupConfigurationsHasBeenSet() const
Definition Queue.h:182
const Aws::String & GetId() const
Definition Queue.h:62
bool IdHasBeenSet() const
Definition Queue.h:63
Queue & WithModifiedAt(ModifiedAtT &&value)
Definition Queue.h:142
void SetStatus(QueueStatus value)
Definition Queue.h:164
Queue & WithSlurmConfiguration(SlurmConfigurationT &&value)
Definition Queue.h:213
const Aws::String & GetClusterId() const
Definition Queue.h:98
const Aws::String & GetName() const
Definition Queue.h:44
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Queue.h:116
void SetComputeNodeGroupConfigurations(ComputeNodeGroupConfigurationsT &&value)
Definition Queue.h:184
const QueueSlurmConfiguration & GetSlurmConfiguration() const
Definition Queue.h:205
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue