AWS SDK for C++

AWS SDK for C++ Version 1.11.778

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
18#include <utility>
19
20namespace Aws {
21template <typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils {
25namespace Json {
26class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace deadline {
30namespace Model {
32 public:
33 AWS_DEADLINE_API GetQueueResult() = default;
36
38
41 inline const Aws::String& GetQueueId() const { return m_queueId; }
42 template <typename QueueIdT = Aws::String>
43 void SetQueueId(QueueIdT&& value) {
44 m_queueIdHasBeenSet = true;
45 m_queueId = std::forward<QueueIdT>(value);
46 }
47 template <typename QueueIdT = Aws::String>
48 GetQueueResult& WithQueueId(QueueIdT&& value) {
49 SetQueueId(std::forward<QueueIdT>(value));
50 return *this;
51 }
53
55
60 inline const Aws::String& GetDisplayName() const { return m_displayName; }
61 template <typename DisplayNameT = Aws::String>
62 void SetDisplayName(DisplayNameT&& value) {
63 m_displayNameHasBeenSet = true;
64 m_displayName = std::forward<DisplayNameT>(value);
65 }
66 template <typename DisplayNameT = Aws::String>
67 GetQueueResult& WithDisplayName(DisplayNameT&& value) {
68 SetDisplayName(std::forward<DisplayNameT>(value));
69 return *this;
70 }
72
74
79 inline const Aws::String& GetDescription() const { return m_description; }
80 template <typename DescriptionT = Aws::String>
81 void SetDescription(DescriptionT&& value) {
82 m_descriptionHasBeenSet = true;
83 m_description = std::forward<DescriptionT>(value);
84 }
85 template <typename DescriptionT = Aws::String>
86 GetQueueResult& WithDescription(DescriptionT&& value) {
87 SetDescription(std::forward<DescriptionT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetFarmId() const { return m_farmId; }
97 template <typename FarmIdT = Aws::String>
98 void SetFarmId(FarmIdT&& value) {
99 m_farmIdHasBeenSet = true;
100 m_farmId = std::forward<FarmIdT>(value);
101 }
102 template <typename FarmIdT = Aws::String>
103 GetQueueResult& WithFarmId(FarmIdT&& value) {
104 SetFarmId(std::forward<FarmIdT>(value));
105 return *this;
106 }
108
110
116 inline QueueStatus GetStatus() const { return m_status; }
117 inline void SetStatus(QueueStatus value) {
118 m_statusHasBeenSet = true;
119 m_status = value;
120 }
122 SetStatus(value);
123 return *this;
124 }
126
128
131 inline DefaultQueueBudgetAction GetDefaultBudgetAction() const { return m_defaultBudgetAction; }
133 m_defaultBudgetActionHasBeenSet = true;
134 m_defaultBudgetAction = value;
135 }
138 return *this;
139 }
141
143
146 inline QueueBlockedReason GetBlockedReason() const { return m_blockedReason; }
148 m_blockedReasonHasBeenSet = true;
149 m_blockedReason = value;
150 }
152 SetBlockedReason(value);
153 return *this;
154 }
156
158
161 inline const JobAttachmentSettings& GetJobAttachmentSettings() const { return m_jobAttachmentSettings; }
162 template <typename JobAttachmentSettingsT = JobAttachmentSettings>
163 void SetJobAttachmentSettings(JobAttachmentSettingsT&& value) {
164 m_jobAttachmentSettingsHasBeenSet = true;
165 m_jobAttachmentSettings = std::forward<JobAttachmentSettingsT>(value);
166 }
167 template <typename JobAttachmentSettingsT = JobAttachmentSettings>
168 GetQueueResult& WithJobAttachmentSettings(JobAttachmentSettingsT&& value) {
169 SetJobAttachmentSettings(std::forward<JobAttachmentSettingsT>(value));
170 return *this;
171 }
173
175
178 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
179 template <typename RoleArnT = Aws::String>
180 void SetRoleArn(RoleArnT&& value) {
181 m_roleArnHasBeenSet = true;
182 m_roleArn = std::forward<RoleArnT>(value);
183 }
184 template <typename RoleArnT = Aws::String>
185 GetQueueResult& WithRoleArn(RoleArnT&& value) {
186 SetRoleArn(std::forward<RoleArnT>(value));
187 return *this;
188 }
190
192
195 inline const Aws::Vector<Aws::String>& GetRequiredFileSystemLocationNames() const { return m_requiredFileSystemLocationNames; }
196 template <typename RequiredFileSystemLocationNamesT = Aws::Vector<Aws::String>>
197 void SetRequiredFileSystemLocationNames(RequiredFileSystemLocationNamesT&& value) {
198 m_requiredFileSystemLocationNamesHasBeenSet = true;
199 m_requiredFileSystemLocationNames = std::forward<RequiredFileSystemLocationNamesT>(value);
200 }
201 template <typename RequiredFileSystemLocationNamesT = Aws::Vector<Aws::String>>
202 GetQueueResult& WithRequiredFileSystemLocationNames(RequiredFileSystemLocationNamesT&& value) {
203 SetRequiredFileSystemLocationNames(std::forward<RequiredFileSystemLocationNamesT>(value));
204 return *this;
205 }
206 template <typename RequiredFileSystemLocationNamesT = Aws::String>
207 GetQueueResult& AddRequiredFileSystemLocationNames(RequiredFileSystemLocationNamesT&& value) {
208 m_requiredFileSystemLocationNamesHasBeenSet = true;
209 m_requiredFileSystemLocationNames.emplace_back(std::forward<RequiredFileSystemLocationNamesT>(value));
210 return *this;
211 }
213
215
218 inline const Aws::Vector<Aws::String>& GetAllowedStorageProfileIds() const { return m_allowedStorageProfileIds; }
219 template <typename AllowedStorageProfileIdsT = Aws::Vector<Aws::String>>
220 void SetAllowedStorageProfileIds(AllowedStorageProfileIdsT&& value) {
221 m_allowedStorageProfileIdsHasBeenSet = true;
222 m_allowedStorageProfileIds = std::forward<AllowedStorageProfileIdsT>(value);
223 }
224 template <typename AllowedStorageProfileIdsT = Aws::Vector<Aws::String>>
225 GetQueueResult& WithAllowedStorageProfileIds(AllowedStorageProfileIdsT&& value) {
226 SetAllowedStorageProfileIds(std::forward<AllowedStorageProfileIdsT>(value));
227 return *this;
228 }
229 template <typename AllowedStorageProfileIdsT = Aws::String>
230 GetQueueResult& AddAllowedStorageProfileIds(AllowedStorageProfileIdsT&& value) {
231 m_allowedStorageProfileIdsHasBeenSet = true;
232 m_allowedStorageProfileIds.emplace_back(std::forward<AllowedStorageProfileIdsT>(value));
233 return *this;
234 }
236
238
241 inline const JobRunAsUser& GetJobRunAsUser() const { return m_jobRunAsUser; }
242 template <typename JobRunAsUserT = JobRunAsUser>
243 void SetJobRunAsUser(JobRunAsUserT&& value) {
244 m_jobRunAsUserHasBeenSet = true;
245 m_jobRunAsUser = std::forward<JobRunAsUserT>(value);
246 }
247 template <typename JobRunAsUserT = JobRunAsUser>
248 GetQueueResult& WithJobRunAsUser(JobRunAsUserT&& value) {
249 SetJobRunAsUser(std::forward<JobRunAsUserT>(value));
250 return *this;
251 }
253
255
258 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
259 template <typename CreatedAtT = Aws::Utils::DateTime>
260 void SetCreatedAt(CreatedAtT&& value) {
261 m_createdAtHasBeenSet = true;
262 m_createdAt = std::forward<CreatedAtT>(value);
263 }
264 template <typename CreatedAtT = Aws::Utils::DateTime>
265 GetQueueResult& WithCreatedAt(CreatedAtT&& value) {
266 SetCreatedAt(std::forward<CreatedAtT>(value));
267 return *this;
268 }
270
272
275 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
276 template <typename CreatedByT = Aws::String>
277 void SetCreatedBy(CreatedByT&& value) {
278 m_createdByHasBeenSet = true;
279 m_createdBy = std::forward<CreatedByT>(value);
280 }
281 template <typename CreatedByT = Aws::String>
282 GetQueueResult& WithCreatedBy(CreatedByT&& value) {
283 SetCreatedBy(std::forward<CreatedByT>(value));
284 return *this;
285 }
287
289
292 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
293 template <typename UpdatedAtT = Aws::Utils::DateTime>
294 void SetUpdatedAt(UpdatedAtT&& value) {
295 m_updatedAtHasBeenSet = true;
296 m_updatedAt = std::forward<UpdatedAtT>(value);
297 }
298 template <typename UpdatedAtT = Aws::Utils::DateTime>
299 GetQueueResult& WithUpdatedAt(UpdatedAtT&& value) {
300 SetUpdatedAt(std::forward<UpdatedAtT>(value));
301 return *this;
302 }
304
306
309 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
310 template <typename UpdatedByT = Aws::String>
311 void SetUpdatedBy(UpdatedByT&& value) {
312 m_updatedByHasBeenSet = true;
313 m_updatedBy = std::forward<UpdatedByT>(value);
314 }
315 template <typename UpdatedByT = Aws::String>
316 GetQueueResult& WithUpdatedBy(UpdatedByT&& value) {
317 SetUpdatedBy(std::forward<UpdatedByT>(value));
318 return *this;
319 }
321
323
324 inline const Aws::String& GetRequestId() const { return m_requestId; }
325 template <typename RequestIdT = Aws::String>
326 void SetRequestId(RequestIdT&& value) {
327 m_requestIdHasBeenSet = true;
328 m_requestId = std::forward<RequestIdT>(value);
329 }
330 template <typename RequestIdT = Aws::String>
331 GetQueueResult& WithRequestId(RequestIdT&& value) {
332 SetRequestId(std::forward<RequestIdT>(value));
333 return *this;
334 }
336 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
337
338 private:
339 Aws::String m_queueId;
340
341 Aws::String m_displayName;
342
343 Aws::String m_description;
344
345 Aws::String m_farmId;
346
348
350
352
353 JobAttachmentSettings m_jobAttachmentSettings;
354
355 Aws::String m_roleArn;
356
357 Aws::Vector<Aws::String> m_requiredFileSystemLocationNames;
358
359 Aws::Vector<Aws::String> m_allowedStorageProfileIds;
360
361 JobRunAsUser m_jobRunAsUser;
362
363 Aws::Utils::DateTime m_createdAt{};
364
365 Aws::String m_createdBy;
366
367 Aws::Utils::DateTime m_updatedAt{};
368
369 Aws::String m_updatedBy;
370
371 Aws::String m_requestId;
372 Aws::Http::HttpResponseCode m_HttpResponseCode;
373 bool m_queueIdHasBeenSet = false;
374 bool m_displayNameHasBeenSet = false;
375 bool m_descriptionHasBeenSet = false;
376 bool m_farmIdHasBeenSet = false;
377 bool m_statusHasBeenSet = false;
378 bool m_defaultBudgetActionHasBeenSet = false;
379 bool m_blockedReasonHasBeenSet = false;
380 bool m_jobAttachmentSettingsHasBeenSet = false;
381 bool m_roleArnHasBeenSet = false;
382 bool m_requiredFileSystemLocationNamesHasBeenSet = false;
383 bool m_allowedStorageProfileIdsHasBeenSet = false;
384 bool m_jobRunAsUserHasBeenSet = false;
385 bool m_createdAtHasBeenSet = false;
386 bool m_createdByHasBeenSet = false;
387 bool m_updatedAtHasBeenSet = false;
388 bool m_updatedByHasBeenSet = false;
389 bool m_requestIdHasBeenSet = false;
390};
391
392} // namespace Model
393} // namespace deadline
394} // namespace Aws
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 & 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