AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
CreateQueueRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/deadline/DeadlineRequest.h>
12#include <aws/deadline/Deadline_EXPORTS.h>
13#include <aws/deadline/model/DefaultQueueBudgetAction.h>
14#include <aws/deadline/model/JobAttachmentSettings.h>
15#include <aws/deadline/model/JobRunAsUser.h>
16#include <aws/deadline/model/SchedulingConfiguration.h>
17
18#include <utility>
19
20namespace Aws {
21namespace deadline {
22namespace Model {
23
27 public:
28 AWS_DEADLINE_API CreateQueueRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateQueue"; }
35
36 AWS_DEADLINE_API Aws::String SerializePayload() const override;
37
39
41
44 inline const Aws::String& GetFarmId() const { return m_farmId; }
45 inline bool FarmIdHasBeenSet() const { return m_farmIdHasBeenSet; }
46 template <typename FarmIdT = Aws::String>
47 void SetFarmId(FarmIdT&& value) {
48 m_farmIdHasBeenSet = true;
49 m_farmId = std::forward<FarmIdT>(value);
50 }
51 template <typename FarmIdT = Aws::String>
52 CreateQueueRequest& WithFarmId(FarmIdT&& value) {
53 SetFarmId(std::forward<FarmIdT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetClientToken() const { return m_clientToken; }
64 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
65 template <typename ClientTokenT = Aws::String>
66 void SetClientToken(ClientTokenT&& value) {
67 m_clientTokenHasBeenSet = true;
68 m_clientToken = std::forward<ClientTokenT>(value);
69 }
70 template <typename ClientTokenT = Aws::String>
71 CreateQueueRequest& WithClientToken(ClientTokenT&& value) {
72 SetClientToken(std::forward<ClientTokenT>(value));
73 return *this;
74 }
76
78
83 inline const Aws::String& GetDisplayName() const { return m_displayName; }
84 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
85 template <typename DisplayNameT = Aws::String>
86 void SetDisplayName(DisplayNameT&& value) {
87 m_displayNameHasBeenSet = true;
88 m_displayName = std::forward<DisplayNameT>(value);
89 }
90 template <typename DisplayNameT = Aws::String>
91 CreateQueueRequest& WithDisplayName(DisplayNameT&& value) {
92 SetDisplayName(std::forward<DisplayNameT>(value));
93 return *this;
94 }
96
98
103 inline const Aws::String& GetDescription() const { return m_description; }
104 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
105 template <typename DescriptionT = Aws::String>
106 void SetDescription(DescriptionT&& value) {
107 m_descriptionHasBeenSet = true;
108 m_description = std::forward<DescriptionT>(value);
109 }
110 template <typename DescriptionT = Aws::String>
111 CreateQueueRequest& WithDescription(DescriptionT&& value) {
112 SetDescription(std::forward<DescriptionT>(value));
113 return *this;
114 }
116
118
121 inline DefaultQueueBudgetAction GetDefaultBudgetAction() const { return m_defaultBudgetAction; }
122 inline bool DefaultBudgetActionHasBeenSet() const { return m_defaultBudgetActionHasBeenSet; }
124 m_defaultBudgetActionHasBeenSet = true;
125 m_defaultBudgetAction = value;
126 }
132
134
138 inline const JobAttachmentSettings& GetJobAttachmentSettings() const { return m_jobAttachmentSettings; }
139 inline bool JobAttachmentSettingsHasBeenSet() const { return m_jobAttachmentSettingsHasBeenSet; }
140 template <typename JobAttachmentSettingsT = JobAttachmentSettings>
141 void SetJobAttachmentSettings(JobAttachmentSettingsT&& value) {
142 m_jobAttachmentSettingsHasBeenSet = true;
143 m_jobAttachmentSettings = std::forward<JobAttachmentSettingsT>(value);
144 }
145 template <typename JobAttachmentSettingsT = JobAttachmentSettings>
146 CreateQueueRequest& WithJobAttachmentSettings(JobAttachmentSettingsT&& value) {
147 SetJobAttachmentSettings(std::forward<JobAttachmentSettingsT>(value));
148 return *this;
149 }
151
153
156 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
157 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
158 template <typename RoleArnT = Aws::String>
159 void SetRoleArn(RoleArnT&& value) {
160 m_roleArnHasBeenSet = true;
161 m_roleArn = std::forward<RoleArnT>(value);
162 }
163 template <typename RoleArnT = Aws::String>
164 CreateQueueRequest& WithRoleArn(RoleArnT&& value) {
165 SetRoleArn(std::forward<RoleArnT>(value));
166 return *this;
167 }
169
171
174 inline const JobRunAsUser& GetJobRunAsUser() const { return m_jobRunAsUser; }
175 inline bool JobRunAsUserHasBeenSet() const { return m_jobRunAsUserHasBeenSet; }
176 template <typename JobRunAsUserT = JobRunAsUser>
177 void SetJobRunAsUser(JobRunAsUserT&& value) {
178 m_jobRunAsUserHasBeenSet = true;
179 m_jobRunAsUser = std::forward<JobRunAsUserT>(value);
180 }
181 template <typename JobRunAsUserT = JobRunAsUser>
182 CreateQueueRequest& WithJobRunAsUser(JobRunAsUserT&& value) {
183 SetJobRunAsUser(std::forward<JobRunAsUserT>(value));
184 return *this;
185 }
187
189
192 inline const Aws::Vector<Aws::String>& GetRequiredFileSystemLocationNames() const { return m_requiredFileSystemLocationNames; }
193 inline bool RequiredFileSystemLocationNamesHasBeenSet() const { return m_requiredFileSystemLocationNamesHasBeenSet; }
194 template <typename RequiredFileSystemLocationNamesT = Aws::Vector<Aws::String>>
195 void SetRequiredFileSystemLocationNames(RequiredFileSystemLocationNamesT&& value) {
196 m_requiredFileSystemLocationNamesHasBeenSet = true;
197 m_requiredFileSystemLocationNames = std::forward<RequiredFileSystemLocationNamesT>(value);
198 }
199 template <typename RequiredFileSystemLocationNamesT = Aws::Vector<Aws::String>>
200 CreateQueueRequest& WithRequiredFileSystemLocationNames(RequiredFileSystemLocationNamesT&& value) {
201 SetRequiredFileSystemLocationNames(std::forward<RequiredFileSystemLocationNamesT>(value));
202 return *this;
203 }
204 template <typename RequiredFileSystemLocationNamesT = Aws::String>
205 CreateQueueRequest& AddRequiredFileSystemLocationNames(RequiredFileSystemLocationNamesT&& value) {
206 m_requiredFileSystemLocationNamesHasBeenSet = true;
207 m_requiredFileSystemLocationNames.emplace_back(std::forward<RequiredFileSystemLocationNamesT>(value));
208 return *this;
209 }
211
213
216 inline const Aws::Vector<Aws::String>& GetAllowedStorageProfileIds() const { return m_allowedStorageProfileIds; }
217 inline bool AllowedStorageProfileIdsHasBeenSet() const { return m_allowedStorageProfileIdsHasBeenSet; }
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 CreateQueueRequest& WithAllowedStorageProfileIds(AllowedStorageProfileIdsT&& value) {
225 SetAllowedStorageProfileIds(std::forward<AllowedStorageProfileIdsT>(value));
226 return *this;
227 }
228 template <typename AllowedStorageProfileIdsT = Aws::String>
229 CreateQueueRequest& AddAllowedStorageProfileIds(AllowedStorageProfileIdsT&& value) {
230 m_allowedStorageProfileIdsHasBeenSet = true;
231 m_allowedStorageProfileIds.emplace_back(std::forward<AllowedStorageProfileIdsT>(value));
232 return *this;
233 }
235
237
241 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
242 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
243 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
244 void SetTags(TagsT&& value) {
245 m_tagsHasBeenSet = true;
246 m_tags = std::forward<TagsT>(value);
247 }
248 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
249 CreateQueueRequest& WithTags(TagsT&& value) {
250 SetTags(std::forward<TagsT>(value));
251 return *this;
252 }
253 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
254 CreateQueueRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
255 m_tagsHasBeenSet = true;
256 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
257 return *this;
258 }
260
262
267 inline const SchedulingConfiguration& GetSchedulingConfiguration() const { return m_schedulingConfiguration; }
268 inline bool SchedulingConfigurationHasBeenSet() const { return m_schedulingConfigurationHasBeenSet; }
269 template <typename SchedulingConfigurationT = SchedulingConfiguration>
270 void SetSchedulingConfiguration(SchedulingConfigurationT&& value) {
271 m_schedulingConfigurationHasBeenSet = true;
272 m_schedulingConfiguration = std::forward<SchedulingConfigurationT>(value);
273 }
274 template <typename SchedulingConfigurationT = SchedulingConfiguration>
275 CreateQueueRequest& WithSchedulingConfiguration(SchedulingConfigurationT&& value) {
276 SetSchedulingConfiguration(std::forward<SchedulingConfigurationT>(value));
277 return *this;
278 }
280 private:
281 Aws::String m_farmId;
282
284
285 Aws::String m_displayName;
286
287 Aws::String m_description;
288
290
291 JobAttachmentSettings m_jobAttachmentSettings;
292
293 Aws::String m_roleArn;
294
295 JobRunAsUser m_jobRunAsUser;
296
297 Aws::Vector<Aws::String> m_requiredFileSystemLocationNames;
298
299 Aws::Vector<Aws::String> m_allowedStorageProfileIds;
300
302
303 SchedulingConfiguration m_schedulingConfiguration;
304 bool m_farmIdHasBeenSet = false;
305 bool m_clientTokenHasBeenSet = true;
306 bool m_displayNameHasBeenSet = false;
307 bool m_descriptionHasBeenSet = false;
308 bool m_defaultBudgetActionHasBeenSet = false;
309 bool m_jobAttachmentSettingsHasBeenSet = false;
310 bool m_roleArnHasBeenSet = false;
311 bool m_jobRunAsUserHasBeenSet = false;
312 bool m_requiredFileSystemLocationNamesHasBeenSet = false;
313 bool m_allowedStorageProfileIdsHasBeenSet = false;
314 bool m_tagsHasBeenSet = false;
315 bool m_schedulingConfigurationHasBeenSet = false;
316};
317
318} // namespace Model
319} // namespace deadline
320} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
virtual const char * GetServiceRequestName() const override
const SchedulingConfiguration & GetSchedulingConfiguration() const
const Aws::String & GetDisplayName() const
CreateQueueRequest & WithDescription(DescriptionT &&value)
void SetRequiredFileSystemLocationNames(RequiredFileSystemLocationNamesT &&value)
void SetJobAttachmentSettings(JobAttachmentSettingsT &&value)
CreateQueueRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetDefaultBudgetAction(DefaultQueueBudgetAction value)
AWS_DEADLINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const JobAttachmentSettings & GetJobAttachmentSettings() const
CreateQueueRequest & AddRequiredFileSystemLocationNames(RequiredFileSystemLocationNamesT &&value)
CreateQueueRequest & WithClientToken(ClientTokenT &&value)
const Aws::String & GetClientToken() const
CreateQueueRequest & WithRoleArn(RoleArnT &&value)
AWS_DEADLINE_API CreateQueueRequest()=default
CreateQueueRequest & WithFarmId(FarmIdT &&value)
DefaultQueueBudgetAction GetDefaultBudgetAction() const
const JobRunAsUser & GetJobRunAsUser() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::Vector< Aws::String > & GetAllowedStorageProfileIds() const
const Aws::Vector< Aws::String > & GetRequiredFileSystemLocationNames() const
CreateQueueRequest & WithJobRunAsUser(JobRunAsUserT &&value)
CreateQueueRequest & AddAllowedStorageProfileIds(AllowedStorageProfileIdsT &&value)
void SetSchedulingConfiguration(SchedulingConfigurationT &&value)
CreateQueueRequest & WithDefaultBudgetAction(DefaultQueueBudgetAction value)
CreateQueueRequest & WithJobAttachmentSettings(JobAttachmentSettingsT &&value)
AWS_DEADLINE_API Aws::String SerializePayload() const override
CreateQueueRequest & WithAllowedStorageProfileIds(AllowedStorageProfileIdsT &&value)
CreateQueueRequest & WithTags(TagsT &&value)
void SetJobRunAsUser(JobRunAsUserT &&value)
CreateQueueRequest & WithDisplayName(DisplayNameT &&value)
CreateQueueRequest & WithRequiredFileSystemLocationNames(RequiredFileSystemLocationNamesT &&value)
void SetAllowedStorageProfileIds(AllowedStorageProfileIdsT &&value)
CreateQueueRequest & WithSchedulingConfiguration(SchedulingConfigurationT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector