AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateJobQueueRequest.h
1
6#pragma once
7#include <aws/batch/BatchRequest.h>
8#include <aws/batch/Batch_EXPORTS.h>
9#include <aws/batch/model/ComputeEnvironmentOrder.h>
10#include <aws/batch/model/JQState.h>
11#include <aws/batch/model/JobQueueType.h>
12#include <aws/batch/model/JobStateTimeLimitAction.h>
13#include <aws/batch/model/ServiceEnvironmentOrder.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
16#include <aws/core/utils/memory/stl/AWSVector.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Batch {
22namespace Model {
23
31 public:
32 AWS_BATCH_API CreateJobQueueRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "CreateJobQueue"; }
39
40 AWS_BATCH_API Aws::String SerializePayload() const override;
41
43
47 inline const Aws::String& GetJobQueueName() const { return m_jobQueueName; }
48 inline bool JobQueueNameHasBeenSet() const { return m_jobQueueNameHasBeenSet; }
49 template <typename JobQueueNameT = Aws::String>
50 void SetJobQueueName(JobQueueNameT&& value) {
51 m_jobQueueNameHasBeenSet = true;
52 m_jobQueueName = std::forward<JobQueueNameT>(value);
53 }
54 template <typename JobQueueNameT = Aws::String>
55 CreateJobQueueRequest& WithJobQueueName(JobQueueNameT&& value) {
56 SetJobQueueName(std::forward<JobQueueNameT>(value));
57 return *this;
58 }
60
62
67 inline JQState GetState() const { return m_state; }
68 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
69 inline void SetState(JQState value) {
70 m_stateHasBeenSet = true;
71 m_state = value;
72 }
74 SetState(value);
75 return *this;
76 }
78
80
94 inline const Aws::String& GetSchedulingPolicyArn() const { return m_schedulingPolicyArn; }
95 inline bool SchedulingPolicyArnHasBeenSet() const { return m_schedulingPolicyArnHasBeenSet; }
96 template <typename SchedulingPolicyArnT = Aws::String>
97 void SetSchedulingPolicyArn(SchedulingPolicyArnT&& value) {
98 m_schedulingPolicyArnHasBeenSet = true;
99 m_schedulingPolicyArn = std::forward<SchedulingPolicyArnT>(value);
100 }
101 template <typename SchedulingPolicyArnT = Aws::String>
102 CreateJobQueueRequest& WithSchedulingPolicyArn(SchedulingPolicyArnT&& value) {
103 SetSchedulingPolicyArn(std::forward<SchedulingPolicyArnT>(value));
104 return *this;
105 }
107
109
120 inline int GetPriority() const { return m_priority; }
121 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
122 inline void SetPriority(int value) {
123 m_priorityHasBeenSet = true;
124 m_priority = value;
125 }
127 SetPriority(value);
128 return *this;
129 }
131
133
146 inline const Aws::Vector<ComputeEnvironmentOrder>& GetComputeEnvironmentOrder() const { return m_computeEnvironmentOrder; }
147 inline bool ComputeEnvironmentOrderHasBeenSet() const { return m_computeEnvironmentOrderHasBeenSet; }
148 template <typename ComputeEnvironmentOrderT = Aws::Vector<ComputeEnvironmentOrder>>
149 void SetComputeEnvironmentOrder(ComputeEnvironmentOrderT&& value) {
150 m_computeEnvironmentOrderHasBeenSet = true;
151 m_computeEnvironmentOrder = std::forward<ComputeEnvironmentOrderT>(value);
152 }
153 template <typename ComputeEnvironmentOrderT = Aws::Vector<ComputeEnvironmentOrder>>
154 CreateJobQueueRequest& WithComputeEnvironmentOrder(ComputeEnvironmentOrderT&& value) {
155 SetComputeEnvironmentOrder(std::forward<ComputeEnvironmentOrderT>(value));
156 return *this;
157 }
158 template <typename ComputeEnvironmentOrderT = ComputeEnvironmentOrder>
159 CreateJobQueueRequest& AddComputeEnvironmentOrder(ComputeEnvironmentOrderT&& value) {
160 m_computeEnvironmentOrderHasBeenSet = true;
161 m_computeEnvironmentOrder.emplace_back(std::forward<ComputeEnvironmentOrderT>(value));
162 return *this;
163 }
165
167
172 inline const Aws::Vector<ServiceEnvironmentOrder>& GetServiceEnvironmentOrder() const { return m_serviceEnvironmentOrder; }
173 inline bool ServiceEnvironmentOrderHasBeenSet() const { return m_serviceEnvironmentOrderHasBeenSet; }
174 template <typename ServiceEnvironmentOrderT = Aws::Vector<ServiceEnvironmentOrder>>
175 void SetServiceEnvironmentOrder(ServiceEnvironmentOrderT&& value) {
176 m_serviceEnvironmentOrderHasBeenSet = true;
177 m_serviceEnvironmentOrder = std::forward<ServiceEnvironmentOrderT>(value);
178 }
179 template <typename ServiceEnvironmentOrderT = Aws::Vector<ServiceEnvironmentOrder>>
180 CreateJobQueueRequest& WithServiceEnvironmentOrder(ServiceEnvironmentOrderT&& value) {
181 SetServiceEnvironmentOrder(std::forward<ServiceEnvironmentOrderT>(value));
182 return *this;
183 }
184 template <typename ServiceEnvironmentOrderT = ServiceEnvironmentOrder>
185 CreateJobQueueRequest& AddServiceEnvironmentOrder(ServiceEnvironmentOrderT&& value) {
186 m_serviceEnvironmentOrderHasBeenSet = true;
187 m_serviceEnvironmentOrder.emplace_back(std::forward<ServiceEnvironmentOrderT>(value));
188 return *this;
189 }
191
193
199 inline JobQueueType GetJobQueueType() const { return m_jobQueueType; }
200 inline bool JobQueueTypeHasBeenSet() const { return m_jobQueueTypeHasBeenSet; }
201 inline void SetJobQueueType(JobQueueType value) {
202 m_jobQueueTypeHasBeenSet = true;
203 m_jobQueueType = value;
204 }
206 SetJobQueueType(value);
207 return *this;
208 }
210
212
219 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
220 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
221 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
222 void SetTags(TagsT&& value) {
223 m_tagsHasBeenSet = true;
224 m_tags = std::forward<TagsT>(value);
225 }
226 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
228 SetTags(std::forward<TagsT>(value));
229 return *this;
230 }
231 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
232 CreateJobQueueRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
233 m_tagsHasBeenSet = true;
234 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
235 return *this;
236 }
238
240
247 inline const Aws::Vector<JobStateTimeLimitAction>& GetJobStateTimeLimitActions() const { return m_jobStateTimeLimitActions; }
248 inline bool JobStateTimeLimitActionsHasBeenSet() const { return m_jobStateTimeLimitActionsHasBeenSet; }
249 template <typename JobStateTimeLimitActionsT = Aws::Vector<JobStateTimeLimitAction>>
250 void SetJobStateTimeLimitActions(JobStateTimeLimitActionsT&& value) {
251 m_jobStateTimeLimitActionsHasBeenSet = true;
252 m_jobStateTimeLimitActions = std::forward<JobStateTimeLimitActionsT>(value);
253 }
254 template <typename JobStateTimeLimitActionsT = Aws::Vector<JobStateTimeLimitAction>>
255 CreateJobQueueRequest& WithJobStateTimeLimitActions(JobStateTimeLimitActionsT&& value) {
256 SetJobStateTimeLimitActions(std::forward<JobStateTimeLimitActionsT>(value));
257 return *this;
258 }
259 template <typename JobStateTimeLimitActionsT = JobStateTimeLimitAction>
260 CreateJobQueueRequest& AddJobStateTimeLimitActions(JobStateTimeLimitActionsT&& value) {
261 m_jobStateTimeLimitActionsHasBeenSet = true;
262 m_jobStateTimeLimitActions.emplace_back(std::forward<JobStateTimeLimitActionsT>(value));
263 return *this;
264 }
266 private:
267 Aws::String m_jobQueueName;
268
269 JQState m_state{JQState::NOT_SET};
270
271 Aws::String m_schedulingPolicyArn;
272
273 int m_priority{0};
274
275 Aws::Vector<ComputeEnvironmentOrder> m_computeEnvironmentOrder;
276
277 Aws::Vector<ServiceEnvironmentOrder> m_serviceEnvironmentOrder;
278
279 JobQueueType m_jobQueueType{JobQueueType::NOT_SET};
280
282
283 Aws::Vector<JobStateTimeLimitAction> m_jobStateTimeLimitActions;
284 bool m_jobQueueNameHasBeenSet = false;
285 bool m_stateHasBeenSet = false;
286 bool m_schedulingPolicyArnHasBeenSet = false;
287 bool m_priorityHasBeenSet = false;
288 bool m_computeEnvironmentOrderHasBeenSet = false;
289 bool m_serviceEnvironmentOrderHasBeenSet = false;
290 bool m_jobQueueTypeHasBeenSet = false;
291 bool m_tagsHasBeenSet = false;
292 bool m_jobStateTimeLimitActionsHasBeenSet = false;
293};
294
295} // namespace Model
296} // namespace Batch
297} // namespace Aws
void SetSchedulingPolicyArn(SchedulingPolicyArnT &&value)
CreateJobQueueRequest & WithComputeEnvironmentOrder(ComputeEnvironmentOrderT &&value)
CreateJobQueueRequest & WithJobStateTimeLimitActions(JobStateTimeLimitActionsT &&value)
AWS_BATCH_API CreateJobQueueRequest()=default
const Aws::Vector< ComputeEnvironmentOrder > & GetComputeEnvironmentOrder() const
CreateJobQueueRequest & WithState(JQState value)
CreateJobQueueRequest & WithJobQueueType(JobQueueType value)
CreateJobQueueRequest & WithPriority(int value)
const Aws::Vector< JobStateTimeLimitAction > & GetJobStateTimeLimitActions() const
CreateJobQueueRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateJobQueueRequest & WithSchedulingPolicyArn(SchedulingPolicyArnT &&value)
void SetComputeEnvironmentOrder(ComputeEnvironmentOrderT &&value)
AWS_BATCH_API Aws::String SerializePayload() const override
void SetJobStateTimeLimitActions(JobStateTimeLimitActionsT &&value)
CreateJobQueueRequest & WithJobQueueName(JobQueueNameT &&value)
virtual const char * GetServiceRequestName() const override
CreateJobQueueRequest & AddServiceEnvironmentOrder(ServiceEnvironmentOrderT &&value)
CreateJobQueueRequest & WithServiceEnvironmentOrder(ServiceEnvironmentOrderT &&value)
void SetServiceEnvironmentOrder(ServiceEnvironmentOrderT &&value)
const Aws::String & GetSchedulingPolicyArn() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::Vector< ServiceEnvironmentOrder > & GetServiceEnvironmentOrder() const
CreateJobQueueRequest & AddComputeEnvironmentOrder(ComputeEnvironmentOrderT &&value)
CreateJobQueueRequest & AddJobStateTimeLimitActions(JobStateTimeLimitActionsT &&value)
CreateJobQueueRequest & WithTags(TagsT &&value)
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