AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
GetQueueResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/deadline/Deadline_EXPORTS.h>
12#include <aws/deadline/model/DefaultQueueBudgetAction.h>
13#include <aws/deadline/model/JobAttachmentSettings.h>
14#include <aws/deadline/model/JobRunAsUser.h>
15#include <aws/deadline/model/QueueBlockedReason.h>
16#include <aws/deadline/model/QueueStatus.h>
17#include <aws/deadline/model/SchedulingConfiguration.h>
18
19#include <utility>
20
21namespace Aws {
22template <typename RESULT_TYPE>
23class AmazonWebServiceResult;
24
25namespace Utils {
26namespace Json {
27class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace deadline {
31namespace Model {
33 public:
34 AWS_DEADLINE_API GetQueueResult() = default;
37
39
42 inline const Aws::String& GetFarmId() const { return m_farmId; }
43 template <typename FarmIdT = Aws::String>
44 void SetFarmId(FarmIdT&& value) {
45 m_farmIdHasBeenSet = true;
46 m_farmId = std::forward<FarmIdT>(value);
47 }
48 template <typename FarmIdT = Aws::String>
49 GetQueueResult& WithFarmId(FarmIdT&& value) {
50 SetFarmId(std::forward<FarmIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetQueueId() const { return m_queueId; }
60 template <typename QueueIdT = Aws::String>
61 void SetQueueId(QueueIdT&& value) {
62 m_queueIdHasBeenSet = true;
63 m_queueId = std::forward<QueueIdT>(value);
64 }
65 template <typename QueueIdT = Aws::String>
66 GetQueueResult& WithQueueId(QueueIdT&& value) {
67 SetQueueId(std::forward<QueueIdT>(value));
68 return *this;
69 }
71
73
78 inline const Aws::String& GetDisplayName() const { return m_displayName; }
79 template <typename DisplayNameT = Aws::String>
80 void SetDisplayName(DisplayNameT&& value) {
81 m_displayNameHasBeenSet = true;
82 m_displayName = std::forward<DisplayNameT>(value);
83 }
84 template <typename DisplayNameT = Aws::String>
85 GetQueueResult& WithDisplayName(DisplayNameT&& value) {
86 SetDisplayName(std::forward<DisplayNameT>(value));
87 return *this;
88 }
90
92
98 inline QueueStatus GetStatus() const { return m_status; }
99 inline void SetStatus(QueueStatus value) {
100 m_statusHasBeenSet = true;
101 m_status = value;
102 }
104 SetStatus(value);
105 return *this;
106 }
108
110
113 inline DefaultQueueBudgetAction GetDefaultBudgetAction() const { return m_defaultBudgetAction; }
115 m_defaultBudgetActionHasBeenSet = true;
116 m_defaultBudgetAction = value;
117 }
120 return *this;
121 }
123
125
128 inline QueueBlockedReason GetBlockedReason() const { return m_blockedReason; }
130 m_blockedReasonHasBeenSet = true;
131 m_blockedReason = value;
132 }
134 SetBlockedReason(value);
135 return *this;
136 }
138
140
143 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
144 template <typename CreatedAtT = Aws::Utils::DateTime>
145 void SetCreatedAt(CreatedAtT&& value) {
146 m_createdAtHasBeenSet = true;
147 m_createdAt = std::forward<CreatedAtT>(value);
148 }
149 template <typename CreatedAtT = Aws::Utils::DateTime>
150 GetQueueResult& WithCreatedAt(CreatedAtT&& value) {
151 SetCreatedAt(std::forward<CreatedAtT>(value));
152 return *this;
153 }
155
157
160 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
161 template <typename CreatedByT = Aws::String>
162 void SetCreatedBy(CreatedByT&& value) {
163 m_createdByHasBeenSet = true;
164 m_createdBy = std::forward<CreatedByT>(value);
165 }
166 template <typename CreatedByT = Aws::String>
167 GetQueueResult& WithCreatedBy(CreatedByT&& value) {
168 SetCreatedBy(std::forward<CreatedByT>(value));
169 return *this;
170 }
172
174
177 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
178 template <typename UpdatedAtT = Aws::Utils::DateTime>
179 void SetUpdatedAt(UpdatedAtT&& value) {
180 m_updatedAtHasBeenSet = true;
181 m_updatedAt = std::forward<UpdatedAtT>(value);
182 }
183 template <typename UpdatedAtT = Aws::Utils::DateTime>
184 GetQueueResult& WithUpdatedAt(UpdatedAtT&& value) {
185 SetUpdatedAt(std::forward<UpdatedAtT>(value));
186 return *this;
187 }
189
191
194 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
195 template <typename UpdatedByT = Aws::String>
196 void SetUpdatedBy(UpdatedByT&& value) {
197 m_updatedByHasBeenSet = true;
198 m_updatedBy = std::forward<UpdatedByT>(value);
199 }
200 template <typename UpdatedByT = Aws::String>
201 GetQueueResult& WithUpdatedBy(UpdatedByT&& value) {
202 SetUpdatedBy(std::forward<UpdatedByT>(value));
203 return *this;
204 }
206
208
213 inline const Aws::String& GetDescription() const { return m_description; }
214 template <typename DescriptionT = Aws::String>
215 void SetDescription(DescriptionT&& value) {
216 m_descriptionHasBeenSet = true;
217 m_description = std::forward<DescriptionT>(value);
218 }
219 template <typename DescriptionT = Aws::String>
220 GetQueueResult& WithDescription(DescriptionT&& value) {
221 SetDescription(std::forward<DescriptionT>(value));
222 return *this;
223 }
225
227
230 inline const JobAttachmentSettings& GetJobAttachmentSettings() const { return m_jobAttachmentSettings; }
231 template <typename JobAttachmentSettingsT = JobAttachmentSettings>
232 void SetJobAttachmentSettings(JobAttachmentSettingsT&& value) {
233 m_jobAttachmentSettingsHasBeenSet = true;
234 m_jobAttachmentSettings = std::forward<JobAttachmentSettingsT>(value);
235 }
236 template <typename JobAttachmentSettingsT = JobAttachmentSettings>
237 GetQueueResult& WithJobAttachmentSettings(JobAttachmentSettingsT&& value) {
238 SetJobAttachmentSettings(std::forward<JobAttachmentSettingsT>(value));
239 return *this;
240 }
242
244
247 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
248 template <typename RoleArnT = Aws::String>
249 void SetRoleArn(RoleArnT&& value) {
250 m_roleArnHasBeenSet = true;
251 m_roleArn = std::forward<RoleArnT>(value);
252 }
253 template <typename RoleArnT = Aws::String>
254 GetQueueResult& WithRoleArn(RoleArnT&& value) {
255 SetRoleArn(std::forward<RoleArnT>(value));
256 return *this;
257 }
259
261
264 inline const Aws::Vector<Aws::String>& GetRequiredFileSystemLocationNames() const { return m_requiredFileSystemLocationNames; }
265 template <typename RequiredFileSystemLocationNamesT = Aws::Vector<Aws::String>>
266 void SetRequiredFileSystemLocationNames(RequiredFileSystemLocationNamesT&& value) {
267 m_requiredFileSystemLocationNamesHasBeenSet = true;
268 m_requiredFileSystemLocationNames = std::forward<RequiredFileSystemLocationNamesT>(value);
269 }
270 template <typename RequiredFileSystemLocationNamesT = Aws::Vector<Aws::String>>
271 GetQueueResult& WithRequiredFileSystemLocationNames(RequiredFileSystemLocationNamesT&& value) {
272 SetRequiredFileSystemLocationNames(std::forward<RequiredFileSystemLocationNamesT>(value));
273 return *this;
274 }
275 template <typename RequiredFileSystemLocationNamesT = Aws::String>
276 GetQueueResult& AddRequiredFileSystemLocationNames(RequiredFileSystemLocationNamesT&& value) {
277 m_requiredFileSystemLocationNamesHasBeenSet = true;
278 m_requiredFileSystemLocationNames.emplace_back(std::forward<RequiredFileSystemLocationNamesT>(value));
279 return *this;
280 }
282
284
287 inline const Aws::Vector<Aws::String>& GetAllowedStorageProfileIds() const { return m_allowedStorageProfileIds; }
288 template <typename AllowedStorageProfileIdsT = Aws::Vector<Aws::String>>
289 void SetAllowedStorageProfileIds(AllowedStorageProfileIdsT&& value) {
290 m_allowedStorageProfileIdsHasBeenSet = true;
291 m_allowedStorageProfileIds = std::forward<AllowedStorageProfileIdsT>(value);
292 }
293 template <typename AllowedStorageProfileIdsT = Aws::Vector<Aws::String>>
294 GetQueueResult& WithAllowedStorageProfileIds(AllowedStorageProfileIdsT&& value) {
295 SetAllowedStorageProfileIds(std::forward<AllowedStorageProfileIdsT>(value));
296 return *this;
297 }
298 template <typename AllowedStorageProfileIdsT = Aws::String>
299 GetQueueResult& AddAllowedStorageProfileIds(AllowedStorageProfileIdsT&& value) {
300 m_allowedStorageProfileIdsHasBeenSet = true;
301 m_allowedStorageProfileIds.emplace_back(std::forward<AllowedStorageProfileIdsT>(value));
302 return *this;
303 }
305
307
310 inline const JobRunAsUser& GetJobRunAsUser() const { return m_jobRunAsUser; }
311 template <typename JobRunAsUserT = JobRunAsUser>
312 void SetJobRunAsUser(JobRunAsUserT&& value) {
313 m_jobRunAsUserHasBeenSet = true;
314 m_jobRunAsUser = std::forward<JobRunAsUserT>(value);
315 }
316 template <typename JobRunAsUserT = JobRunAsUser>
317 GetQueueResult& WithJobRunAsUser(JobRunAsUserT&& value) {
318 SetJobRunAsUser(std::forward<JobRunAsUserT>(value));
319 return *this;
320 }
322
324
328 inline const SchedulingConfiguration& GetSchedulingConfiguration() const { return m_schedulingConfiguration; }
329 template <typename SchedulingConfigurationT = SchedulingConfiguration>
330 void SetSchedulingConfiguration(SchedulingConfigurationT&& value) {
331 m_schedulingConfigurationHasBeenSet = true;
332 m_schedulingConfiguration = std::forward<SchedulingConfigurationT>(value);
333 }
334 template <typename SchedulingConfigurationT = SchedulingConfiguration>
335 GetQueueResult& WithSchedulingConfiguration(SchedulingConfigurationT&& value) {
336 SetSchedulingConfiguration(std::forward<SchedulingConfigurationT>(value));
337 return *this;
338 }
340
342
343 inline const Aws::String& GetRequestId() const { return m_requestId; }
344 template <typename RequestIdT = Aws::String>
345 void SetRequestId(RequestIdT&& value) {
346 m_requestIdHasBeenSet = true;
347 m_requestId = std::forward<RequestIdT>(value);
348 }
349 template <typename RequestIdT = Aws::String>
350 GetQueueResult& WithRequestId(RequestIdT&& value) {
351 SetRequestId(std::forward<RequestIdT>(value));
352 return *this;
353 }
355 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
356
357 private:
358 Aws::String m_farmId;
359
360 Aws::String m_queueId;
361
362 Aws::String m_displayName;
363
365
367
369
370 Aws::Utils::DateTime m_createdAt{};
371
372 Aws::String m_createdBy;
373
374 Aws::Utils::DateTime m_updatedAt{};
375
376 Aws::String m_updatedBy;
377
378 Aws::String m_description;
379
380 JobAttachmentSettings m_jobAttachmentSettings;
381
382 Aws::String m_roleArn;
383
384 Aws::Vector<Aws::String> m_requiredFileSystemLocationNames;
385
386 Aws::Vector<Aws::String> m_allowedStorageProfileIds;
387
388 JobRunAsUser m_jobRunAsUser;
389
390 SchedulingConfiguration m_schedulingConfiguration;
391
392 Aws::String m_requestId;
393 Aws::Http::HttpResponseCode m_HttpResponseCode;
394 bool m_farmIdHasBeenSet = false;
395 bool m_queueIdHasBeenSet = false;
396 bool m_displayNameHasBeenSet = false;
397 bool m_statusHasBeenSet = false;
398 bool m_defaultBudgetActionHasBeenSet = false;
399 bool m_blockedReasonHasBeenSet = false;
400 bool m_createdAtHasBeenSet = false;
401 bool m_createdByHasBeenSet = false;
402 bool m_updatedAtHasBeenSet = false;
403 bool m_updatedByHasBeenSet = false;
404 bool m_descriptionHasBeenSet = false;
405 bool m_jobAttachmentSettingsHasBeenSet = false;
406 bool m_roleArnHasBeenSet = false;
407 bool m_requiredFileSystemLocationNamesHasBeenSet = false;
408 bool m_allowedStorageProfileIdsHasBeenSet = false;
409 bool m_jobRunAsUserHasBeenSet = false;
410 bool m_schedulingConfigurationHasBeenSet = false;
411 bool m_requestIdHasBeenSet = false;
412};
413
414} // namespace Model
415} // namespace deadline
416} // namespace Aws
const SchedulingConfiguration & GetSchedulingConfiguration() const
GetQueueResult & WithStatus(QueueStatus value)
void SetStatus(QueueStatus value)
const JobRunAsUser & GetJobRunAsUser() const
AWS_DEADLINE_API GetQueueResult()=default
void SetUpdatedBy(UpdatedByT &&value)
GetQueueResult & WithUpdatedBy(UpdatedByT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
QueueBlockedReason GetBlockedReason() const
void SetDefaultBudgetAction(DefaultQueueBudgetAction value)
const Aws::String & GetDescription() const
GetQueueResult & WithBlockedReason(QueueBlockedReason value)
GetQueueResult & WithUpdatedAt(UpdatedAtT &&value)
GetQueueResult & WithDescription(DescriptionT &&value)
GetQueueResult & WithRequestId(RequestIdT &&value)
void SetRequiredFileSystemLocationNames(RequiredFileSystemLocationNamesT &&value)
GetQueueResult & WithCreatedBy(CreatedByT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
GetQueueResult & AddRequiredFileSystemLocationNames(RequiredFileSystemLocationNamesT &&value)
GetQueueResult & WithSchedulingConfiguration(SchedulingConfigurationT &&value)
GetQueueResult & WithRoleArn(RoleArnT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::Vector< Aws::String > & GetRequiredFileSystemLocationNames() const
AWS_DEADLINE_API GetQueueResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetDisplayName(DisplayNameT &&value)
const Aws::String & GetUpdatedBy() const
void SetUpdatedAt(UpdatedAtT &&value)
void SetCreatedAt(CreatedAtT &&value)
GetQueueResult & WithCreatedAt(CreatedAtT &&value)
GetQueueResult & WithDisplayName(DisplayNameT &&value)
GetQueueResult & WithJobRunAsUser(JobRunAsUserT &&value)
GetQueueResult & WithDefaultBudgetAction(DefaultQueueBudgetAction value)
void SetSchedulingConfiguration(SchedulingConfigurationT &&value)
AWS_DEADLINE_API GetQueueResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetQueueResult & WithJobAttachmentSettings(JobAttachmentSettingsT &&value)
GetQueueResult & WithFarmId(FarmIdT &&value)
void SetJobRunAsUser(JobRunAsUserT &&value)
const Aws::String & GetRequestId() const
const Aws::String & GetQueueId() const
void SetCreatedBy(CreatedByT &&value)
const Aws::String & GetDisplayName() const
const Aws::String & GetFarmId() const
const Aws::String & GetRoleArn() const
const Aws::String & GetCreatedBy() const
GetQueueResult & WithQueueId(QueueIdT &&value)
DefaultQueueBudgetAction GetDefaultBudgetAction() const
GetQueueResult & WithAllowedStorageProfileIds(AllowedStorageProfileIdsT &&value)
void SetAllowedStorageProfileIds(AllowedStorageProfileIdsT &&value)
void SetDescription(DescriptionT &&value)
const JobAttachmentSettings & GetJobAttachmentSettings() const
const Aws::Vector< Aws::String > & GetAllowedStorageProfileIds() const
GetQueueResult & AddAllowedStorageProfileIds(AllowedStorageProfileIdsT &&value)
GetQueueResult & WithRequiredFileSystemLocationNames(RequiredFileSystemLocationNamesT &&value)
void SetJobAttachmentSettings(JobAttachmentSettingsT &&value)
void SetBlockedReason(QueueBlockedReason value)
void SetRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue