AWS SDK for C++

AWS SDK for C++ Version 1.11.786

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
32 public:
33 AWS_DEADLINE_API CreateQueueRequest() = default;
34
35 // Service request name is the Operation name which will send this request out,
36 // each operation should has unique request name, so that we can get operation's name from this request.
37 // Note: this is not true for response, multiple operations may have the same response name,
38 // so we can not get operation's name from response.
39 inline virtual const char* GetServiceRequestName() const override { return "CreateQueue"; }
40
41 AWS_DEADLINE_API Aws::String SerializePayload() const override;
42
44
46
49 inline const Aws::String& GetFarmId() const { return m_farmId; }
50 inline bool FarmIdHasBeenSet() const { return m_farmIdHasBeenSet; }
51 template <typename FarmIdT = Aws::String>
52 void SetFarmId(FarmIdT&& value) {
53 m_farmIdHasBeenSet = true;
54 m_farmId = std::forward<FarmIdT>(value);
55 }
56 template <typename FarmIdT = Aws::String>
57 CreateQueueRequest& WithFarmId(FarmIdT&& value) {
58 SetFarmId(std::forward<FarmIdT>(value));
59 return *this;
60 }
62
64
68 inline const Aws::String& GetClientToken() const { return m_clientToken; }
69 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
70 template <typename ClientTokenT = Aws::String>
71 void SetClientToken(ClientTokenT&& value) {
72 m_clientTokenHasBeenSet = true;
73 m_clientToken = std::forward<ClientTokenT>(value);
74 }
75 template <typename ClientTokenT = Aws::String>
76 CreateQueueRequest& WithClientToken(ClientTokenT&& value) {
77 SetClientToken(std::forward<ClientTokenT>(value));
78 return *this;
79 }
81
83
88 inline const Aws::String& GetDisplayName() const { return m_displayName; }
89 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
90 template <typename DisplayNameT = Aws::String>
91 void SetDisplayName(DisplayNameT&& value) {
92 m_displayNameHasBeenSet = true;
93 m_displayName = std::forward<DisplayNameT>(value);
94 }
95 template <typename DisplayNameT = Aws::String>
96 CreateQueueRequest& WithDisplayName(DisplayNameT&& value) {
97 SetDisplayName(std::forward<DisplayNameT>(value));
98 return *this;
99 }
101
103
108 inline const Aws::String& GetDescription() const { return m_description; }
109 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
110 template <typename DescriptionT = Aws::String>
111 void SetDescription(DescriptionT&& value) {
112 m_descriptionHasBeenSet = true;
113 m_description = std::forward<DescriptionT>(value);
114 }
115 template <typename DescriptionT = Aws::String>
116 CreateQueueRequest& WithDescription(DescriptionT&& value) {
117 SetDescription(std::forward<DescriptionT>(value));
118 return *this;
119 }
121
123
126 inline DefaultQueueBudgetAction GetDefaultBudgetAction() const { return m_defaultBudgetAction; }
127 inline bool DefaultBudgetActionHasBeenSet() const { return m_defaultBudgetActionHasBeenSet; }
129 m_defaultBudgetActionHasBeenSet = true;
130 m_defaultBudgetAction = value;
131 }
134 return *this;
135 }
137
139
143 inline const JobAttachmentSettings& GetJobAttachmentSettings() const { return m_jobAttachmentSettings; }
144 inline bool JobAttachmentSettingsHasBeenSet() const { return m_jobAttachmentSettingsHasBeenSet; }
145 template <typename JobAttachmentSettingsT = JobAttachmentSettings>
146 void SetJobAttachmentSettings(JobAttachmentSettingsT&& value) {
147 m_jobAttachmentSettingsHasBeenSet = true;
148 m_jobAttachmentSettings = std::forward<JobAttachmentSettingsT>(value);
149 }
150 template <typename JobAttachmentSettingsT = JobAttachmentSettings>
151 CreateQueueRequest& WithJobAttachmentSettings(JobAttachmentSettingsT&& value) {
152 SetJobAttachmentSettings(std::forward<JobAttachmentSettingsT>(value));
153 return *this;
154 }
156
158
161 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
162 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
163 template <typename RoleArnT = Aws::String>
164 void SetRoleArn(RoleArnT&& value) {
165 m_roleArnHasBeenSet = true;
166 m_roleArn = std::forward<RoleArnT>(value);
167 }
168 template <typename RoleArnT = Aws::String>
169 CreateQueueRequest& WithRoleArn(RoleArnT&& value) {
170 SetRoleArn(std::forward<RoleArnT>(value));
171 return *this;
172 }
174
176
179 inline const JobRunAsUser& GetJobRunAsUser() const { return m_jobRunAsUser; }
180 inline bool JobRunAsUserHasBeenSet() const { return m_jobRunAsUserHasBeenSet; }
181 template <typename JobRunAsUserT = JobRunAsUser>
182 void SetJobRunAsUser(JobRunAsUserT&& value) {
183 m_jobRunAsUserHasBeenSet = true;
184 m_jobRunAsUser = std::forward<JobRunAsUserT>(value);
185 }
186 template <typename JobRunAsUserT = JobRunAsUser>
187 CreateQueueRequest& WithJobRunAsUser(JobRunAsUserT&& value) {
188 SetJobRunAsUser(std::forward<JobRunAsUserT>(value));
189 return *this;
190 }
192
194
197 inline const Aws::Vector<Aws::String>& GetRequiredFileSystemLocationNames() const { return m_requiredFileSystemLocationNames; }
198 inline bool RequiredFileSystemLocationNamesHasBeenSet() const { return m_requiredFileSystemLocationNamesHasBeenSet; }
199 template <typename RequiredFileSystemLocationNamesT = Aws::Vector<Aws::String>>
200 void SetRequiredFileSystemLocationNames(RequiredFileSystemLocationNamesT&& value) {
201 m_requiredFileSystemLocationNamesHasBeenSet = true;
202 m_requiredFileSystemLocationNames = std::forward<RequiredFileSystemLocationNamesT>(value);
203 }
204 template <typename RequiredFileSystemLocationNamesT = Aws::Vector<Aws::String>>
205 CreateQueueRequest& WithRequiredFileSystemLocationNames(RequiredFileSystemLocationNamesT&& value) {
206 SetRequiredFileSystemLocationNames(std::forward<RequiredFileSystemLocationNamesT>(value));
207 return *this;
208 }
209 template <typename RequiredFileSystemLocationNamesT = Aws::String>
210 CreateQueueRequest& AddRequiredFileSystemLocationNames(RequiredFileSystemLocationNamesT&& value) {
211 m_requiredFileSystemLocationNamesHasBeenSet = true;
212 m_requiredFileSystemLocationNames.emplace_back(std::forward<RequiredFileSystemLocationNamesT>(value));
213 return *this;
214 }
216
218
221 inline const Aws::Vector<Aws::String>& GetAllowedStorageProfileIds() const { return m_allowedStorageProfileIds; }
222 inline bool AllowedStorageProfileIdsHasBeenSet() const { return m_allowedStorageProfileIdsHasBeenSet; }
223 template <typename AllowedStorageProfileIdsT = Aws::Vector<Aws::String>>
224 void SetAllowedStorageProfileIds(AllowedStorageProfileIdsT&& value) {
225 m_allowedStorageProfileIdsHasBeenSet = true;
226 m_allowedStorageProfileIds = std::forward<AllowedStorageProfileIdsT>(value);
227 }
228 template <typename AllowedStorageProfileIdsT = Aws::Vector<Aws::String>>
229 CreateQueueRequest& WithAllowedStorageProfileIds(AllowedStorageProfileIdsT&& value) {
230 SetAllowedStorageProfileIds(std::forward<AllowedStorageProfileIdsT>(value));
231 return *this;
232 }
233 template <typename AllowedStorageProfileIdsT = Aws::String>
234 CreateQueueRequest& AddAllowedStorageProfileIds(AllowedStorageProfileIdsT&& value) {
235 m_allowedStorageProfileIdsHasBeenSet = true;
236 m_allowedStorageProfileIds.emplace_back(std::forward<AllowedStorageProfileIdsT>(value));
237 return *this;
238 }
240
242
246 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
247 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
248 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
249 void SetTags(TagsT&& value) {
250 m_tagsHasBeenSet = true;
251 m_tags = std::forward<TagsT>(value);
252 }
253 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
254 CreateQueueRequest& WithTags(TagsT&& value) {
255 SetTags(std::forward<TagsT>(value));
256 return *this;
257 }
258 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
259 CreateQueueRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
260 m_tagsHasBeenSet = true;
261 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
262 return *this;
263 }
265
267
272 inline const SchedulingConfiguration& GetSchedulingConfiguration() const { return m_schedulingConfiguration; }
273 inline bool SchedulingConfigurationHasBeenSet() const { return m_schedulingConfigurationHasBeenSet; }
274 template <typename SchedulingConfigurationT = SchedulingConfiguration>
275 void SetSchedulingConfiguration(SchedulingConfigurationT&& value) {
276 m_schedulingConfigurationHasBeenSet = true;
277 m_schedulingConfiguration = std::forward<SchedulingConfigurationT>(value);
278 }
279 template <typename SchedulingConfigurationT = SchedulingConfiguration>
280 CreateQueueRequest& WithSchedulingConfiguration(SchedulingConfigurationT&& value) {
281 SetSchedulingConfiguration(std::forward<SchedulingConfigurationT>(value));
282 return *this;
283 }
285 private:
286 Aws::String m_farmId;
287
289
290 Aws::String m_displayName;
291
292 Aws::String m_description;
293
295
296 JobAttachmentSettings m_jobAttachmentSettings;
297
298 Aws::String m_roleArn;
299
300 JobRunAsUser m_jobRunAsUser;
301
302 Aws::Vector<Aws::String> m_requiredFileSystemLocationNames;
303
304 Aws::Vector<Aws::String> m_allowedStorageProfileIds;
305
307
308 SchedulingConfiguration m_schedulingConfiguration;
309 bool m_farmIdHasBeenSet = false;
310 bool m_clientTokenHasBeenSet = true;
311 bool m_displayNameHasBeenSet = false;
312 bool m_descriptionHasBeenSet = false;
313 bool m_defaultBudgetActionHasBeenSet = false;
314 bool m_jobAttachmentSettingsHasBeenSet = false;
315 bool m_roleArnHasBeenSet = false;
316 bool m_jobRunAsUserHasBeenSet = false;
317 bool m_requiredFileSystemLocationNamesHasBeenSet = false;
318 bool m_allowedStorageProfileIdsHasBeenSet = false;
319 bool m_tagsHasBeenSet = false;
320 bool m_schedulingConfigurationHasBeenSet = false;
321};
322
323} // namespace Model
324} // namespace deadline
325} // 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