AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateQueueRequest.h
1
6#pragma once
7#include <aws/deadline/Deadline_EXPORTS.h>
8#include <aws/deadline/DeadlineRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/deadline/model/DefaultQueueBudgetAction.h>
11#include <aws/deadline/model/JobAttachmentSettings.h>
12#include <aws/deadline/model/JobRunAsUser.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <utility>
16#include <aws/core/utils/UUID.h>
17
18namespace Aws
19{
20namespace deadline
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_DEADLINE_API CreateQueueRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateQueue"; }
37
38 AWS_DEADLINE_API Aws::String SerializePayload() const override;
39
41
42
44
48 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
49 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
50 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
51 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
52 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
53 inline CreateQueueRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
54 inline CreateQueueRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
55 inline CreateQueueRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
57
59
62 inline const Aws::String& GetFarmId() const{ return m_farmId; }
63 inline bool FarmIdHasBeenSet() const { return m_farmIdHasBeenSet; }
64 inline void SetFarmId(const Aws::String& value) { m_farmIdHasBeenSet = true; m_farmId = value; }
65 inline void SetFarmId(Aws::String&& value) { m_farmIdHasBeenSet = true; m_farmId = std::move(value); }
66 inline void SetFarmId(const char* value) { m_farmIdHasBeenSet = true; m_farmId.assign(value); }
67 inline CreateQueueRequest& WithFarmId(const Aws::String& value) { SetFarmId(value); return *this;}
68 inline CreateQueueRequest& WithFarmId(Aws::String&& value) { SetFarmId(std::move(value)); return *this;}
69 inline CreateQueueRequest& WithFarmId(const char* value) { SetFarmId(value); return *this;}
71
73
78 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
79 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
80 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
81 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
82 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
83 inline CreateQueueRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
84 inline CreateQueueRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
85 inline CreateQueueRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
87
89
94 inline const Aws::String& GetDescription() const{ return m_description; }
95 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
96 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
97 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
98 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
99 inline CreateQueueRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
100 inline CreateQueueRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
101 inline CreateQueueRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
103
105
108 inline const DefaultQueueBudgetAction& GetDefaultBudgetAction() const{ return m_defaultBudgetAction; }
109 inline bool DefaultBudgetActionHasBeenSet() const { return m_defaultBudgetActionHasBeenSet; }
110 inline void SetDefaultBudgetAction(const DefaultQueueBudgetAction& value) { m_defaultBudgetActionHasBeenSet = true; m_defaultBudgetAction = value; }
111 inline void SetDefaultBudgetAction(DefaultQueueBudgetAction&& value) { m_defaultBudgetActionHasBeenSet = true; m_defaultBudgetAction = std::move(value); }
115
117
121 inline const JobAttachmentSettings& GetJobAttachmentSettings() const{ return m_jobAttachmentSettings; }
122 inline bool JobAttachmentSettingsHasBeenSet() const { return m_jobAttachmentSettingsHasBeenSet; }
123 inline void SetJobAttachmentSettings(const JobAttachmentSettings& value) { m_jobAttachmentSettingsHasBeenSet = true; m_jobAttachmentSettings = value; }
124 inline void SetJobAttachmentSettings(JobAttachmentSettings&& value) { m_jobAttachmentSettingsHasBeenSet = true; m_jobAttachmentSettings = std::move(value); }
128
130
133 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
134 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
135 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
136 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
137 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
138 inline CreateQueueRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
139 inline CreateQueueRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
140 inline CreateQueueRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
142
144
147 inline const JobRunAsUser& GetJobRunAsUser() const{ return m_jobRunAsUser; }
148 inline bool JobRunAsUserHasBeenSet() const { return m_jobRunAsUserHasBeenSet; }
149 inline void SetJobRunAsUser(const JobRunAsUser& value) { m_jobRunAsUserHasBeenSet = true; m_jobRunAsUser = value; }
150 inline void SetJobRunAsUser(JobRunAsUser&& value) { m_jobRunAsUserHasBeenSet = true; m_jobRunAsUser = std::move(value); }
151 inline CreateQueueRequest& WithJobRunAsUser(const JobRunAsUser& value) { SetJobRunAsUser(value); return *this;}
152 inline CreateQueueRequest& WithJobRunAsUser(JobRunAsUser&& value) { SetJobRunAsUser(std::move(value)); return *this;}
154
156
159 inline const Aws::Vector<Aws::String>& GetRequiredFileSystemLocationNames() const{ return m_requiredFileSystemLocationNames; }
160 inline bool RequiredFileSystemLocationNamesHasBeenSet() const { return m_requiredFileSystemLocationNamesHasBeenSet; }
161 inline void SetRequiredFileSystemLocationNames(const Aws::Vector<Aws::String>& value) { m_requiredFileSystemLocationNamesHasBeenSet = true; m_requiredFileSystemLocationNames = value; }
162 inline void SetRequiredFileSystemLocationNames(Aws::Vector<Aws::String>&& value) { m_requiredFileSystemLocationNamesHasBeenSet = true; m_requiredFileSystemLocationNames = std::move(value); }
165 inline CreateQueueRequest& AddRequiredFileSystemLocationNames(const Aws::String& value) { m_requiredFileSystemLocationNamesHasBeenSet = true; m_requiredFileSystemLocationNames.push_back(value); return *this; }
166 inline CreateQueueRequest& AddRequiredFileSystemLocationNames(Aws::String&& value) { m_requiredFileSystemLocationNamesHasBeenSet = true; m_requiredFileSystemLocationNames.push_back(std::move(value)); return *this; }
167 inline CreateQueueRequest& AddRequiredFileSystemLocationNames(const char* value) { m_requiredFileSystemLocationNamesHasBeenSet = true; m_requiredFileSystemLocationNames.push_back(value); return *this; }
169
171
174 inline const Aws::Vector<Aws::String>& GetAllowedStorageProfileIds() const{ return m_allowedStorageProfileIds; }
175 inline bool AllowedStorageProfileIdsHasBeenSet() const { return m_allowedStorageProfileIdsHasBeenSet; }
176 inline void SetAllowedStorageProfileIds(const Aws::Vector<Aws::String>& value) { m_allowedStorageProfileIdsHasBeenSet = true; m_allowedStorageProfileIds = value; }
177 inline void SetAllowedStorageProfileIds(Aws::Vector<Aws::String>&& value) { m_allowedStorageProfileIdsHasBeenSet = true; m_allowedStorageProfileIds = std::move(value); }
180 inline CreateQueueRequest& AddAllowedStorageProfileIds(const Aws::String& value) { m_allowedStorageProfileIdsHasBeenSet = true; m_allowedStorageProfileIds.push_back(value); return *this; }
181 inline CreateQueueRequest& AddAllowedStorageProfileIds(Aws::String&& value) { m_allowedStorageProfileIdsHasBeenSet = true; m_allowedStorageProfileIds.push_back(std::move(value)); return *this; }
182 inline CreateQueueRequest& AddAllowedStorageProfileIds(const char* value) { m_allowedStorageProfileIdsHasBeenSet = true; m_allowedStorageProfileIds.push_back(value); return *this; }
184
186
190 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
191 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
192 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
193 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
194 inline CreateQueueRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
195 inline CreateQueueRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
196 inline CreateQueueRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
197 inline CreateQueueRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
198 inline CreateQueueRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
199 inline CreateQueueRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
200 inline CreateQueueRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
201 inline CreateQueueRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
202 inline CreateQueueRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
204 private:
205
206 Aws::String m_clientToken;
207 bool m_clientTokenHasBeenSet = false;
208
209 Aws::String m_farmId;
210 bool m_farmIdHasBeenSet = false;
211
212 Aws::String m_displayName;
213 bool m_displayNameHasBeenSet = false;
214
215 Aws::String m_description;
216 bool m_descriptionHasBeenSet = false;
217
218 DefaultQueueBudgetAction m_defaultBudgetAction;
219 bool m_defaultBudgetActionHasBeenSet = false;
220
221 JobAttachmentSettings m_jobAttachmentSettings;
222 bool m_jobAttachmentSettingsHasBeenSet = false;
223
224 Aws::String m_roleArn;
225 bool m_roleArnHasBeenSet = false;
226
227 JobRunAsUser m_jobRunAsUser;
228 bool m_jobRunAsUserHasBeenSet = false;
229
230 Aws::Vector<Aws::String> m_requiredFileSystemLocationNames;
231 bool m_requiredFileSystemLocationNamesHasBeenSet = false;
232
233 Aws::Vector<Aws::String> m_allowedStorageProfileIds;
234 bool m_allowedStorageProfileIdsHasBeenSet = false;
235
237 bool m_tagsHasBeenSet = false;
238 };
239
240} // namespace Model
241} // namespace deadline
242} // namespace Aws
virtual const char * GetServiceRequestName() const override
void SetRequiredFileSystemLocationNames(const Aws::Vector< Aws::String > &value)
const Aws::String & GetDisplayName() const
CreateQueueRequest & AddAllowedStorageProfileIds(const Aws::String &value)
CreateQueueRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateQueueRequest & AddTags(const char *key, const char *value)
CreateQueueRequest & WithDefaultBudgetAction(const DefaultQueueBudgetAction &value)
CreateQueueRequest & WithDescription(const Aws::String &value)
CreateQueueRequest & WithDisplayName(Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateQueueRequest & WithFarmId(const char *value)
CreateQueueRequest & WithFarmId(const Aws::String &value)
void SetJobRunAsUser(const JobRunAsUser &value)
const Aws::String & GetDescription() const
AWS_DEADLINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateQueueRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetJobAttachmentSettings(JobAttachmentSettings &&value)
CreateQueueRequest & AddAllowedStorageProfileIds(const char *value)
CreateQueueRequest & AddTags(Aws::String &&key, Aws::String &&value)
const JobAttachmentSettings & GetJobAttachmentSettings() const
CreateQueueRequest & WithJobRunAsUser(JobRunAsUser &&value)
CreateQueueRequest & AddAllowedStorageProfileIds(Aws::String &&value)
void SetDisplayName(const Aws::String &value)
CreateQueueRequest & WithRoleArn(Aws::String &&value)
void SetRequiredFileSystemLocationNames(Aws::Vector< Aws::String > &&value)
void SetAllowedStorageProfileIds(const Aws::Vector< Aws::String > &value)
CreateQueueRequest & WithFarmId(Aws::String &&value)
const Aws::String & GetClientToken() const
void SetDefaultBudgetAction(const DefaultQueueBudgetAction &value)
void SetAllowedStorageProfileIds(Aws::Vector< Aws::String > &&value)
CreateQueueRequest & AddRequiredFileSystemLocationNames(const char *value)
void SetDescription(const Aws::String &value)
CreateQueueRequest & WithRequiredFileSystemLocationNames(Aws::Vector< Aws::String > &&value)
CreateQueueRequest & WithDefaultBudgetAction(DefaultQueueBudgetAction &&value)
CreateQueueRequest & WithDescription(Aws::String &&value)
CreateQueueRequest & WithJobRunAsUser(const JobRunAsUser &value)
CreateQueueRequest & AddTags(Aws::String &&key, const char *value)
CreateQueueRequest & WithJobAttachmentSettings(const JobAttachmentSettings &value)
CreateQueueRequest & WithDisplayName(const char *value)
void SetDefaultBudgetAction(DefaultQueueBudgetAction &&value)
void SetClientToken(const Aws::String &value)
const JobRunAsUser & GetJobRunAsUser() const
CreateQueueRequest & WithAllowedStorageProfileIds(Aws::Vector< Aws::String > &&value)
CreateQueueRequest & WithDescription(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateQueueRequest & WithRequiredFileSystemLocationNames(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetAllowedStorageProfileIds() const
CreateQueueRequest & WithAllowedStorageProfileIds(const Aws::Vector< Aws::String > &value)
CreateQueueRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateQueueRequest & WithRoleArn(const char *value)
const Aws::Vector< Aws::String > & GetRequiredFileSystemLocationNames() const
CreateQueueRequest & AddRequiredFileSystemLocationNames(Aws::String &&value)
void SetFarmId(const Aws::String &value)
const DefaultQueueBudgetAction & GetDefaultBudgetAction() const
CreateQueueRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateQueueRequest & WithJobAttachmentSettings(JobAttachmentSettings &&value)
void SetRoleArn(const Aws::String &value)
CreateQueueRequest & WithClientToken(Aws::String &&value)
CreateQueueRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateQueueRequest & WithClientToken(const Aws::String &value)
CreateQueueRequest & WithRoleArn(const Aws::String &value)
CreateQueueRequest & WithDisplayName(const Aws::String &value)
void SetJobAttachmentSettings(const JobAttachmentSettings &value)
CreateQueueRequest & AddTags(const char *key, Aws::String &&value)
AWS_DEADLINE_API Aws::String SerializePayload() const override
CreateQueueRequest & AddRequiredFileSystemLocationNames(const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateQueueRequest & WithClientToken(const char *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