AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename ClientTokenT = Aws::String>
51 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
52 template<typename ClientTokenT = Aws::String>
53 CreateQueueRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
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) { m_farmIdHasBeenSet = true; m_farmId = std::forward<FarmIdT>(value); }
64 template<typename FarmIdT = Aws::String>
65 CreateQueueRequest& WithFarmId(FarmIdT&& value) { SetFarmId(std::forward<FarmIdT>(value)); return *this;}
67
69
74 inline const Aws::String& GetDisplayName() const { return m_displayName; }
75 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
76 template<typename DisplayNameT = Aws::String>
77 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
78 template<typename DisplayNameT = Aws::String>
79 CreateQueueRequest& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
81
83
88 inline const Aws::String& GetDescription() const { return m_description; }
89 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
90 template<typename DescriptionT = Aws::String>
91 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
92 template<typename DescriptionT = Aws::String>
93 CreateQueueRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
95
97
100 inline DefaultQueueBudgetAction GetDefaultBudgetAction() const { return m_defaultBudgetAction; }
101 inline bool DefaultBudgetActionHasBeenSet() const { return m_defaultBudgetActionHasBeenSet; }
102 inline void SetDefaultBudgetAction(DefaultQueueBudgetAction value) { m_defaultBudgetActionHasBeenSet = true; m_defaultBudgetAction = value; }
105
107
111 inline const JobAttachmentSettings& GetJobAttachmentSettings() const { return m_jobAttachmentSettings; }
112 inline bool JobAttachmentSettingsHasBeenSet() const { return m_jobAttachmentSettingsHasBeenSet; }
113 template<typename JobAttachmentSettingsT = JobAttachmentSettings>
114 void SetJobAttachmentSettings(JobAttachmentSettingsT&& value) { m_jobAttachmentSettingsHasBeenSet = true; m_jobAttachmentSettings = std::forward<JobAttachmentSettingsT>(value); }
115 template<typename JobAttachmentSettingsT = JobAttachmentSettings>
116 CreateQueueRequest& WithJobAttachmentSettings(JobAttachmentSettingsT&& value) { SetJobAttachmentSettings(std::forward<JobAttachmentSettingsT>(value)); return *this;}
118
120
123 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
124 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
125 template<typename RoleArnT = Aws::String>
126 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
127 template<typename RoleArnT = Aws::String>
128 CreateQueueRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
130
132
135 inline const JobRunAsUser& GetJobRunAsUser() const { return m_jobRunAsUser; }
136 inline bool JobRunAsUserHasBeenSet() const { return m_jobRunAsUserHasBeenSet; }
137 template<typename JobRunAsUserT = JobRunAsUser>
138 void SetJobRunAsUser(JobRunAsUserT&& value) { m_jobRunAsUserHasBeenSet = true; m_jobRunAsUser = std::forward<JobRunAsUserT>(value); }
139 template<typename JobRunAsUserT = JobRunAsUser>
140 CreateQueueRequest& WithJobRunAsUser(JobRunAsUserT&& value) { SetJobRunAsUser(std::forward<JobRunAsUserT>(value)); return *this;}
142
144
147 inline const Aws::Vector<Aws::String>& GetRequiredFileSystemLocationNames() const { return m_requiredFileSystemLocationNames; }
148 inline bool RequiredFileSystemLocationNamesHasBeenSet() const { return m_requiredFileSystemLocationNamesHasBeenSet; }
149 template<typename RequiredFileSystemLocationNamesT = Aws::Vector<Aws::String>>
150 void SetRequiredFileSystemLocationNames(RequiredFileSystemLocationNamesT&& value) { m_requiredFileSystemLocationNamesHasBeenSet = true; m_requiredFileSystemLocationNames = std::forward<RequiredFileSystemLocationNamesT>(value); }
151 template<typename RequiredFileSystemLocationNamesT = Aws::Vector<Aws::String>>
152 CreateQueueRequest& WithRequiredFileSystemLocationNames(RequiredFileSystemLocationNamesT&& value) { SetRequiredFileSystemLocationNames(std::forward<RequiredFileSystemLocationNamesT>(value)); return *this;}
153 template<typename RequiredFileSystemLocationNamesT = Aws::String>
154 CreateQueueRequest& AddRequiredFileSystemLocationNames(RequiredFileSystemLocationNamesT&& value) { m_requiredFileSystemLocationNamesHasBeenSet = true; m_requiredFileSystemLocationNames.emplace_back(std::forward<RequiredFileSystemLocationNamesT>(value)); return *this; }
156
158
161 inline const Aws::Vector<Aws::String>& GetAllowedStorageProfileIds() const { return m_allowedStorageProfileIds; }
162 inline bool AllowedStorageProfileIdsHasBeenSet() const { return m_allowedStorageProfileIdsHasBeenSet; }
163 template<typename AllowedStorageProfileIdsT = Aws::Vector<Aws::String>>
164 void SetAllowedStorageProfileIds(AllowedStorageProfileIdsT&& value) { m_allowedStorageProfileIdsHasBeenSet = true; m_allowedStorageProfileIds = std::forward<AllowedStorageProfileIdsT>(value); }
165 template<typename AllowedStorageProfileIdsT = Aws::Vector<Aws::String>>
166 CreateQueueRequest& WithAllowedStorageProfileIds(AllowedStorageProfileIdsT&& value) { SetAllowedStorageProfileIds(std::forward<AllowedStorageProfileIdsT>(value)); return *this;}
167 template<typename AllowedStorageProfileIdsT = Aws::String>
168 CreateQueueRequest& AddAllowedStorageProfileIds(AllowedStorageProfileIdsT&& value) { m_allowedStorageProfileIdsHasBeenSet = true; m_allowedStorageProfileIds.emplace_back(std::forward<AllowedStorageProfileIdsT>(value)); return *this; }
170
172
176 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
177 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
178 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
179 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
180 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
181 CreateQueueRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
182 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
183 CreateQueueRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
184 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
185 }
187 private:
188
190 bool m_clientTokenHasBeenSet = true;
191
192 Aws::String m_farmId;
193 bool m_farmIdHasBeenSet = false;
194
195 Aws::String m_displayName;
196 bool m_displayNameHasBeenSet = false;
197
198 Aws::String m_description;
199 bool m_descriptionHasBeenSet = false;
200
202 bool m_defaultBudgetActionHasBeenSet = false;
203
204 JobAttachmentSettings m_jobAttachmentSettings;
205 bool m_jobAttachmentSettingsHasBeenSet = false;
206
207 Aws::String m_roleArn;
208 bool m_roleArnHasBeenSet = false;
209
210 JobRunAsUser m_jobRunAsUser;
211 bool m_jobRunAsUserHasBeenSet = false;
212
213 Aws::Vector<Aws::String> m_requiredFileSystemLocationNames;
214 bool m_requiredFileSystemLocationNamesHasBeenSet = false;
215
216 Aws::Vector<Aws::String> m_allowedStorageProfileIds;
217 bool m_allowedStorageProfileIdsHasBeenSet = false;
218
220 bool m_tagsHasBeenSet = false;
221 };
222
223} // namespace Model
224} // namespace deadline
225} // 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)
const Aws::String & GetDescription() const
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