AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
GetQueueResult.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/deadline/Deadline_EXPORTS.h>
11#include <aws/deadline/model/DefaultQueueBudgetAction.h>
12#include <aws/deadline/model/JobAttachmentSettings.h>
13#include <aws/deadline/model/JobRunAsUser.h>
14#include <aws/deadline/model/QueueBlockedReason.h>
15#include <aws/deadline/model/QueueStatus.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace deadline {
29namespace Model {
31 public:
32 AWS_DEADLINE_API GetQueueResult() = default;
35
37
40 inline const Aws::String& GetQueueId() const { return m_queueId; }
41 template <typename QueueIdT = Aws::String>
42 void SetQueueId(QueueIdT&& value) {
43 m_queueIdHasBeenSet = true;
44 m_queueId = std::forward<QueueIdT>(value);
45 }
46 template <typename QueueIdT = Aws::String>
47 GetQueueResult& WithQueueId(QueueIdT&& value) {
48 SetQueueId(std::forward<QueueIdT>(value));
49 return *this;
50 }
52
54
59 inline const Aws::String& GetDisplayName() const { return m_displayName; }
60 template <typename DisplayNameT = Aws::String>
61 void SetDisplayName(DisplayNameT&& value) {
62 m_displayNameHasBeenSet = true;
63 m_displayName = std::forward<DisplayNameT>(value);
64 }
65 template <typename DisplayNameT = Aws::String>
66 GetQueueResult& WithDisplayName(DisplayNameT&& value) {
67 SetDisplayName(std::forward<DisplayNameT>(value));
68 return *this;
69 }
71
73
78 inline const Aws::String& GetDescription() const { return m_description; }
79 template <typename DescriptionT = Aws::String>
80 void SetDescription(DescriptionT&& value) {
81 m_descriptionHasBeenSet = true;
82 m_description = std::forward<DescriptionT>(value);
83 }
84 template <typename DescriptionT = Aws::String>
85 GetQueueResult& WithDescription(DescriptionT&& value) {
86 SetDescription(std::forward<DescriptionT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetFarmId() const { return m_farmId; }
96 template <typename FarmIdT = Aws::String>
97 void SetFarmId(FarmIdT&& value) {
98 m_farmIdHasBeenSet = true;
99 m_farmId = std::forward<FarmIdT>(value);
100 }
101 template <typename FarmIdT = Aws::String>
102 GetQueueResult& WithFarmId(FarmIdT&& value) {
103 SetFarmId(std::forward<FarmIdT>(value));
104 return *this;
105 }
107
109
115 inline QueueStatus GetStatus() const { return m_status; }
116 inline void SetStatus(QueueStatus value) {
117 m_statusHasBeenSet = true;
118 m_status = value;
119 }
121 SetStatus(value);
122 return *this;
123 }
125
127
130 inline DefaultQueueBudgetAction GetDefaultBudgetAction() const { return m_defaultBudgetAction; }
132 m_defaultBudgetActionHasBeenSet = true;
133 m_defaultBudgetAction = value;
134 }
137 return *this;
138 }
140
142
145 inline QueueBlockedReason GetBlockedReason() const { return m_blockedReason; }
147 m_blockedReasonHasBeenSet = true;
148 m_blockedReason = value;
149 }
151 SetBlockedReason(value);
152 return *this;
153 }
155
157
160 inline const JobAttachmentSettings& GetJobAttachmentSettings() const { return m_jobAttachmentSettings; }
161 template <typename JobAttachmentSettingsT = JobAttachmentSettings>
162 void SetJobAttachmentSettings(JobAttachmentSettingsT&& value) {
163 m_jobAttachmentSettingsHasBeenSet = true;
164 m_jobAttachmentSettings = std::forward<JobAttachmentSettingsT>(value);
165 }
166 template <typename JobAttachmentSettingsT = JobAttachmentSettings>
167 GetQueueResult& WithJobAttachmentSettings(JobAttachmentSettingsT&& value) {
168 SetJobAttachmentSettings(std::forward<JobAttachmentSettingsT>(value));
169 return *this;
170 }
172
174
177 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
178 template <typename RoleArnT = Aws::String>
179 void SetRoleArn(RoleArnT&& value) {
180 m_roleArnHasBeenSet = true;
181 m_roleArn = std::forward<RoleArnT>(value);
182 }
183 template <typename RoleArnT = Aws::String>
184 GetQueueResult& WithRoleArn(RoleArnT&& value) {
185 SetRoleArn(std::forward<RoleArnT>(value));
186 return *this;
187 }
189
191
194 inline const Aws::Vector<Aws::String>& GetRequiredFileSystemLocationNames() const { return m_requiredFileSystemLocationNames; }
195 template <typename RequiredFileSystemLocationNamesT = Aws::Vector<Aws::String>>
196 void SetRequiredFileSystemLocationNames(RequiredFileSystemLocationNamesT&& value) {
197 m_requiredFileSystemLocationNamesHasBeenSet = true;
198 m_requiredFileSystemLocationNames = std::forward<RequiredFileSystemLocationNamesT>(value);
199 }
200 template <typename RequiredFileSystemLocationNamesT = Aws::Vector<Aws::String>>
201 GetQueueResult& WithRequiredFileSystemLocationNames(RequiredFileSystemLocationNamesT&& value) {
202 SetRequiredFileSystemLocationNames(std::forward<RequiredFileSystemLocationNamesT>(value));
203 return *this;
204 }
205 template <typename RequiredFileSystemLocationNamesT = Aws::String>
206 GetQueueResult& AddRequiredFileSystemLocationNames(RequiredFileSystemLocationNamesT&& value) {
207 m_requiredFileSystemLocationNamesHasBeenSet = true;
208 m_requiredFileSystemLocationNames.emplace_back(std::forward<RequiredFileSystemLocationNamesT>(value));
209 return *this;
210 }
212
214
217 inline const Aws::Vector<Aws::String>& GetAllowedStorageProfileIds() const { return m_allowedStorageProfileIds; }
218 template <typename AllowedStorageProfileIdsT = Aws::Vector<Aws::String>>
219 void SetAllowedStorageProfileIds(AllowedStorageProfileIdsT&& value) {
220 m_allowedStorageProfileIdsHasBeenSet = true;
221 m_allowedStorageProfileIds = std::forward<AllowedStorageProfileIdsT>(value);
222 }
223 template <typename AllowedStorageProfileIdsT = Aws::Vector<Aws::String>>
224 GetQueueResult& WithAllowedStorageProfileIds(AllowedStorageProfileIdsT&& value) {
225 SetAllowedStorageProfileIds(std::forward<AllowedStorageProfileIdsT>(value));
226 return *this;
227 }
228 template <typename AllowedStorageProfileIdsT = Aws::String>
229 GetQueueResult& AddAllowedStorageProfileIds(AllowedStorageProfileIdsT&& value) {
230 m_allowedStorageProfileIdsHasBeenSet = true;
231 m_allowedStorageProfileIds.emplace_back(std::forward<AllowedStorageProfileIdsT>(value));
232 return *this;
233 }
235
237
240 inline const JobRunAsUser& GetJobRunAsUser() const { return m_jobRunAsUser; }
241 template <typename JobRunAsUserT = JobRunAsUser>
242 void SetJobRunAsUser(JobRunAsUserT&& value) {
243 m_jobRunAsUserHasBeenSet = true;
244 m_jobRunAsUser = std::forward<JobRunAsUserT>(value);
245 }
246 template <typename JobRunAsUserT = JobRunAsUser>
247 GetQueueResult& WithJobRunAsUser(JobRunAsUserT&& value) {
248 SetJobRunAsUser(std::forward<JobRunAsUserT>(value));
249 return *this;
250 }
252
254
257 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
258 template <typename CreatedAtT = Aws::Utils::DateTime>
259 void SetCreatedAt(CreatedAtT&& value) {
260 m_createdAtHasBeenSet = true;
261 m_createdAt = std::forward<CreatedAtT>(value);
262 }
263 template <typename CreatedAtT = Aws::Utils::DateTime>
264 GetQueueResult& WithCreatedAt(CreatedAtT&& value) {
265 SetCreatedAt(std::forward<CreatedAtT>(value));
266 return *this;
267 }
269
271
274 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
275 template <typename CreatedByT = Aws::String>
276 void SetCreatedBy(CreatedByT&& value) {
277 m_createdByHasBeenSet = true;
278 m_createdBy = std::forward<CreatedByT>(value);
279 }
280 template <typename CreatedByT = Aws::String>
281 GetQueueResult& WithCreatedBy(CreatedByT&& value) {
282 SetCreatedBy(std::forward<CreatedByT>(value));
283 return *this;
284 }
286
288
291 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
292 template <typename UpdatedAtT = Aws::Utils::DateTime>
293 void SetUpdatedAt(UpdatedAtT&& value) {
294 m_updatedAtHasBeenSet = true;
295 m_updatedAt = std::forward<UpdatedAtT>(value);
296 }
297 template <typename UpdatedAtT = Aws::Utils::DateTime>
298 GetQueueResult& WithUpdatedAt(UpdatedAtT&& value) {
299 SetUpdatedAt(std::forward<UpdatedAtT>(value));
300 return *this;
301 }
303
305
308 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
309 template <typename UpdatedByT = Aws::String>
310 void SetUpdatedBy(UpdatedByT&& value) {
311 m_updatedByHasBeenSet = true;
312 m_updatedBy = std::forward<UpdatedByT>(value);
313 }
314 template <typename UpdatedByT = Aws::String>
315 GetQueueResult& WithUpdatedBy(UpdatedByT&& value) {
316 SetUpdatedBy(std::forward<UpdatedByT>(value));
317 return *this;
318 }
320
322
323 inline const Aws::String& GetRequestId() const { return m_requestId; }
324 template <typename RequestIdT = Aws::String>
325 void SetRequestId(RequestIdT&& value) {
326 m_requestIdHasBeenSet = true;
327 m_requestId = std::forward<RequestIdT>(value);
328 }
329 template <typename RequestIdT = Aws::String>
330 GetQueueResult& WithRequestId(RequestIdT&& value) {
331 SetRequestId(std::forward<RequestIdT>(value));
332 return *this;
333 }
335 private:
336 Aws::String m_queueId;
337
338 Aws::String m_displayName;
339
340 Aws::String m_description;
341
342 Aws::String m_farmId;
343
345
347
349
350 JobAttachmentSettings m_jobAttachmentSettings;
351
352 Aws::String m_roleArn;
353
354 Aws::Vector<Aws::String> m_requiredFileSystemLocationNames;
355
356 Aws::Vector<Aws::String> m_allowedStorageProfileIds;
357
358 JobRunAsUser m_jobRunAsUser;
359
360 Aws::Utils::DateTime m_createdAt{};
361
362 Aws::String m_createdBy;
363
364 Aws::Utils::DateTime m_updatedAt{};
365
366 Aws::String m_updatedBy;
367
368 Aws::String m_requestId;
369 bool m_queueIdHasBeenSet = false;
370 bool m_displayNameHasBeenSet = false;
371 bool m_descriptionHasBeenSet = false;
372 bool m_farmIdHasBeenSet = false;
373 bool m_statusHasBeenSet = false;
374 bool m_defaultBudgetActionHasBeenSet = false;
375 bool m_blockedReasonHasBeenSet = false;
376 bool m_jobAttachmentSettingsHasBeenSet = false;
377 bool m_roleArnHasBeenSet = false;
378 bool m_requiredFileSystemLocationNamesHasBeenSet = false;
379 bool m_allowedStorageProfileIdsHasBeenSet = false;
380 bool m_jobRunAsUserHasBeenSet = false;
381 bool m_createdAtHasBeenSet = false;
382 bool m_createdByHasBeenSet = false;
383 bool m_updatedAtHasBeenSet = false;
384 bool m_updatedByHasBeenSet = false;
385 bool m_requestIdHasBeenSet = false;
386};
387
388} // namespace Model
389} // namespace deadline
390} // namespace Aws
GetQueueResult & WithStatus(QueueStatus value)
const JobRunAsUser & GetJobRunAsUser() const
AWS_DEADLINE_API GetQueueResult()=default
void SetUpdatedBy(UpdatedByT &&value)
GetQueueResult & WithUpdatedBy(UpdatedByT &&value)
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 & 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)
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