AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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
16#include <utility>
17
18namespace Aws {
19namespace deadline {
20namespace Model {
21
25 public:
26 AWS_DEADLINE_API UpdateQueueRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateQueue"; }
33
34 AWS_DEADLINE_API Aws::String SerializePayload() const override;
35
37
39
42 inline const Aws::String& GetClientToken() const { return m_clientToken; }
43 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
44 template <typename ClientTokenT = Aws::String>
45 void SetClientToken(ClientTokenT&& value) {
46 m_clientTokenHasBeenSet = true;
47 m_clientToken = std::forward<ClientTokenT>(value);
48 }
49 template <typename ClientTokenT = Aws::String>
50 UpdateQueueRequest& WithClientToken(ClientTokenT&& value) {
51 SetClientToken(std::forward<ClientTokenT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetFarmId() const { return m_farmId; }
61 inline bool FarmIdHasBeenSet() const { return m_farmIdHasBeenSet; }
62 template <typename FarmIdT = Aws::String>
63 void SetFarmId(FarmIdT&& value) {
64 m_farmIdHasBeenSet = true;
65 m_farmId = std::forward<FarmIdT>(value);
66 }
67 template <typename FarmIdT = Aws::String>
68 UpdateQueueRequest& WithFarmId(FarmIdT&& value) {
69 SetFarmId(std::forward<FarmIdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetQueueId() const { return m_queueId; }
79 inline bool QueueIdHasBeenSet() const { return m_queueIdHasBeenSet; }
80 template <typename QueueIdT = Aws::String>
81 void SetQueueId(QueueIdT&& value) {
82 m_queueIdHasBeenSet = true;
83 m_queueId = std::forward<QueueIdT>(value);
84 }
85 template <typename QueueIdT = Aws::String>
86 UpdateQueueRequest& WithQueueId(QueueIdT&& value) {
87 SetQueueId(std::forward<QueueIdT>(value));
88 return *this;
89 }
91
93
99 inline const Aws::String& GetDisplayName() const { return m_displayName; }
100 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
101 template <typename DisplayNameT = Aws::String>
102 void SetDisplayName(DisplayNameT&& value) {
103 m_displayNameHasBeenSet = true;
104 m_displayName = std::forward<DisplayNameT>(value);
105 }
106 template <typename DisplayNameT = Aws::String>
107 UpdateQueueRequest& WithDisplayName(DisplayNameT&& value) {
108 SetDisplayName(std::forward<DisplayNameT>(value));
109 return *this;
110 }
112
114
120 inline const Aws::String& GetDescription() const { return m_description; }
121 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
122 template <typename DescriptionT = Aws::String>
123 void SetDescription(DescriptionT&& value) {
124 m_descriptionHasBeenSet = true;
125 m_description = std::forward<DescriptionT>(value);
126 }
127 template <typename DescriptionT = Aws::String>
128 UpdateQueueRequest& WithDescription(DescriptionT&& value) {
129 SetDescription(std::forward<DescriptionT>(value));
130 return *this;
131 }
133
135
139 inline DefaultQueueBudgetAction GetDefaultBudgetAction() const { return m_defaultBudgetAction; }
140 inline bool DefaultBudgetActionHasBeenSet() const { return m_defaultBudgetActionHasBeenSet; }
142 m_defaultBudgetActionHasBeenSet = true;
143 m_defaultBudgetAction = value;
144 }
147 return *this;
148 }
150
152
155 inline const JobAttachmentSettings& GetJobAttachmentSettings() const { return m_jobAttachmentSettings; }
156 inline bool JobAttachmentSettingsHasBeenSet() const { return m_jobAttachmentSettingsHasBeenSet; }
157 template <typename JobAttachmentSettingsT = JobAttachmentSettings>
158 void SetJobAttachmentSettings(JobAttachmentSettingsT&& value) {
159 m_jobAttachmentSettingsHasBeenSet = true;
160 m_jobAttachmentSettings = std::forward<JobAttachmentSettingsT>(value);
161 }
162 template <typename JobAttachmentSettingsT = JobAttachmentSettings>
163 UpdateQueueRequest& WithJobAttachmentSettings(JobAttachmentSettingsT&& value) {
164 SetJobAttachmentSettings(std::forward<JobAttachmentSettingsT>(value));
165 return *this;
166 }
168
170
173 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
174 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
175 template <typename RoleArnT = Aws::String>
176 void SetRoleArn(RoleArnT&& value) {
177 m_roleArnHasBeenSet = true;
178 m_roleArn = std::forward<RoleArnT>(value);
179 }
180 template <typename RoleArnT = Aws::String>
181 UpdateQueueRequest& WithRoleArn(RoleArnT&& value) {
182 SetRoleArn(std::forward<RoleArnT>(value));
183 return *this;
184 }
186
188
191 inline const JobRunAsUser& GetJobRunAsUser() const { return m_jobRunAsUser; }
192 inline bool JobRunAsUserHasBeenSet() const { return m_jobRunAsUserHasBeenSet; }
193 template <typename JobRunAsUserT = JobRunAsUser>
194 void SetJobRunAsUser(JobRunAsUserT&& value) {
195 m_jobRunAsUserHasBeenSet = true;
196 m_jobRunAsUser = std::forward<JobRunAsUserT>(value);
197 }
198 template <typename JobRunAsUserT = JobRunAsUser>
199 UpdateQueueRequest& WithJobRunAsUser(JobRunAsUserT&& value) {
200 SetJobRunAsUser(std::forward<JobRunAsUserT>(value));
201 return *this;
202 }
204
206
209 inline const Aws::Vector<Aws::String>& GetRequiredFileSystemLocationNamesToAdd() const { return m_requiredFileSystemLocationNamesToAdd; }
210 inline bool RequiredFileSystemLocationNamesToAddHasBeenSet() const { return m_requiredFileSystemLocationNamesToAddHasBeenSet; }
211 template <typename RequiredFileSystemLocationNamesToAddT = Aws::Vector<Aws::String>>
212 void SetRequiredFileSystemLocationNamesToAdd(RequiredFileSystemLocationNamesToAddT&& value) {
213 m_requiredFileSystemLocationNamesToAddHasBeenSet = true;
214 m_requiredFileSystemLocationNamesToAdd = std::forward<RequiredFileSystemLocationNamesToAddT>(value);
215 }
216 template <typename RequiredFileSystemLocationNamesToAddT = Aws::Vector<Aws::String>>
217 UpdateQueueRequest& WithRequiredFileSystemLocationNamesToAdd(RequiredFileSystemLocationNamesToAddT&& value) {
218 SetRequiredFileSystemLocationNamesToAdd(std::forward<RequiredFileSystemLocationNamesToAddT>(value));
219 return *this;
220 }
221 template <typename RequiredFileSystemLocationNamesToAddT = Aws::String>
222 UpdateQueueRequest& AddRequiredFileSystemLocationNamesToAdd(RequiredFileSystemLocationNamesToAddT&& value) {
223 m_requiredFileSystemLocationNamesToAddHasBeenSet = true;
224 m_requiredFileSystemLocationNamesToAdd.emplace_back(std::forward<RequiredFileSystemLocationNamesToAddT>(value));
225 return *this;
226 }
228
230
234 return m_requiredFileSystemLocationNamesToRemove;
235 }
236 inline bool RequiredFileSystemLocationNamesToRemoveHasBeenSet() const { return m_requiredFileSystemLocationNamesToRemoveHasBeenSet; }
237 template <typename RequiredFileSystemLocationNamesToRemoveT = Aws::Vector<Aws::String>>
238 void SetRequiredFileSystemLocationNamesToRemove(RequiredFileSystemLocationNamesToRemoveT&& value) {
239 m_requiredFileSystemLocationNamesToRemoveHasBeenSet = true;
240 m_requiredFileSystemLocationNamesToRemove = std::forward<RequiredFileSystemLocationNamesToRemoveT>(value);
241 }
242 template <typename RequiredFileSystemLocationNamesToRemoveT = Aws::Vector<Aws::String>>
243 UpdateQueueRequest& WithRequiredFileSystemLocationNamesToRemove(RequiredFileSystemLocationNamesToRemoveT&& value) {
244 SetRequiredFileSystemLocationNamesToRemove(std::forward<RequiredFileSystemLocationNamesToRemoveT>(value));
245 return *this;
246 }
247 template <typename RequiredFileSystemLocationNamesToRemoveT = Aws::String>
248 UpdateQueueRequest& AddRequiredFileSystemLocationNamesToRemove(RequiredFileSystemLocationNamesToRemoveT&& value) {
249 m_requiredFileSystemLocationNamesToRemoveHasBeenSet = true;
250 m_requiredFileSystemLocationNamesToRemove.emplace_back(std::forward<RequiredFileSystemLocationNamesToRemoveT>(value));
251 return *this;
252 }
254
256
259 inline const Aws::Vector<Aws::String>& GetAllowedStorageProfileIdsToAdd() const { return m_allowedStorageProfileIdsToAdd; }
260 inline bool AllowedStorageProfileIdsToAddHasBeenSet() const { return m_allowedStorageProfileIdsToAddHasBeenSet; }
261 template <typename AllowedStorageProfileIdsToAddT = Aws::Vector<Aws::String>>
262 void SetAllowedStorageProfileIdsToAdd(AllowedStorageProfileIdsToAddT&& value) {
263 m_allowedStorageProfileIdsToAddHasBeenSet = true;
264 m_allowedStorageProfileIdsToAdd = std::forward<AllowedStorageProfileIdsToAddT>(value);
265 }
266 template <typename AllowedStorageProfileIdsToAddT = Aws::Vector<Aws::String>>
267 UpdateQueueRequest& WithAllowedStorageProfileIdsToAdd(AllowedStorageProfileIdsToAddT&& value) {
268 SetAllowedStorageProfileIdsToAdd(std::forward<AllowedStorageProfileIdsToAddT>(value));
269 return *this;
270 }
271 template <typename AllowedStorageProfileIdsToAddT = Aws::String>
272 UpdateQueueRequest& AddAllowedStorageProfileIdsToAdd(AllowedStorageProfileIdsToAddT&& value) {
273 m_allowedStorageProfileIdsToAddHasBeenSet = true;
274 m_allowedStorageProfileIdsToAdd.emplace_back(std::forward<AllowedStorageProfileIdsToAddT>(value));
275 return *this;
276 }
278
280
283 inline const Aws::Vector<Aws::String>& GetAllowedStorageProfileIdsToRemove() const { return m_allowedStorageProfileIdsToRemove; }
284 inline bool AllowedStorageProfileIdsToRemoveHasBeenSet() const { return m_allowedStorageProfileIdsToRemoveHasBeenSet; }
285 template <typename AllowedStorageProfileIdsToRemoveT = Aws::Vector<Aws::String>>
286 void SetAllowedStorageProfileIdsToRemove(AllowedStorageProfileIdsToRemoveT&& value) {
287 m_allowedStorageProfileIdsToRemoveHasBeenSet = true;
288 m_allowedStorageProfileIdsToRemove = std::forward<AllowedStorageProfileIdsToRemoveT>(value);
289 }
290 template <typename AllowedStorageProfileIdsToRemoveT = Aws::Vector<Aws::String>>
291 UpdateQueueRequest& WithAllowedStorageProfileIdsToRemove(AllowedStorageProfileIdsToRemoveT&& value) {
292 SetAllowedStorageProfileIdsToRemove(std::forward<AllowedStorageProfileIdsToRemoveT>(value));
293 return *this;
294 }
295 template <typename AllowedStorageProfileIdsToRemoveT = Aws::String>
296 UpdateQueueRequest& AddAllowedStorageProfileIdsToRemove(AllowedStorageProfileIdsToRemoveT&& value) {
297 m_allowedStorageProfileIdsToRemoveHasBeenSet = true;
298 m_allowedStorageProfileIdsToRemove.emplace_back(std::forward<AllowedStorageProfileIdsToRemoveT>(value));
299 return *this;
300 }
302 private:
304
305 Aws::String m_farmId;
306
307 Aws::String m_queueId;
308
309 Aws::String m_displayName;
310
311 Aws::String m_description;
312
314
315 JobAttachmentSettings m_jobAttachmentSettings;
316
317 Aws::String m_roleArn;
318
319 JobRunAsUser m_jobRunAsUser;
320
321 Aws::Vector<Aws::String> m_requiredFileSystemLocationNamesToAdd;
322
323 Aws::Vector<Aws::String> m_requiredFileSystemLocationNamesToRemove;
324
325 Aws::Vector<Aws::String> m_allowedStorageProfileIdsToAdd;
326
327 Aws::Vector<Aws::String> m_allowedStorageProfileIdsToRemove;
328 bool m_clientTokenHasBeenSet = true;
329 bool m_farmIdHasBeenSet = false;
330 bool m_queueIdHasBeenSet = false;
331 bool m_displayNameHasBeenSet = false;
332 bool m_descriptionHasBeenSet = false;
333 bool m_defaultBudgetActionHasBeenSet = false;
334 bool m_jobAttachmentSettingsHasBeenSet = false;
335 bool m_roleArnHasBeenSet = false;
336 bool m_jobRunAsUserHasBeenSet = false;
337 bool m_requiredFileSystemLocationNamesToAddHasBeenSet = false;
338 bool m_requiredFileSystemLocationNamesToRemoveHasBeenSet = false;
339 bool m_allowedStorageProfileIdsToAddHasBeenSet = false;
340 bool m_allowedStorageProfileIdsToRemoveHasBeenSet = false;
341};
342
343} // namespace Model
344} // namespace deadline
345} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
const Aws::String & GetDisplayName() const
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
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)
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