AWS SDK for C++

AWS SDK for C++ Version 1.11.788

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 {
40 public:
41 AWS_DEADLINE_API GetQueueResult() = default;
44
46
49 inline const Aws::String& GetFarmId() const { return m_farmId; }
50 template <typename FarmIdT = Aws::String>
51 void SetFarmId(FarmIdT&& value) {
52 m_farmIdHasBeenSet = true;
53 m_farmId = std::forward<FarmIdT>(value);
54 }
55 template <typename FarmIdT = Aws::String>
56 GetQueueResult& WithFarmId(FarmIdT&& value) {
57 SetFarmId(std::forward<FarmIdT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::String& GetQueueId() const { return m_queueId; }
67 template <typename QueueIdT = Aws::String>
68 void SetQueueId(QueueIdT&& value) {
69 m_queueIdHasBeenSet = true;
70 m_queueId = std::forward<QueueIdT>(value);
71 }
72 template <typename QueueIdT = Aws::String>
73 GetQueueResult& WithQueueId(QueueIdT&& value) {
74 SetQueueId(std::forward<QueueIdT>(value));
75 return *this;
76 }
78
80
85 inline const Aws::String& GetDisplayName() const { return m_displayName; }
86 template <typename DisplayNameT = Aws::String>
87 void SetDisplayName(DisplayNameT&& value) {
88 m_displayNameHasBeenSet = true;
89 m_displayName = std::forward<DisplayNameT>(value);
90 }
91 template <typename DisplayNameT = Aws::String>
92 GetQueueResult& WithDisplayName(DisplayNameT&& value) {
93 SetDisplayName(std::forward<DisplayNameT>(value));
94 return *this;
95 }
97
99
105 inline QueueStatus GetStatus() const { return m_status; }
106 inline void SetStatus(QueueStatus value) {
107 m_statusHasBeenSet = true;
108 m_status = value;
109 }
111 SetStatus(value);
112 return *this;
113 }
115
117
120 inline DefaultQueueBudgetAction GetDefaultBudgetAction() const { return m_defaultBudgetAction; }
122 m_defaultBudgetActionHasBeenSet = true;
123 m_defaultBudgetAction = value;
124 }
127 return *this;
128 }
130
132
135 inline QueueBlockedReason GetBlockedReason() const { return m_blockedReason; }
137 m_blockedReasonHasBeenSet = true;
138 m_blockedReason = value;
139 }
141 SetBlockedReason(value);
142 return *this;
143 }
145
147
150 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
151 template <typename CreatedAtT = Aws::Utils::DateTime>
152 void SetCreatedAt(CreatedAtT&& value) {
153 m_createdAtHasBeenSet = true;
154 m_createdAt = std::forward<CreatedAtT>(value);
155 }
156 template <typename CreatedAtT = Aws::Utils::DateTime>
157 GetQueueResult& WithCreatedAt(CreatedAtT&& value) {
158 SetCreatedAt(std::forward<CreatedAtT>(value));
159 return *this;
160 }
162
164
167 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
168 template <typename CreatedByT = Aws::String>
169 void SetCreatedBy(CreatedByT&& value) {
170 m_createdByHasBeenSet = true;
171 m_createdBy = std::forward<CreatedByT>(value);
172 }
173 template <typename CreatedByT = Aws::String>
174 GetQueueResult& WithCreatedBy(CreatedByT&& value) {
175 SetCreatedBy(std::forward<CreatedByT>(value));
176 return *this;
177 }
179
181
184 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
185 template <typename UpdatedAtT = Aws::Utils::DateTime>
186 void SetUpdatedAt(UpdatedAtT&& value) {
187 m_updatedAtHasBeenSet = true;
188 m_updatedAt = std::forward<UpdatedAtT>(value);
189 }
190 template <typename UpdatedAtT = Aws::Utils::DateTime>
191 GetQueueResult& WithUpdatedAt(UpdatedAtT&& value) {
192 SetUpdatedAt(std::forward<UpdatedAtT>(value));
193 return *this;
194 }
196
198
201 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
202 template <typename UpdatedByT = Aws::String>
203 void SetUpdatedBy(UpdatedByT&& value) {
204 m_updatedByHasBeenSet = true;
205 m_updatedBy = std::forward<UpdatedByT>(value);
206 }
207 template <typename UpdatedByT = Aws::String>
208 GetQueueResult& WithUpdatedBy(UpdatedByT&& value) {
209 SetUpdatedBy(std::forward<UpdatedByT>(value));
210 return *this;
211 }
213
215
220 inline const Aws::String& GetDescription() const { return m_description; }
221 template <typename DescriptionT = Aws::String>
222 void SetDescription(DescriptionT&& value) {
223 m_descriptionHasBeenSet = true;
224 m_description = std::forward<DescriptionT>(value);
225 }
226 template <typename DescriptionT = Aws::String>
227 GetQueueResult& WithDescription(DescriptionT&& value) {
228 SetDescription(std::forward<DescriptionT>(value));
229 return *this;
230 }
232
234
237 inline const JobAttachmentSettings& GetJobAttachmentSettings() const { return m_jobAttachmentSettings; }
238 template <typename JobAttachmentSettingsT = JobAttachmentSettings>
239 void SetJobAttachmentSettings(JobAttachmentSettingsT&& value) {
240 m_jobAttachmentSettingsHasBeenSet = true;
241 m_jobAttachmentSettings = std::forward<JobAttachmentSettingsT>(value);
242 }
243 template <typename JobAttachmentSettingsT = JobAttachmentSettings>
244 GetQueueResult& WithJobAttachmentSettings(JobAttachmentSettingsT&& value) {
245 SetJobAttachmentSettings(std::forward<JobAttachmentSettingsT>(value));
246 return *this;
247 }
249
251
254 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
255 template <typename RoleArnT = Aws::String>
256 void SetRoleArn(RoleArnT&& value) {
257 m_roleArnHasBeenSet = true;
258 m_roleArn = std::forward<RoleArnT>(value);
259 }
260 template <typename RoleArnT = Aws::String>
261 GetQueueResult& WithRoleArn(RoleArnT&& value) {
262 SetRoleArn(std::forward<RoleArnT>(value));
263 return *this;
264 }
266
268
271 inline const Aws::Vector<Aws::String>& GetRequiredFileSystemLocationNames() const { return m_requiredFileSystemLocationNames; }
272 template <typename RequiredFileSystemLocationNamesT = Aws::Vector<Aws::String>>
273 void SetRequiredFileSystemLocationNames(RequiredFileSystemLocationNamesT&& value) {
274 m_requiredFileSystemLocationNamesHasBeenSet = true;
275 m_requiredFileSystemLocationNames = std::forward<RequiredFileSystemLocationNamesT>(value);
276 }
277 template <typename RequiredFileSystemLocationNamesT = Aws::Vector<Aws::String>>
278 GetQueueResult& WithRequiredFileSystemLocationNames(RequiredFileSystemLocationNamesT&& value) {
279 SetRequiredFileSystemLocationNames(std::forward<RequiredFileSystemLocationNamesT>(value));
280 return *this;
281 }
282 template <typename RequiredFileSystemLocationNamesT = Aws::String>
283 GetQueueResult& AddRequiredFileSystemLocationNames(RequiredFileSystemLocationNamesT&& value) {
284 m_requiredFileSystemLocationNamesHasBeenSet = true;
285 m_requiredFileSystemLocationNames.emplace_back(std::forward<RequiredFileSystemLocationNamesT>(value));
286 return *this;
287 }
289
291
294 inline const Aws::Vector<Aws::String>& GetAllowedStorageProfileIds() const { return m_allowedStorageProfileIds; }
295 template <typename AllowedStorageProfileIdsT = Aws::Vector<Aws::String>>
296 void SetAllowedStorageProfileIds(AllowedStorageProfileIdsT&& value) {
297 m_allowedStorageProfileIdsHasBeenSet = true;
298 m_allowedStorageProfileIds = std::forward<AllowedStorageProfileIdsT>(value);
299 }
300 template <typename AllowedStorageProfileIdsT = Aws::Vector<Aws::String>>
301 GetQueueResult& WithAllowedStorageProfileIds(AllowedStorageProfileIdsT&& value) {
302 SetAllowedStorageProfileIds(std::forward<AllowedStorageProfileIdsT>(value));
303 return *this;
304 }
305 template <typename AllowedStorageProfileIdsT = Aws::String>
306 GetQueueResult& AddAllowedStorageProfileIds(AllowedStorageProfileIdsT&& value) {
307 m_allowedStorageProfileIdsHasBeenSet = true;
308 m_allowedStorageProfileIds.emplace_back(std::forward<AllowedStorageProfileIdsT>(value));
309 return *this;
310 }
312
314
317 inline const JobRunAsUser& GetJobRunAsUser() const { return m_jobRunAsUser; }
318 template <typename JobRunAsUserT = JobRunAsUser>
319 void SetJobRunAsUser(JobRunAsUserT&& value) {
320 m_jobRunAsUserHasBeenSet = true;
321 m_jobRunAsUser = std::forward<JobRunAsUserT>(value);
322 }
323 template <typename JobRunAsUserT = JobRunAsUser>
324 GetQueueResult& WithJobRunAsUser(JobRunAsUserT&& value) {
325 SetJobRunAsUser(std::forward<JobRunAsUserT>(value));
326 return *this;
327 }
329
331
335 inline const SchedulingConfiguration& GetSchedulingConfiguration() const { return m_schedulingConfiguration; }
336 template <typename SchedulingConfigurationT = SchedulingConfiguration>
337 void SetSchedulingConfiguration(SchedulingConfigurationT&& value) {
338 m_schedulingConfigurationHasBeenSet = true;
339 m_schedulingConfiguration = std::forward<SchedulingConfigurationT>(value);
340 }
341 template <typename SchedulingConfigurationT = SchedulingConfiguration>
342 GetQueueResult& WithSchedulingConfiguration(SchedulingConfigurationT&& value) {
343 SetSchedulingConfiguration(std::forward<SchedulingConfigurationT>(value));
344 return *this;
345 }
347
349
350 inline const Aws::String& GetRequestId() const { return m_requestId; }
351 template <typename RequestIdT = Aws::String>
352 void SetRequestId(RequestIdT&& value) {
353 m_requestIdHasBeenSet = true;
354 m_requestId = std::forward<RequestIdT>(value);
355 }
356 template <typename RequestIdT = Aws::String>
357 GetQueueResult& WithRequestId(RequestIdT&& value) {
358 SetRequestId(std::forward<RequestIdT>(value));
359 return *this;
360 }
362 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
363
364 private:
365 Aws::String m_farmId;
366
367 Aws::String m_queueId;
368
369 Aws::String m_displayName;
370
372
374
376
377 Aws::Utils::DateTime m_createdAt{};
378
379 Aws::String m_createdBy;
380
381 Aws::Utils::DateTime m_updatedAt{};
382
383 Aws::String m_updatedBy;
384
385 Aws::String m_description;
386
387 JobAttachmentSettings m_jobAttachmentSettings;
388
389 Aws::String m_roleArn;
390
391 Aws::Vector<Aws::String> m_requiredFileSystemLocationNames;
392
393 Aws::Vector<Aws::String> m_allowedStorageProfileIds;
394
395 JobRunAsUser m_jobRunAsUser;
396
397 SchedulingConfiguration m_schedulingConfiguration;
398
399 Aws::String m_requestId;
400 Aws::Http::HttpResponseCode m_HttpResponseCode;
401 bool m_farmIdHasBeenSet = false;
402 bool m_queueIdHasBeenSet = false;
403 bool m_displayNameHasBeenSet = false;
404 bool m_statusHasBeenSet = false;
405 bool m_defaultBudgetActionHasBeenSet = false;
406 bool m_blockedReasonHasBeenSet = false;
407 bool m_createdAtHasBeenSet = false;
408 bool m_createdByHasBeenSet = false;
409 bool m_updatedAtHasBeenSet = false;
410 bool m_updatedByHasBeenSet = false;
411 bool m_descriptionHasBeenSet = false;
412 bool m_jobAttachmentSettingsHasBeenSet = false;
413 bool m_roleArnHasBeenSet = false;
414 bool m_requiredFileSystemLocationNamesHasBeenSet = false;
415 bool m_allowedStorageProfileIdsHasBeenSet = false;
416 bool m_jobRunAsUserHasBeenSet = false;
417 bool m_schedulingConfigurationHasBeenSet = false;
418 bool m_requestIdHasBeenSet = false;
419};
420
421} // namespace Model
422} // namespace deadline
423} // namespace Aws
const SchedulingConfiguration & GetSchedulingConfiguration() const
GetQueueResult & WithStatus(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