AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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/core/utils/memory/stl/AWSMap.h>
13#include <aws/batch/model/ComputeEnvironmentOrder.h>
14#include <aws/batch/model/JobStateTimeLimitAction.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace Batch
28{
29namespace Model
30{
31
39 {
40 public:
41 AWS_BATCH_API JobQueueDetail() = default;
44 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
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 JobQueueDetail& WithJobQueueName(JobQueueNameT&& value) { SetJobQueueName(std::forward<JobQueueNameT>(value)); return *this;}
58
60
63 inline const Aws::String& GetJobQueueArn() const { return m_jobQueueArn; }
64 inline bool JobQueueArnHasBeenSet() const { return m_jobQueueArnHasBeenSet; }
65 template<typename JobQueueArnT = Aws::String>
66 void SetJobQueueArn(JobQueueArnT&& value) { m_jobQueueArnHasBeenSet = true; m_jobQueueArn = std::forward<JobQueueArnT>(value); }
67 template<typename JobQueueArnT = Aws::String>
68 JobQueueDetail& WithJobQueueArn(JobQueueArnT&& value) { SetJobQueueArn(std::forward<JobQueueArnT>(value)); return *this;}
70
72
78 inline JQState GetState() const { return m_state; }
79 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
80 inline void SetState(JQState value) { m_stateHasBeenSet = true; m_state = value; }
81 inline JobQueueDetail& WithState(JQState value) { SetState(value); return *this;}
83
85
91 inline const Aws::String& GetSchedulingPolicyArn() const { return m_schedulingPolicyArn; }
92 inline bool SchedulingPolicyArnHasBeenSet() const { return m_schedulingPolicyArnHasBeenSet; }
93 template<typename SchedulingPolicyArnT = Aws::String>
94 void SetSchedulingPolicyArn(SchedulingPolicyArnT&& value) { m_schedulingPolicyArnHasBeenSet = true; m_schedulingPolicyArn = std::forward<SchedulingPolicyArnT>(value); }
95 template<typename SchedulingPolicyArnT = Aws::String>
96 JobQueueDetail& WithSchedulingPolicyArn(SchedulingPolicyArnT&& value) { SetSchedulingPolicyArn(std::forward<SchedulingPolicyArnT>(value)); return *this;}
98
100
104 inline JQStatus GetStatus() const { return m_status; }
105 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
106 inline void SetStatus(JQStatus value) { m_statusHasBeenSet = true; m_status = value; }
107 inline JobQueueDetail& WithStatus(JQStatus value) { SetStatus(value); return *this;}
109
111
115 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
116 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
117 template<typename StatusReasonT = Aws::String>
118 void SetStatusReason(StatusReasonT&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::forward<StatusReasonT>(value); }
119 template<typename StatusReasonT = Aws::String>
120 JobQueueDetail& WithStatusReason(StatusReasonT&& value) { SetStatusReason(std::forward<StatusReasonT>(value)); return *this;}
122
124
146 inline int GetPriority() const { return m_priority; }
147 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
148 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
149 inline JobQueueDetail& WithPriority(int value) { SetPriority(value); return *this;}
151
153
158 inline const Aws::Vector<ComputeEnvironmentOrder>& GetComputeEnvironmentOrder() const { return m_computeEnvironmentOrder; }
159 inline bool ComputeEnvironmentOrderHasBeenSet() const { return m_computeEnvironmentOrderHasBeenSet; }
160 template<typename ComputeEnvironmentOrderT = Aws::Vector<ComputeEnvironmentOrder>>
161 void SetComputeEnvironmentOrder(ComputeEnvironmentOrderT&& value) { m_computeEnvironmentOrderHasBeenSet = true; m_computeEnvironmentOrder = std::forward<ComputeEnvironmentOrderT>(value); }
162 template<typename ComputeEnvironmentOrderT = Aws::Vector<ComputeEnvironmentOrder>>
163 JobQueueDetail& WithComputeEnvironmentOrder(ComputeEnvironmentOrderT&& value) { SetComputeEnvironmentOrder(std::forward<ComputeEnvironmentOrderT>(value)); return *this;}
164 template<typename ComputeEnvironmentOrderT = ComputeEnvironmentOrder>
165 JobQueueDetail& AddComputeEnvironmentOrder(ComputeEnvironmentOrderT&& value) { m_computeEnvironmentOrderHasBeenSet = true; m_computeEnvironmentOrder.emplace_back(std::forward<ComputeEnvironmentOrderT>(value)); return *this; }
167
169
174 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
175 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
176 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
177 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
178 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
179 JobQueueDetail& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
180 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
181 JobQueueDetail& AddTags(TagsKeyT&& key, TagsValueT&& value) {
182 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
183 }
185
187
192 inline const Aws::Vector<JobStateTimeLimitAction>& GetJobStateTimeLimitActions() const { return m_jobStateTimeLimitActions; }
193 inline bool JobStateTimeLimitActionsHasBeenSet() const { return m_jobStateTimeLimitActionsHasBeenSet; }
194 template<typename JobStateTimeLimitActionsT = Aws::Vector<JobStateTimeLimitAction>>
195 void SetJobStateTimeLimitActions(JobStateTimeLimitActionsT&& value) { m_jobStateTimeLimitActionsHasBeenSet = true; m_jobStateTimeLimitActions = std::forward<JobStateTimeLimitActionsT>(value); }
196 template<typename JobStateTimeLimitActionsT = Aws::Vector<JobStateTimeLimitAction>>
197 JobQueueDetail& WithJobStateTimeLimitActions(JobStateTimeLimitActionsT&& value) { SetJobStateTimeLimitActions(std::forward<JobStateTimeLimitActionsT>(value)); return *this;}
198 template<typename JobStateTimeLimitActionsT = JobStateTimeLimitAction>
199 JobQueueDetail& AddJobStateTimeLimitActions(JobStateTimeLimitActionsT&& value) { m_jobStateTimeLimitActionsHasBeenSet = true; m_jobStateTimeLimitActions.emplace_back(std::forward<JobStateTimeLimitActionsT>(value)); return *this; }
201 private:
202
203 Aws::String m_jobQueueName;
204 bool m_jobQueueNameHasBeenSet = false;
205
206 Aws::String m_jobQueueArn;
207 bool m_jobQueueArnHasBeenSet = false;
208
209 JQState m_state{JQState::NOT_SET};
210 bool m_stateHasBeenSet = false;
211
212 Aws::String m_schedulingPolicyArn;
213 bool m_schedulingPolicyArnHasBeenSet = false;
214
215 JQStatus m_status{JQStatus::NOT_SET};
216 bool m_statusHasBeenSet = false;
217
218 Aws::String m_statusReason;
219 bool m_statusReasonHasBeenSet = false;
220
221 int m_priority{0};
222 bool m_priorityHasBeenSet = false;
223
224 Aws::Vector<ComputeEnvironmentOrder> m_computeEnvironmentOrder;
225 bool m_computeEnvironmentOrderHasBeenSet = false;
226
228 bool m_tagsHasBeenSet = false;
229
230 Aws::Vector<JobStateTimeLimitAction> m_jobStateTimeLimitActions;
231 bool m_jobStateTimeLimitActionsHasBeenSet = false;
232 };
233
234} // namespace Model
235} // namespace Batch
236} // namespace Aws
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 & 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
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)
void SetSchedulingPolicyArn(SchedulingPolicyArnT &&value)
void SetComputeEnvironmentOrder(ComputeEnvironmentOrderT &&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