AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UpdateJobQueueRequest.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/JobStateTimeLimitAction.h>
12#include <aws/batch/model/ServiceEnvironmentOrder.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Batch {
20namespace Model {
21
29 public:
30 AWS_BATCH_API UpdateJobQueueRequest() = 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 "UpdateJobQueue"; }
37
38 AWS_BATCH_API Aws::String SerializePayload() const override;
39
41
44 inline const Aws::String& GetJobQueue() const { return m_jobQueue; }
45 inline bool JobQueueHasBeenSet() const { return m_jobQueueHasBeenSet; }
46 template <typename JobQueueT = Aws::String>
47 void SetJobQueue(JobQueueT&& value) {
48 m_jobQueueHasBeenSet = true;
49 m_jobQueue = std::forward<JobQueueT>(value);
50 }
51 template <typename JobQueueT = Aws::String>
52 UpdateJobQueueRequest& WithJobQueue(JobQueueT&& value) {
53 SetJobQueue(std::forward<JobQueueT>(value));
54 return *this;
55 }
57
59
65 inline JQState GetState() const { return m_state; }
66 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
67 inline void SetState(JQState value) {
68 m_stateHasBeenSet = true;
69 m_state = value;
70 }
72 SetState(value);
73 return *this;
74 }
76
78
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) {
90 m_schedulingPolicyArnHasBeenSet = true;
91 m_schedulingPolicyArn = std::forward<SchedulingPolicyArnT>(value);
92 }
93 template <typename SchedulingPolicyArnT = Aws::String>
94 UpdateJobQueueRequest& WithSchedulingPolicyArn(SchedulingPolicyArnT&& value) {
95 SetSchedulingPolicyArn(std::forward<SchedulingPolicyArnT>(value));
96 return *this;
97 }
99
101
112 inline int GetPriority() const { return m_priority; }
113 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
114 inline void SetPriority(int value) {
115 m_priorityHasBeenSet = true;
116 m_priority = value;
117 }
119 SetPriority(value);
120 return *this;
121 }
123
125
137 inline const Aws::Vector<ComputeEnvironmentOrder>& GetComputeEnvironmentOrder() const { return m_computeEnvironmentOrder; }
138 inline bool ComputeEnvironmentOrderHasBeenSet() const { return m_computeEnvironmentOrderHasBeenSet; }
139 template <typename ComputeEnvironmentOrderT = Aws::Vector<ComputeEnvironmentOrder>>
140 void SetComputeEnvironmentOrder(ComputeEnvironmentOrderT&& value) {
141 m_computeEnvironmentOrderHasBeenSet = true;
142 m_computeEnvironmentOrder = std::forward<ComputeEnvironmentOrderT>(value);
143 }
144 template <typename ComputeEnvironmentOrderT = Aws::Vector<ComputeEnvironmentOrder>>
145 UpdateJobQueueRequest& WithComputeEnvironmentOrder(ComputeEnvironmentOrderT&& value) {
146 SetComputeEnvironmentOrder(std::forward<ComputeEnvironmentOrderT>(value));
147 return *this;
148 }
149 template <typename ComputeEnvironmentOrderT = ComputeEnvironmentOrder>
150 UpdateJobQueueRequest& AddComputeEnvironmentOrder(ComputeEnvironmentOrderT&& value) {
151 m_computeEnvironmentOrderHasBeenSet = true;
152 m_computeEnvironmentOrder.emplace_back(std::forward<ComputeEnvironmentOrderT>(value));
153 return *this;
154 }
156
158
163 inline const Aws::Vector<ServiceEnvironmentOrder>& GetServiceEnvironmentOrder() const { return m_serviceEnvironmentOrder; }
164 inline bool ServiceEnvironmentOrderHasBeenSet() const { return m_serviceEnvironmentOrderHasBeenSet; }
165 template <typename ServiceEnvironmentOrderT = Aws::Vector<ServiceEnvironmentOrder>>
166 void SetServiceEnvironmentOrder(ServiceEnvironmentOrderT&& value) {
167 m_serviceEnvironmentOrderHasBeenSet = true;
168 m_serviceEnvironmentOrder = std::forward<ServiceEnvironmentOrderT>(value);
169 }
170 template <typename ServiceEnvironmentOrderT = Aws::Vector<ServiceEnvironmentOrder>>
171 UpdateJobQueueRequest& WithServiceEnvironmentOrder(ServiceEnvironmentOrderT&& value) {
172 SetServiceEnvironmentOrder(std::forward<ServiceEnvironmentOrderT>(value));
173 return *this;
174 }
175 template <typename ServiceEnvironmentOrderT = ServiceEnvironmentOrder>
176 UpdateJobQueueRequest& AddServiceEnvironmentOrder(ServiceEnvironmentOrderT&& value) {
177 m_serviceEnvironmentOrderHasBeenSet = true;
178 m_serviceEnvironmentOrder.emplace_back(std::forward<ServiceEnvironmentOrderT>(value));
179 return *this;
180 }
182
184
191 inline const Aws::Vector<JobStateTimeLimitAction>& GetJobStateTimeLimitActions() const { return m_jobStateTimeLimitActions; }
192 inline bool JobStateTimeLimitActionsHasBeenSet() const { return m_jobStateTimeLimitActionsHasBeenSet; }
193 template <typename JobStateTimeLimitActionsT = Aws::Vector<JobStateTimeLimitAction>>
194 void SetJobStateTimeLimitActions(JobStateTimeLimitActionsT&& value) {
195 m_jobStateTimeLimitActionsHasBeenSet = true;
196 m_jobStateTimeLimitActions = std::forward<JobStateTimeLimitActionsT>(value);
197 }
198 template <typename JobStateTimeLimitActionsT = Aws::Vector<JobStateTimeLimitAction>>
199 UpdateJobQueueRequest& WithJobStateTimeLimitActions(JobStateTimeLimitActionsT&& value) {
200 SetJobStateTimeLimitActions(std::forward<JobStateTimeLimitActionsT>(value));
201 return *this;
202 }
203 template <typename JobStateTimeLimitActionsT = JobStateTimeLimitAction>
204 UpdateJobQueueRequest& AddJobStateTimeLimitActions(JobStateTimeLimitActionsT&& value) {
205 m_jobStateTimeLimitActionsHasBeenSet = true;
206 m_jobStateTimeLimitActions.emplace_back(std::forward<JobStateTimeLimitActionsT>(value));
207 return *this;
208 }
210 private:
211 Aws::String m_jobQueue;
212
213 JQState m_state{JQState::NOT_SET};
214
215 Aws::String m_schedulingPolicyArn;
216
217 int m_priority{0};
218
219 Aws::Vector<ComputeEnvironmentOrder> m_computeEnvironmentOrder;
220
221 Aws::Vector<ServiceEnvironmentOrder> m_serviceEnvironmentOrder;
222
223 Aws::Vector<JobStateTimeLimitAction> m_jobStateTimeLimitActions;
224 bool m_jobQueueHasBeenSet = false;
225 bool m_stateHasBeenSet = false;
226 bool m_schedulingPolicyArnHasBeenSet = false;
227 bool m_priorityHasBeenSet = false;
228 bool m_computeEnvironmentOrderHasBeenSet = false;
229 bool m_serviceEnvironmentOrderHasBeenSet = false;
230 bool m_jobStateTimeLimitActionsHasBeenSet = false;
231};
232
233} // namespace Model
234} // namespace Batch
235} // namespace Aws
void SetJobStateTimeLimitActions(JobStateTimeLimitActionsT &&value)
const Aws::Vector< ComputeEnvironmentOrder > & GetComputeEnvironmentOrder() const
UpdateJobQueueRequest & WithSchedulingPolicyArn(SchedulingPolicyArnT &&value)
UpdateJobQueueRequest & WithJobQueue(JobQueueT &&value)
const Aws::Vector< JobStateTimeLimitAction > & GetJobStateTimeLimitActions() const
UpdateJobQueueRequest & AddComputeEnvironmentOrder(ComputeEnvironmentOrderT &&value)
UpdateJobQueueRequest & WithComputeEnvironmentOrder(ComputeEnvironmentOrderT &&value)
const Aws::String & GetSchedulingPolicyArn() const
AWS_BATCH_API UpdateJobQueueRequest()=default
virtual const char * GetServiceRequestName() const override
const Aws::Vector< ServiceEnvironmentOrder > & GetServiceEnvironmentOrder() const
void SetComputeEnvironmentOrder(ComputeEnvironmentOrderT &&value)
void SetSchedulingPolicyArn(SchedulingPolicyArnT &&value)
UpdateJobQueueRequest & WithServiceEnvironmentOrder(ServiceEnvironmentOrderT &&value)
UpdateJobQueueRequest & WithPriority(int value)
AWS_BATCH_API Aws::String SerializePayload() const override
void SetServiceEnvironmentOrder(ServiceEnvironmentOrderT &&value)
UpdateJobQueueRequest & WithJobStateTimeLimitActions(JobStateTimeLimitActionsT &&value)
UpdateJobQueueRequest & AddJobStateTimeLimitActions(JobStateTimeLimitActionsT &&value)
UpdateJobQueueRequest & AddServiceEnvironmentOrder(ServiceEnvironmentOrderT &&value)
UpdateJobQueueRequest & WithState(JQState value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector