AWS SDK for C++

AWS SDK for C++ Version 1.11.634

Loading...
Searching...
No Matches
CreateJobQueueRequest.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/batch/BatchRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/batch/model/JQState.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/batch/model/JobQueueType.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/batch/model/ComputeEnvironmentOrder.h>
15#include <aws/batch/model/ServiceEnvironmentOrder.h>
16#include <aws/batch/model/JobStateTimeLimitAction.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Batch
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_BATCH_API CreateJobQueueRequest() = default;
36
37 // Service request name is the Operation name which will send this request out,
38 // each operation should has unique request name, so that we can get operation's name from this request.
39 // Note: this is not true for response, multiple operations may have the same response name,
40 // so we can not get operation's name from response.
41 inline virtual const char* GetServiceRequestName() const override { return "CreateJobQueue"; }
42
43 AWS_BATCH_API Aws::String SerializePayload() const override;
44
45
47
51 inline const Aws::String& GetJobQueueName() const { return m_jobQueueName; }
52 inline bool JobQueueNameHasBeenSet() const { return m_jobQueueNameHasBeenSet; }
53 template<typename JobQueueNameT = Aws::String>
54 void SetJobQueueName(JobQueueNameT&& value) { m_jobQueueNameHasBeenSet = true; m_jobQueueName = std::forward<JobQueueNameT>(value); }
55 template<typename JobQueueNameT = Aws::String>
56 CreateJobQueueRequest& WithJobQueueName(JobQueueNameT&& value) { SetJobQueueName(std::forward<JobQueueNameT>(value)); return *this;}
58
60
65 inline JQState GetState() const { return m_state; }
66 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
67 inline void SetState(JQState value) { m_stateHasBeenSet = true; m_state = value; }
68 inline CreateJobQueueRequest& WithState(JQState value) { SetState(value); return *this;}
70
72
86 inline const Aws::String& GetSchedulingPolicyArn() const { return m_schedulingPolicyArn; }
87 inline bool SchedulingPolicyArnHasBeenSet() const { return m_schedulingPolicyArnHasBeenSet; }
88 template<typename SchedulingPolicyArnT = Aws::String>
89 void SetSchedulingPolicyArn(SchedulingPolicyArnT&& value) { m_schedulingPolicyArnHasBeenSet = true; m_schedulingPolicyArn = std::forward<SchedulingPolicyArnT>(value); }
90 template<typename SchedulingPolicyArnT = Aws::String>
91 CreateJobQueueRequest& WithSchedulingPolicyArn(SchedulingPolicyArnT&& value) { SetSchedulingPolicyArn(std::forward<SchedulingPolicyArnT>(value)); return *this;}
93
95
106 inline int GetPriority() const { return m_priority; }
107 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
108 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
109 inline CreateJobQueueRequest& WithPriority(int value) { SetPriority(value); return *this;}
111
113
126 inline const Aws::Vector<ComputeEnvironmentOrder>& GetComputeEnvironmentOrder() const { return m_computeEnvironmentOrder; }
127 inline bool ComputeEnvironmentOrderHasBeenSet() const { return m_computeEnvironmentOrderHasBeenSet; }
128 template<typename ComputeEnvironmentOrderT = Aws::Vector<ComputeEnvironmentOrder>>
129 void SetComputeEnvironmentOrder(ComputeEnvironmentOrderT&& value) { m_computeEnvironmentOrderHasBeenSet = true; m_computeEnvironmentOrder = std::forward<ComputeEnvironmentOrderT>(value); }
130 template<typename ComputeEnvironmentOrderT = Aws::Vector<ComputeEnvironmentOrder>>
131 CreateJobQueueRequest& WithComputeEnvironmentOrder(ComputeEnvironmentOrderT&& value) { SetComputeEnvironmentOrder(std::forward<ComputeEnvironmentOrderT>(value)); return *this;}
132 template<typename ComputeEnvironmentOrderT = ComputeEnvironmentOrder>
133 CreateJobQueueRequest& AddComputeEnvironmentOrder(ComputeEnvironmentOrderT&& value) { m_computeEnvironmentOrderHasBeenSet = true; m_computeEnvironmentOrder.emplace_back(std::forward<ComputeEnvironmentOrderT>(value)); return *this; }
135
137
142 inline const Aws::Vector<ServiceEnvironmentOrder>& GetServiceEnvironmentOrder() const { return m_serviceEnvironmentOrder; }
143 inline bool ServiceEnvironmentOrderHasBeenSet() const { return m_serviceEnvironmentOrderHasBeenSet; }
144 template<typename ServiceEnvironmentOrderT = Aws::Vector<ServiceEnvironmentOrder>>
145 void SetServiceEnvironmentOrder(ServiceEnvironmentOrderT&& value) { m_serviceEnvironmentOrderHasBeenSet = true; m_serviceEnvironmentOrder = std::forward<ServiceEnvironmentOrderT>(value); }
146 template<typename ServiceEnvironmentOrderT = Aws::Vector<ServiceEnvironmentOrder>>
147 CreateJobQueueRequest& WithServiceEnvironmentOrder(ServiceEnvironmentOrderT&& value) { SetServiceEnvironmentOrder(std::forward<ServiceEnvironmentOrderT>(value)); return *this;}
148 template<typename ServiceEnvironmentOrderT = ServiceEnvironmentOrder>
149 CreateJobQueueRequest& AddServiceEnvironmentOrder(ServiceEnvironmentOrderT&& value) { m_serviceEnvironmentOrderHasBeenSet = true; m_serviceEnvironmentOrder.emplace_back(std::forward<ServiceEnvironmentOrderT>(value)); return *this; }
151
153
159 inline JobQueueType GetJobQueueType() const { return m_jobQueueType; }
160 inline bool JobQueueTypeHasBeenSet() const { return m_jobQueueTypeHasBeenSet; }
161 inline void SetJobQueueType(JobQueueType value) { m_jobQueueTypeHasBeenSet = true; m_jobQueueType = value; }
164
166
173 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
174 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
175 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
176 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
177 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
178 CreateJobQueueRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
179 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
180 CreateJobQueueRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
181 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
182 }
184
186
193 inline const Aws::Vector<JobStateTimeLimitAction>& GetJobStateTimeLimitActions() const { return m_jobStateTimeLimitActions; }
194 inline bool JobStateTimeLimitActionsHasBeenSet() const { return m_jobStateTimeLimitActionsHasBeenSet; }
195 template<typename JobStateTimeLimitActionsT = Aws::Vector<JobStateTimeLimitAction>>
196 void SetJobStateTimeLimitActions(JobStateTimeLimitActionsT&& value) { m_jobStateTimeLimitActionsHasBeenSet = true; m_jobStateTimeLimitActions = std::forward<JobStateTimeLimitActionsT>(value); }
197 template<typename JobStateTimeLimitActionsT = Aws::Vector<JobStateTimeLimitAction>>
198 CreateJobQueueRequest& WithJobStateTimeLimitActions(JobStateTimeLimitActionsT&& value) { SetJobStateTimeLimitActions(std::forward<JobStateTimeLimitActionsT>(value)); return *this;}
199 template<typename JobStateTimeLimitActionsT = JobStateTimeLimitAction>
200 CreateJobQueueRequest& AddJobStateTimeLimitActions(JobStateTimeLimitActionsT&& value) { m_jobStateTimeLimitActionsHasBeenSet = true; m_jobStateTimeLimitActions.emplace_back(std::forward<JobStateTimeLimitActionsT>(value)); return *this; }
202 private:
203
204 Aws::String m_jobQueueName;
205 bool m_jobQueueNameHasBeenSet = false;
206
207 JQState m_state{JQState::NOT_SET};
208 bool m_stateHasBeenSet = false;
209
210 Aws::String m_schedulingPolicyArn;
211 bool m_schedulingPolicyArnHasBeenSet = false;
212
213 int m_priority{0};
214 bool m_priorityHasBeenSet = false;
215
216 Aws::Vector<ComputeEnvironmentOrder> m_computeEnvironmentOrder;
217 bool m_computeEnvironmentOrderHasBeenSet = false;
218
219 Aws::Vector<ServiceEnvironmentOrder> m_serviceEnvironmentOrder;
220 bool m_serviceEnvironmentOrderHasBeenSet = false;
221
222 JobQueueType m_jobQueueType{JobQueueType::NOT_SET};
223 bool m_jobQueueTypeHasBeenSet = false;
224
226 bool m_tagsHasBeenSet = false;
227
228 Aws::Vector<JobStateTimeLimitAction> m_jobStateTimeLimitActions;
229 bool m_jobStateTimeLimitActionsHasBeenSet = false;
230 };
231
232} // namespace Model
233} // namespace Batch
234} // 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