AWS SDK for C++

AWS SDK for C++ Version 1.11.785

Loading...
Searching...
No Matches
UpdateQueueRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/deadline/DeadlineRequest.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/SchedulingConfiguration.h>
16
17#include <utility>
18
19namespace Aws {
20namespace deadline {
21namespace Model {
22
26 public:
27 AWS_DEADLINE_API UpdateQueueRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateQueue"; }
34
35 AWS_DEADLINE_API Aws::String SerializePayload() const override;
36
38
40
43 inline const Aws::String& GetFarmId() const { return m_farmId; }
44 inline bool FarmIdHasBeenSet() const { return m_farmIdHasBeenSet; }
45 template <typename FarmIdT = Aws::String>
46 void SetFarmId(FarmIdT&& value) {
47 m_farmIdHasBeenSet = true;
48 m_farmId = std::forward<FarmIdT>(value);
49 }
50 template <typename FarmIdT = Aws::String>
51 UpdateQueueRequest& WithFarmId(FarmIdT&& value) {
52 SetFarmId(std::forward<FarmIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetQueueId() const { return m_queueId; }
62 inline bool QueueIdHasBeenSet() const { return m_queueIdHasBeenSet; }
63 template <typename QueueIdT = Aws::String>
64 void SetQueueId(QueueIdT&& value) {
65 m_queueIdHasBeenSet = true;
66 m_queueId = std::forward<QueueIdT>(value);
67 }
68 template <typename QueueIdT = Aws::String>
69 UpdateQueueRequest& WithQueueId(QueueIdT&& value) {
70 SetQueueId(std::forward<QueueIdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetClientToken() const { return m_clientToken; }
80 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
81 template <typename ClientTokenT = Aws::String>
82 void SetClientToken(ClientTokenT&& value) {
83 m_clientTokenHasBeenSet = true;
84 m_clientToken = std::forward<ClientTokenT>(value);
85 }
86 template <typename ClientTokenT = Aws::String>
87 UpdateQueueRequest& WithClientToken(ClientTokenT&& value) {
88 SetClientToken(std::forward<ClientTokenT>(value));
89 return *this;
90 }
92
94
100 inline const Aws::String& GetDisplayName() const { return m_displayName; }
101 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
102 template <typename DisplayNameT = Aws::String>
103 void SetDisplayName(DisplayNameT&& value) {
104 m_displayNameHasBeenSet = true;
105 m_displayName = std::forward<DisplayNameT>(value);
106 }
107 template <typename DisplayNameT = Aws::String>
108 UpdateQueueRequest& WithDisplayName(DisplayNameT&& value) {
109 SetDisplayName(std::forward<DisplayNameT>(value));
110 return *this;
111 }
113
115
121 inline const Aws::String& GetDescription() const { return m_description; }
122 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
123 template <typename DescriptionT = Aws::String>
124 void SetDescription(DescriptionT&& value) {
125 m_descriptionHasBeenSet = true;
126 m_description = std::forward<DescriptionT>(value);
127 }
128 template <typename DescriptionT = Aws::String>
129 UpdateQueueRequest& WithDescription(DescriptionT&& value) {
130 SetDescription(std::forward<DescriptionT>(value));
131 return *this;
132 }
134
136
140 inline DefaultQueueBudgetAction GetDefaultBudgetAction() const { return m_defaultBudgetAction; }
141 inline bool DefaultBudgetActionHasBeenSet() const { return m_defaultBudgetActionHasBeenSet; }
143 m_defaultBudgetActionHasBeenSet = true;
144 m_defaultBudgetAction = value;
145 }
148 return *this;
149 }
151
153
156 inline const JobAttachmentSettings& GetJobAttachmentSettings() const { return m_jobAttachmentSettings; }
157 inline bool JobAttachmentSettingsHasBeenSet() const { return m_jobAttachmentSettingsHasBeenSet; }
158 template <typename JobAttachmentSettingsT = JobAttachmentSettings>
159 void SetJobAttachmentSettings(JobAttachmentSettingsT&& value) {
160 m_jobAttachmentSettingsHasBeenSet = true;
161 m_jobAttachmentSettings = std::forward<JobAttachmentSettingsT>(value);
162 }
163 template <typename JobAttachmentSettingsT = JobAttachmentSettings>
164 UpdateQueueRequest& WithJobAttachmentSettings(JobAttachmentSettingsT&& value) {
165 SetJobAttachmentSettings(std::forward<JobAttachmentSettingsT>(value));
166 return *this;
167 }
169
171
174 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
175 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
176 template <typename RoleArnT = Aws::String>
177 void SetRoleArn(RoleArnT&& value) {
178 m_roleArnHasBeenSet = true;
179 m_roleArn = std::forward<RoleArnT>(value);
180 }
181 template <typename RoleArnT = Aws::String>
182 UpdateQueueRequest& WithRoleArn(RoleArnT&& value) {
183 SetRoleArn(std::forward<RoleArnT>(value));
184 return *this;
185 }
187
189
192 inline const JobRunAsUser& GetJobRunAsUser() const { return m_jobRunAsUser; }
193 inline bool JobRunAsUserHasBeenSet() const { return m_jobRunAsUserHasBeenSet; }
194 template <typename JobRunAsUserT = JobRunAsUser>
195 void SetJobRunAsUser(JobRunAsUserT&& value) {
196 m_jobRunAsUserHasBeenSet = true;
197 m_jobRunAsUser = std::forward<JobRunAsUserT>(value);
198 }
199 template <typename JobRunAsUserT = JobRunAsUser>
200 UpdateQueueRequest& WithJobRunAsUser(JobRunAsUserT&& value) {
201 SetJobRunAsUser(std::forward<JobRunAsUserT>(value));
202 return *this;
203 }
205
207
210 inline const Aws::Vector<Aws::String>& GetRequiredFileSystemLocationNamesToAdd() const { return m_requiredFileSystemLocationNamesToAdd; }
211 inline bool RequiredFileSystemLocationNamesToAddHasBeenSet() const { return m_requiredFileSystemLocationNamesToAddHasBeenSet; }
212 template <typename RequiredFileSystemLocationNamesToAddT = Aws::Vector<Aws::String>>
213 void SetRequiredFileSystemLocationNamesToAdd(RequiredFileSystemLocationNamesToAddT&& value) {
214 m_requiredFileSystemLocationNamesToAddHasBeenSet = true;
215 m_requiredFileSystemLocationNamesToAdd = std::forward<RequiredFileSystemLocationNamesToAddT>(value);
216 }
217 template <typename RequiredFileSystemLocationNamesToAddT = Aws::Vector<Aws::String>>
218 UpdateQueueRequest& WithRequiredFileSystemLocationNamesToAdd(RequiredFileSystemLocationNamesToAddT&& value) {
219 SetRequiredFileSystemLocationNamesToAdd(std::forward<RequiredFileSystemLocationNamesToAddT>(value));
220 return *this;
221 }
222 template <typename RequiredFileSystemLocationNamesToAddT = Aws::String>
223 UpdateQueueRequest& AddRequiredFileSystemLocationNamesToAdd(RequiredFileSystemLocationNamesToAddT&& value) {
224 m_requiredFileSystemLocationNamesToAddHasBeenSet = true;
225 m_requiredFileSystemLocationNamesToAdd.emplace_back(std::forward<RequiredFileSystemLocationNamesToAddT>(value));
226 return *this;
227 }
229
231
235 return m_requiredFileSystemLocationNamesToRemove;
236 }
237 inline bool RequiredFileSystemLocationNamesToRemoveHasBeenSet() const { return m_requiredFileSystemLocationNamesToRemoveHasBeenSet; }
238 template <typename RequiredFileSystemLocationNamesToRemoveT = Aws::Vector<Aws::String>>
239 void SetRequiredFileSystemLocationNamesToRemove(RequiredFileSystemLocationNamesToRemoveT&& value) {
240 m_requiredFileSystemLocationNamesToRemoveHasBeenSet = true;
241 m_requiredFileSystemLocationNamesToRemove = std::forward<RequiredFileSystemLocationNamesToRemoveT>(value);
242 }
243 template <typename RequiredFileSystemLocationNamesToRemoveT = Aws::Vector<Aws::String>>
244 UpdateQueueRequest& WithRequiredFileSystemLocationNamesToRemove(RequiredFileSystemLocationNamesToRemoveT&& value) {
245 SetRequiredFileSystemLocationNamesToRemove(std::forward<RequiredFileSystemLocationNamesToRemoveT>(value));
246 return *this;
247 }
248 template <typename RequiredFileSystemLocationNamesToRemoveT = Aws::String>
249 UpdateQueueRequest& AddRequiredFileSystemLocationNamesToRemove(RequiredFileSystemLocationNamesToRemoveT&& value) {
250 m_requiredFileSystemLocationNamesToRemoveHasBeenSet = true;
251 m_requiredFileSystemLocationNamesToRemove.emplace_back(std::forward<RequiredFileSystemLocationNamesToRemoveT>(value));
252 return *this;
253 }
255
257
260 inline const Aws::Vector<Aws::String>& GetAllowedStorageProfileIdsToAdd() const { return m_allowedStorageProfileIdsToAdd; }
261 inline bool AllowedStorageProfileIdsToAddHasBeenSet() const { return m_allowedStorageProfileIdsToAddHasBeenSet; }
262 template <typename AllowedStorageProfileIdsToAddT = Aws::Vector<Aws::String>>
263 void SetAllowedStorageProfileIdsToAdd(AllowedStorageProfileIdsToAddT&& value) {
264 m_allowedStorageProfileIdsToAddHasBeenSet = true;
265 m_allowedStorageProfileIdsToAdd = std::forward<AllowedStorageProfileIdsToAddT>(value);
266 }
267 template <typename AllowedStorageProfileIdsToAddT = Aws::Vector<Aws::String>>
268 UpdateQueueRequest& WithAllowedStorageProfileIdsToAdd(AllowedStorageProfileIdsToAddT&& value) {
269 SetAllowedStorageProfileIdsToAdd(std::forward<AllowedStorageProfileIdsToAddT>(value));
270 return *this;
271 }
272 template <typename AllowedStorageProfileIdsToAddT = Aws::String>
273 UpdateQueueRequest& AddAllowedStorageProfileIdsToAdd(AllowedStorageProfileIdsToAddT&& value) {
274 m_allowedStorageProfileIdsToAddHasBeenSet = true;
275 m_allowedStorageProfileIdsToAdd.emplace_back(std::forward<AllowedStorageProfileIdsToAddT>(value));
276 return *this;
277 }
279
281
284 inline const Aws::Vector<Aws::String>& GetAllowedStorageProfileIdsToRemove() const { return m_allowedStorageProfileIdsToRemove; }
285 inline bool AllowedStorageProfileIdsToRemoveHasBeenSet() const { return m_allowedStorageProfileIdsToRemoveHasBeenSet; }
286 template <typename AllowedStorageProfileIdsToRemoveT = Aws::Vector<Aws::String>>
287 void SetAllowedStorageProfileIdsToRemove(AllowedStorageProfileIdsToRemoveT&& value) {
288 m_allowedStorageProfileIdsToRemoveHasBeenSet = true;
289 m_allowedStorageProfileIdsToRemove = std::forward<AllowedStorageProfileIdsToRemoveT>(value);
290 }
291 template <typename AllowedStorageProfileIdsToRemoveT = Aws::Vector<Aws::String>>
292 UpdateQueueRequest& WithAllowedStorageProfileIdsToRemove(AllowedStorageProfileIdsToRemoveT&& value) {
293 SetAllowedStorageProfileIdsToRemove(std::forward<AllowedStorageProfileIdsToRemoveT>(value));
294 return *this;
295 }
296 template <typename AllowedStorageProfileIdsToRemoveT = Aws::String>
297 UpdateQueueRequest& AddAllowedStorageProfileIdsToRemove(AllowedStorageProfileIdsToRemoveT&& value) {
298 m_allowedStorageProfileIdsToRemoveHasBeenSet = true;
299 m_allowedStorageProfileIdsToRemove.emplace_back(std::forward<AllowedStorageProfileIdsToRemoveT>(value));
300 return *this;
301 }
303
305
311 inline const SchedulingConfiguration& GetSchedulingConfiguration() const { return m_schedulingConfiguration; }
312 inline bool SchedulingConfigurationHasBeenSet() const { return m_schedulingConfigurationHasBeenSet; }
313 template <typename SchedulingConfigurationT = SchedulingConfiguration>
314 void SetSchedulingConfiguration(SchedulingConfigurationT&& value) {
315 m_schedulingConfigurationHasBeenSet = true;
316 m_schedulingConfiguration = std::forward<SchedulingConfigurationT>(value);
317 }
318 template <typename SchedulingConfigurationT = SchedulingConfiguration>
319 UpdateQueueRequest& WithSchedulingConfiguration(SchedulingConfigurationT&& value) {
320 SetSchedulingConfiguration(std::forward<SchedulingConfigurationT>(value));
321 return *this;
322 }
324 private:
325 Aws::String m_farmId;
326
327 Aws::String m_queueId;
328
330
331 Aws::String m_displayName;
332
333 Aws::String m_description;
334
336
337 JobAttachmentSettings m_jobAttachmentSettings;
338
339 Aws::String m_roleArn;
340
341 JobRunAsUser m_jobRunAsUser;
342
343 Aws::Vector<Aws::String> m_requiredFileSystemLocationNamesToAdd;
344
345 Aws::Vector<Aws::String> m_requiredFileSystemLocationNamesToRemove;
346
347 Aws::Vector<Aws::String> m_allowedStorageProfileIdsToAdd;
348
349 Aws::Vector<Aws::String> m_allowedStorageProfileIdsToRemove;
350
351 SchedulingConfiguration m_schedulingConfiguration;
352 bool m_farmIdHasBeenSet = false;
353 bool m_queueIdHasBeenSet = false;
354 bool m_clientTokenHasBeenSet = true;
355 bool m_displayNameHasBeenSet = false;
356 bool m_descriptionHasBeenSet = false;
357 bool m_defaultBudgetActionHasBeenSet = false;
358 bool m_jobAttachmentSettingsHasBeenSet = false;
359 bool m_roleArnHasBeenSet = false;
360 bool m_jobRunAsUserHasBeenSet = false;
361 bool m_requiredFileSystemLocationNamesToAddHasBeenSet = false;
362 bool m_requiredFileSystemLocationNamesToRemoveHasBeenSet = false;
363 bool m_allowedStorageProfileIdsToAddHasBeenSet = false;
364 bool m_allowedStorageProfileIdsToRemoveHasBeenSet = false;
365 bool m_schedulingConfigurationHasBeenSet = false;
366};
367
368} // namespace Model
369} // namespace deadline
370} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
UpdateQueueRequest & WithRequiredFileSystemLocationNamesToRemove(RequiredFileSystemLocationNamesToRemoveT &&value)
const Aws::Vector< Aws::String > & GetAllowedStorageProfileIdsToAdd() const
UpdateQueueRequest & WithDefaultBudgetAction(DefaultQueueBudgetAction value)
const Aws::Vector< Aws::String > & GetAllowedStorageProfileIdsToRemove() const
virtual const char * GetServiceRequestName() const override
void SetAllowedStorageProfileIdsToAdd(AllowedStorageProfileIdsToAddT &&value)
DefaultQueueBudgetAction GetDefaultBudgetAction() const
const SchedulingConfiguration & GetSchedulingConfiguration() const
AWS_DEADLINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetJobRunAsUser(JobRunAsUserT &&value)
UpdateQueueRequest & WithAllowedStorageProfileIdsToAdd(AllowedStorageProfileIdsToAddT &&value)
UpdateQueueRequest & WithFarmId(FarmIdT &&value)
UpdateQueueRequest & WithJobRunAsUser(JobRunAsUserT &&value)
void SetRequiredFileSystemLocationNamesToRemove(RequiredFileSystemLocationNamesToRemoveT &&value)
AWS_DEADLINE_API UpdateQueueRequest()=default
const Aws::Vector< Aws::String > & GetRequiredFileSystemLocationNamesToAdd() const
void SetDefaultBudgetAction(DefaultQueueBudgetAction value)
UpdateQueueRequest & AddAllowedStorageProfileIdsToAdd(AllowedStorageProfileIdsToAddT &&value)
UpdateQueueRequest & WithJobAttachmentSettings(JobAttachmentSettingsT &&value)
UpdateQueueRequest & WithQueueId(QueueIdT &&value)
AWS_DEADLINE_API Aws::String SerializePayload() const override
void SetJobAttachmentSettings(JobAttachmentSettingsT &&value)
const Aws::Vector< Aws::String > & GetRequiredFileSystemLocationNamesToRemove() const
const Aws::String & GetClientToken() const
void SetAllowedStorageProfileIdsToRemove(AllowedStorageProfileIdsToRemoveT &&value)
UpdateQueueRequest & WithRoleArn(RoleArnT &&value)
UpdateQueueRequest & WithClientToken(ClientTokenT &&value)
UpdateQueueRequest & WithDisplayName(DisplayNameT &&value)
UpdateQueueRequest & AddAllowedStorageProfileIdsToRemove(AllowedStorageProfileIdsToRemoveT &&value)
UpdateQueueRequest & WithAllowedStorageProfileIdsToRemove(AllowedStorageProfileIdsToRemoveT &&value)
UpdateQueueRequest & AddRequiredFileSystemLocationNamesToRemove(RequiredFileSystemLocationNamesToRemoveT &&value)
UpdateQueueRequest & WithRequiredFileSystemLocationNamesToAdd(RequiredFileSystemLocationNamesToAddT &&value)
void SetSchedulingConfiguration(SchedulingConfigurationT &&value)
UpdateQueueRequest & WithSchedulingConfiguration(SchedulingConfigurationT &&value)
const JobRunAsUser & GetJobRunAsUser() const
UpdateQueueRequest & AddRequiredFileSystemLocationNamesToAdd(RequiredFileSystemLocationNamesToAddT &&value)
void SetRequiredFileSystemLocationNamesToAdd(RequiredFileSystemLocationNamesToAddT &&value)
UpdateQueueRequest & WithDescription(DescriptionT &&value)
const JobAttachmentSettings & GetJobAttachmentSettings() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector