AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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
17#include <utility>
18
19namespace Aws {
20namespace deadline {
21namespace Model {
22
26 public:
27 AWS_DEADLINE_API CreateQueueRequest() = 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 "CreateQueue"; }
34
35 AWS_DEADLINE_API Aws::String SerializePayload() const override;
36
38
40
44 inline const Aws::String& GetClientToken() const { return m_clientToken; }
45 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
46 template <typename ClientTokenT = Aws::String>
47 void SetClientToken(ClientTokenT&& value) {
48 m_clientTokenHasBeenSet = true;
49 m_clientToken = std::forward<ClientTokenT>(value);
50 }
51 template <typename ClientTokenT = Aws::String>
52 CreateQueueRequest& WithClientToken(ClientTokenT&& value) {
53 SetClientToken(std::forward<ClientTokenT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetFarmId() const { return m_farmId; }
63 inline bool FarmIdHasBeenSet() const { return m_farmIdHasBeenSet; }
64 template <typename FarmIdT = Aws::String>
65 void SetFarmId(FarmIdT&& value) {
66 m_farmIdHasBeenSet = true;
67 m_farmId = std::forward<FarmIdT>(value);
68 }
69 template <typename FarmIdT = Aws::String>
70 CreateQueueRequest& WithFarmId(FarmIdT&& value) {
71 SetFarmId(std::forward<FarmIdT>(value));
72 return *this;
73 }
75
77
82 inline const Aws::String& GetDisplayName() const { return m_displayName; }
83 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
84 template <typename DisplayNameT = Aws::String>
85 void SetDisplayName(DisplayNameT&& value) {
86 m_displayNameHasBeenSet = true;
87 m_displayName = std::forward<DisplayNameT>(value);
88 }
89 template <typename DisplayNameT = Aws::String>
90 CreateQueueRequest& WithDisplayName(DisplayNameT&& value) {
91 SetDisplayName(std::forward<DisplayNameT>(value));
92 return *this;
93 }
95
97
102 inline const Aws::String& GetDescription() const { return m_description; }
103 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
104 template <typename DescriptionT = Aws::String>
105 void SetDescription(DescriptionT&& value) {
106 m_descriptionHasBeenSet = true;
107 m_description = std::forward<DescriptionT>(value);
108 }
109 template <typename DescriptionT = Aws::String>
110 CreateQueueRequest& WithDescription(DescriptionT&& value) {
111 SetDescription(std::forward<DescriptionT>(value));
112 return *this;
113 }
115
117
120 inline DefaultQueueBudgetAction GetDefaultBudgetAction() const { return m_defaultBudgetAction; }
121 inline bool DefaultBudgetActionHasBeenSet() const { return m_defaultBudgetActionHasBeenSet; }
123 m_defaultBudgetActionHasBeenSet = true;
124 m_defaultBudgetAction = value;
125 }
128 return *this;
129 }
131
133
137 inline const JobAttachmentSettings& GetJobAttachmentSettings() const { return m_jobAttachmentSettings; }
138 inline bool JobAttachmentSettingsHasBeenSet() const { return m_jobAttachmentSettingsHasBeenSet; }
139 template <typename JobAttachmentSettingsT = JobAttachmentSettings>
140 void SetJobAttachmentSettings(JobAttachmentSettingsT&& value) {
141 m_jobAttachmentSettingsHasBeenSet = true;
142 m_jobAttachmentSettings = std::forward<JobAttachmentSettingsT>(value);
143 }
144 template <typename JobAttachmentSettingsT = JobAttachmentSettings>
145 CreateQueueRequest& WithJobAttachmentSettings(JobAttachmentSettingsT&& value) {
146 SetJobAttachmentSettings(std::forward<JobAttachmentSettingsT>(value));
147 return *this;
148 }
150
152
155 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
156 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
157 template <typename RoleArnT = Aws::String>
158 void SetRoleArn(RoleArnT&& value) {
159 m_roleArnHasBeenSet = true;
160 m_roleArn = std::forward<RoleArnT>(value);
161 }
162 template <typename RoleArnT = Aws::String>
163 CreateQueueRequest& WithRoleArn(RoleArnT&& value) {
164 SetRoleArn(std::forward<RoleArnT>(value));
165 return *this;
166 }
168
170
173 inline const JobRunAsUser& GetJobRunAsUser() const { return m_jobRunAsUser; }
174 inline bool JobRunAsUserHasBeenSet() const { return m_jobRunAsUserHasBeenSet; }
175 template <typename JobRunAsUserT = JobRunAsUser>
176 void SetJobRunAsUser(JobRunAsUserT&& value) {
177 m_jobRunAsUserHasBeenSet = true;
178 m_jobRunAsUser = std::forward<JobRunAsUserT>(value);
179 }
180 template <typename JobRunAsUserT = JobRunAsUser>
181 CreateQueueRequest& WithJobRunAsUser(JobRunAsUserT&& value) {
182 SetJobRunAsUser(std::forward<JobRunAsUserT>(value));
183 return *this;
184 }
186
188
191 inline const Aws::Vector<Aws::String>& GetRequiredFileSystemLocationNames() const { return m_requiredFileSystemLocationNames; }
192 inline bool RequiredFileSystemLocationNamesHasBeenSet() const { return m_requiredFileSystemLocationNamesHasBeenSet; }
193 template <typename RequiredFileSystemLocationNamesT = Aws::Vector<Aws::String>>
194 void SetRequiredFileSystemLocationNames(RequiredFileSystemLocationNamesT&& value) {
195 m_requiredFileSystemLocationNamesHasBeenSet = true;
196 m_requiredFileSystemLocationNames = std::forward<RequiredFileSystemLocationNamesT>(value);
197 }
198 template <typename RequiredFileSystemLocationNamesT = Aws::Vector<Aws::String>>
199 CreateQueueRequest& WithRequiredFileSystemLocationNames(RequiredFileSystemLocationNamesT&& value) {
200 SetRequiredFileSystemLocationNames(std::forward<RequiredFileSystemLocationNamesT>(value));
201 return *this;
202 }
203 template <typename RequiredFileSystemLocationNamesT = Aws::String>
204 CreateQueueRequest& AddRequiredFileSystemLocationNames(RequiredFileSystemLocationNamesT&& value) {
205 m_requiredFileSystemLocationNamesHasBeenSet = true;
206 m_requiredFileSystemLocationNames.emplace_back(std::forward<RequiredFileSystemLocationNamesT>(value));
207 return *this;
208 }
210
212
215 inline const Aws::Vector<Aws::String>& GetAllowedStorageProfileIds() const { return m_allowedStorageProfileIds; }
216 inline bool AllowedStorageProfileIdsHasBeenSet() const { return m_allowedStorageProfileIdsHasBeenSet; }
217 template <typename AllowedStorageProfileIdsT = Aws::Vector<Aws::String>>
218 void SetAllowedStorageProfileIds(AllowedStorageProfileIdsT&& value) {
219 m_allowedStorageProfileIdsHasBeenSet = true;
220 m_allowedStorageProfileIds = std::forward<AllowedStorageProfileIdsT>(value);
221 }
222 template <typename AllowedStorageProfileIdsT = Aws::Vector<Aws::String>>
223 CreateQueueRequest& WithAllowedStorageProfileIds(AllowedStorageProfileIdsT&& value) {
224 SetAllowedStorageProfileIds(std::forward<AllowedStorageProfileIdsT>(value));
225 return *this;
226 }
227 template <typename AllowedStorageProfileIdsT = Aws::String>
228 CreateQueueRequest& AddAllowedStorageProfileIds(AllowedStorageProfileIdsT&& value) {
229 m_allowedStorageProfileIdsHasBeenSet = true;
230 m_allowedStorageProfileIds.emplace_back(std::forward<AllowedStorageProfileIdsT>(value));
231 return *this;
232 }
234
236
240 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
241 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
242 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
243 void SetTags(TagsT&& value) {
244 m_tagsHasBeenSet = true;
245 m_tags = std::forward<TagsT>(value);
246 }
247 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
248 CreateQueueRequest& WithTags(TagsT&& value) {
249 SetTags(std::forward<TagsT>(value));
250 return *this;
251 }
252 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
253 CreateQueueRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
254 m_tagsHasBeenSet = true;
255 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
256 return *this;
257 }
259 private:
261
262 Aws::String m_farmId;
263
264 Aws::String m_displayName;
265
266 Aws::String m_description;
267
269
270 JobAttachmentSettings m_jobAttachmentSettings;
271
272 Aws::String m_roleArn;
273
274 JobRunAsUser m_jobRunAsUser;
275
276 Aws::Vector<Aws::String> m_requiredFileSystemLocationNames;
277
278 Aws::Vector<Aws::String> m_allowedStorageProfileIds;
279
281 bool m_clientTokenHasBeenSet = true;
282 bool m_farmIdHasBeenSet = false;
283 bool m_displayNameHasBeenSet = false;
284 bool m_descriptionHasBeenSet = false;
285 bool m_defaultBudgetActionHasBeenSet = false;
286 bool m_jobAttachmentSettingsHasBeenSet = false;
287 bool m_roleArnHasBeenSet = false;
288 bool m_jobRunAsUserHasBeenSet = false;
289 bool m_requiredFileSystemLocationNamesHasBeenSet = false;
290 bool m_allowedStorageProfileIdsHasBeenSet = false;
291 bool m_tagsHasBeenSet = false;
292};
293
294} // namespace Model
295} // namespace deadline
296} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
virtual const char * GetServiceRequestName() const override
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)
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)
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