AWS SDK for C++

AWS SDK for C++ Version 1.11.634

Loading...
Searching...
No Matches
JobQueueDetail.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/batch/model/JQState.h>
10#include <aws/batch/model/JQStatus.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 Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace Batch
30{
31namespace Model
32{
33
41 {
42 public:
43 AWS_BATCH_API JobQueueDetail() = default;
46 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline const Aws::String& GetJobQueueName() const { return m_jobQueueName; }
54 inline bool JobQueueNameHasBeenSet() const { return m_jobQueueNameHasBeenSet; }
55 template<typename JobQueueNameT = Aws::String>
56 void SetJobQueueName(JobQueueNameT&& value) { m_jobQueueNameHasBeenSet = true; m_jobQueueName = std::forward<JobQueueNameT>(value); }
57 template<typename JobQueueNameT = Aws::String>
58 JobQueueDetail& WithJobQueueName(JobQueueNameT&& value) { SetJobQueueName(std::forward<JobQueueNameT>(value)); return *this;}
60
62
65 inline const Aws::String& GetJobQueueArn() const { return m_jobQueueArn; }
66 inline bool JobQueueArnHasBeenSet() const { return m_jobQueueArnHasBeenSet; }
67 template<typename JobQueueArnT = Aws::String>
68 void SetJobQueueArn(JobQueueArnT&& value) { m_jobQueueArnHasBeenSet = true; m_jobQueueArn = std::forward<JobQueueArnT>(value); }
69 template<typename JobQueueArnT = Aws::String>
70 JobQueueDetail& WithJobQueueArn(JobQueueArnT&& value) { SetJobQueueArn(std::forward<JobQueueArnT>(value)); return *this;}
72
74
80 inline JQState GetState() const { return m_state; }
81 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
82 inline void SetState(JQState value) { m_stateHasBeenSet = true; m_state = value; }
83 inline JobQueueDetail& WithState(JQState value) { SetState(value); return *this;}
85
87
93 inline const Aws::String& GetSchedulingPolicyArn() const { return m_schedulingPolicyArn; }
94 inline bool SchedulingPolicyArnHasBeenSet() const { return m_schedulingPolicyArnHasBeenSet; }
95 template<typename SchedulingPolicyArnT = Aws::String>
96 void SetSchedulingPolicyArn(SchedulingPolicyArnT&& value) { m_schedulingPolicyArnHasBeenSet = true; m_schedulingPolicyArn = std::forward<SchedulingPolicyArnT>(value); }
97 template<typename SchedulingPolicyArnT = Aws::String>
98 JobQueueDetail& WithSchedulingPolicyArn(SchedulingPolicyArnT&& value) { SetSchedulingPolicyArn(std::forward<SchedulingPolicyArnT>(value)); return *this;}
100
102
106 inline JQStatus GetStatus() const { return m_status; }
107 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
108 inline void SetStatus(JQStatus value) { m_statusHasBeenSet = true; m_status = value; }
109 inline JobQueueDetail& WithStatus(JQStatus value) { SetStatus(value); return *this;}
111
113
117 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
118 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
119 template<typename StatusReasonT = Aws::String>
120 void SetStatusReason(StatusReasonT&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::forward<StatusReasonT>(value); }
121 template<typename StatusReasonT = Aws::String>
122 JobQueueDetail& WithStatusReason(StatusReasonT&& value) { SetStatusReason(std::forward<StatusReasonT>(value)); return *this;}
124
126
148 inline int GetPriority() const { return m_priority; }
149 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
150 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
151 inline JobQueueDetail& WithPriority(int value) { SetPriority(value); return *this;}
153
155
160 inline const Aws::Vector<ComputeEnvironmentOrder>& GetComputeEnvironmentOrder() const { return m_computeEnvironmentOrder; }
161 inline bool ComputeEnvironmentOrderHasBeenSet() const { return m_computeEnvironmentOrderHasBeenSet; }
162 template<typename ComputeEnvironmentOrderT = Aws::Vector<ComputeEnvironmentOrder>>
163 void SetComputeEnvironmentOrder(ComputeEnvironmentOrderT&& value) { m_computeEnvironmentOrderHasBeenSet = true; m_computeEnvironmentOrder = std::forward<ComputeEnvironmentOrderT>(value); }
164 template<typename ComputeEnvironmentOrderT = Aws::Vector<ComputeEnvironmentOrder>>
165 JobQueueDetail& WithComputeEnvironmentOrder(ComputeEnvironmentOrderT&& value) { SetComputeEnvironmentOrder(std::forward<ComputeEnvironmentOrderT>(value)); return *this;}
166 template<typename ComputeEnvironmentOrderT = ComputeEnvironmentOrder>
167 JobQueueDetail& AddComputeEnvironmentOrder(ComputeEnvironmentOrderT&& value) { m_computeEnvironmentOrderHasBeenSet = true; m_computeEnvironmentOrder.emplace_back(std::forward<ComputeEnvironmentOrderT>(value)); return *this; }
169
171
176 inline const Aws::Vector<ServiceEnvironmentOrder>& GetServiceEnvironmentOrder() const { return m_serviceEnvironmentOrder; }
177 inline bool ServiceEnvironmentOrderHasBeenSet() const { return m_serviceEnvironmentOrderHasBeenSet; }
178 template<typename ServiceEnvironmentOrderT = Aws::Vector<ServiceEnvironmentOrder>>
179 void SetServiceEnvironmentOrder(ServiceEnvironmentOrderT&& value) { m_serviceEnvironmentOrderHasBeenSet = true; m_serviceEnvironmentOrder = std::forward<ServiceEnvironmentOrderT>(value); }
180 template<typename ServiceEnvironmentOrderT = Aws::Vector<ServiceEnvironmentOrder>>
181 JobQueueDetail& WithServiceEnvironmentOrder(ServiceEnvironmentOrderT&& value) { SetServiceEnvironmentOrder(std::forward<ServiceEnvironmentOrderT>(value)); return *this;}
182 template<typename ServiceEnvironmentOrderT = ServiceEnvironmentOrder>
183 JobQueueDetail& AddServiceEnvironmentOrder(ServiceEnvironmentOrderT&& value) { m_serviceEnvironmentOrderHasBeenSet = true; m_serviceEnvironmentOrder.emplace_back(std::forward<ServiceEnvironmentOrderT>(value)); return *this; }
185
187
193 inline JobQueueType GetJobQueueType() const { return m_jobQueueType; }
194 inline bool JobQueueTypeHasBeenSet() const { return m_jobQueueTypeHasBeenSet; }
195 inline void SetJobQueueType(JobQueueType value) { m_jobQueueTypeHasBeenSet = true; m_jobQueueType = value; }
196 inline JobQueueDetail& WithJobQueueType(JobQueueType value) { SetJobQueueType(value); return *this;}
198
200
205 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
206 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
207 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
208 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
209 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
210 JobQueueDetail& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
211 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
212 JobQueueDetail& AddTags(TagsKeyT&& key, TagsValueT&& value) {
213 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
214 }
216
218
223 inline const Aws::Vector<JobStateTimeLimitAction>& GetJobStateTimeLimitActions() const { return m_jobStateTimeLimitActions; }
224 inline bool JobStateTimeLimitActionsHasBeenSet() const { return m_jobStateTimeLimitActionsHasBeenSet; }
225 template<typename JobStateTimeLimitActionsT = Aws::Vector<JobStateTimeLimitAction>>
226 void SetJobStateTimeLimitActions(JobStateTimeLimitActionsT&& value) { m_jobStateTimeLimitActionsHasBeenSet = true; m_jobStateTimeLimitActions = std::forward<JobStateTimeLimitActionsT>(value); }
227 template<typename JobStateTimeLimitActionsT = Aws::Vector<JobStateTimeLimitAction>>
228 JobQueueDetail& WithJobStateTimeLimitActions(JobStateTimeLimitActionsT&& value) { SetJobStateTimeLimitActions(std::forward<JobStateTimeLimitActionsT>(value)); return *this;}
229 template<typename JobStateTimeLimitActionsT = JobStateTimeLimitAction>
230 JobQueueDetail& AddJobStateTimeLimitActions(JobStateTimeLimitActionsT&& value) { m_jobStateTimeLimitActionsHasBeenSet = true; m_jobStateTimeLimitActions.emplace_back(std::forward<JobStateTimeLimitActionsT>(value)); return *this; }
232 private:
233
234 Aws::String m_jobQueueName;
235 bool m_jobQueueNameHasBeenSet = false;
236
237 Aws::String m_jobQueueArn;
238 bool m_jobQueueArnHasBeenSet = false;
239
240 JQState m_state{JQState::NOT_SET};
241 bool m_stateHasBeenSet = false;
242
243 Aws::String m_schedulingPolicyArn;
244 bool m_schedulingPolicyArnHasBeenSet = false;
245
246 JQStatus m_status{JQStatus::NOT_SET};
247 bool m_statusHasBeenSet = false;
248
249 Aws::String m_statusReason;
250 bool m_statusReasonHasBeenSet = false;
251
252 int m_priority{0};
253 bool m_priorityHasBeenSet = false;
254
255 Aws::Vector<ComputeEnvironmentOrder> m_computeEnvironmentOrder;
256 bool m_computeEnvironmentOrderHasBeenSet = false;
257
258 Aws::Vector<ServiceEnvironmentOrder> m_serviceEnvironmentOrder;
259 bool m_serviceEnvironmentOrderHasBeenSet = false;
260
261 JobQueueType m_jobQueueType{JobQueueType::NOT_SET};
262 bool m_jobQueueTypeHasBeenSet = false;
263
265 bool m_tagsHasBeenSet = false;
266
267 Aws::Vector<JobStateTimeLimitAction> m_jobStateTimeLimitActions;
268 bool m_jobStateTimeLimitActionsHasBeenSet = false;
269 };
270
271} // namespace Model
272} // namespace Batch
273} // namespace Aws
JobQueueDetail & WithServiceEnvironmentOrder(ServiceEnvironmentOrderT &&value)
void SetJobStateTimeLimitActions(JobStateTimeLimitActionsT &&value)
void SetStatusReason(StatusReasonT &&value)
JobQueueDetail & AddComputeEnvironmentOrder(ComputeEnvironmentOrderT &&value)
AWS_BATCH_API JobQueueDetail()=default
JobQueueDetail & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
JobQueueDetail & WithSchedulingPolicyArn(SchedulingPolicyArnT &&value)
JobQueueDetail & WithJobQueueName(JobQueueNameT &&value)
JobQueueDetail & WithJobQueueType(JobQueueType value)
void SetJobQueueType(JobQueueType value)
JobQueueDetail & WithStatus(JQStatus value)
JobQueueDetail & WithJobQueueArn(JobQueueArnT &&value)
const Aws::String & GetStatusReason() const
JobQueueDetail & WithComputeEnvironmentOrder(ComputeEnvironmentOrderT &&value)
const Aws::Vector< JobStateTimeLimitAction > & GetJobStateTimeLimitActions() const
const Aws::String & GetJobQueueName() const
JobQueueDetail & WithTags(TagsT &&value)
JobQueueDetail & WithState(JQState value)
const Aws::String & GetJobQueueArn() const
const Aws::String & GetSchedulingPolicyArn() const
JobQueueDetail & WithJobStateTimeLimitActions(JobStateTimeLimitActionsT &&value)
AWS_BATCH_API JobQueueDetail(Aws::Utils::Json::JsonView jsonValue)
JobQueueDetail & WithPriority(int value)
JobQueueDetail & WithStatusReason(StatusReasonT &&value)
const Aws::Vector< ComputeEnvironmentOrder > & GetComputeEnvironmentOrder() const
const Aws::Vector< ServiceEnvironmentOrder > & GetServiceEnvironmentOrder() const
void SetJobQueueArn(JobQueueArnT &&value)
AWS_BATCH_API JobQueueDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetJobQueueName(JobQueueNameT &&value)
JobQueueType GetJobQueueType() const
void SetSchedulingPolicyArn(SchedulingPolicyArnT &&value)
JobQueueDetail & AddServiceEnvironmentOrder(ServiceEnvironmentOrderT &&value)
void SetComputeEnvironmentOrder(ComputeEnvironmentOrderT &&value)
void SetServiceEnvironmentOrder(ServiceEnvironmentOrderT &&value)
JobQueueDetail & AddJobStateTimeLimitActions(JobStateTimeLimitActionsT &&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
Aws::Utils::Json::JsonValue JsonValue