AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetJobQueueName(const Aws::String& value) { m_jobQueueNameHasBeenSet = true; m_jobQueueName = value; }
54 inline void SetJobQueueName(Aws::String&& value) { m_jobQueueNameHasBeenSet = true; m_jobQueueName = std::move(value); }
55 inline void SetJobQueueName(const char* value) { m_jobQueueNameHasBeenSet = true; m_jobQueueName.assign(value); }
56 inline JobQueueDetail& WithJobQueueName(const Aws::String& value) { SetJobQueueName(value); return *this;}
57 inline JobQueueDetail& WithJobQueueName(Aws::String&& value) { SetJobQueueName(std::move(value)); return *this;}
58 inline JobQueueDetail& WithJobQueueName(const char* value) { SetJobQueueName(value); return *this;}
60
62
65 inline const Aws::String& GetJobQueueArn() const{ return m_jobQueueArn; }
66 inline bool JobQueueArnHasBeenSet() const { return m_jobQueueArnHasBeenSet; }
67 inline void SetJobQueueArn(const Aws::String& value) { m_jobQueueArnHasBeenSet = true; m_jobQueueArn = value; }
68 inline void SetJobQueueArn(Aws::String&& value) { m_jobQueueArnHasBeenSet = true; m_jobQueueArn = std::move(value); }
69 inline void SetJobQueueArn(const char* value) { m_jobQueueArnHasBeenSet = true; m_jobQueueArn.assign(value); }
70 inline JobQueueDetail& WithJobQueueArn(const Aws::String& value) { SetJobQueueArn(value); return *this;}
71 inline JobQueueDetail& WithJobQueueArn(Aws::String&& value) { SetJobQueueArn(std::move(value)); return *this;}
72 inline JobQueueDetail& WithJobQueueArn(const char* value) { SetJobQueueArn(value); return *this;}
74
76
82 inline const JQState& GetState() const{ return m_state; }
83 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
84 inline void SetState(const JQState& value) { m_stateHasBeenSet = true; m_state = value; }
85 inline void SetState(JQState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
86 inline JobQueueDetail& WithState(const JQState& value) { SetState(value); return *this;}
87 inline JobQueueDetail& WithState(JQState&& value) { SetState(std::move(value)); return *this;}
89
91
97 inline const Aws::String& GetSchedulingPolicyArn() const{ return m_schedulingPolicyArn; }
98 inline bool SchedulingPolicyArnHasBeenSet() const { return m_schedulingPolicyArnHasBeenSet; }
99 inline void SetSchedulingPolicyArn(const Aws::String& value) { m_schedulingPolicyArnHasBeenSet = true; m_schedulingPolicyArn = value; }
100 inline void SetSchedulingPolicyArn(Aws::String&& value) { m_schedulingPolicyArnHasBeenSet = true; m_schedulingPolicyArn = std::move(value); }
101 inline void SetSchedulingPolicyArn(const char* value) { m_schedulingPolicyArnHasBeenSet = true; m_schedulingPolicyArn.assign(value); }
102 inline JobQueueDetail& WithSchedulingPolicyArn(const Aws::String& value) { SetSchedulingPolicyArn(value); return *this;}
103 inline JobQueueDetail& WithSchedulingPolicyArn(Aws::String&& value) { SetSchedulingPolicyArn(std::move(value)); return *this;}
104 inline JobQueueDetail& WithSchedulingPolicyArn(const char* value) { SetSchedulingPolicyArn(value); return *this;}
106
108
112 inline const JQStatus& GetStatus() const{ return m_status; }
113 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
114 inline void SetStatus(const JQStatus& value) { m_statusHasBeenSet = true; m_status = value; }
115 inline void SetStatus(JQStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
116 inline JobQueueDetail& WithStatus(const JQStatus& value) { SetStatus(value); return *this;}
117 inline JobQueueDetail& WithStatus(JQStatus&& value) { SetStatus(std::move(value)); return *this;}
119
121
125 inline const Aws::String& GetStatusReason() const{ return m_statusReason; }
126 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
127 inline void SetStatusReason(const Aws::String& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; }
128 inline void SetStatusReason(Aws::String&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); }
129 inline void SetStatusReason(const char* value) { m_statusReasonHasBeenSet = true; m_statusReason.assign(value); }
130 inline JobQueueDetail& WithStatusReason(const Aws::String& value) { SetStatusReason(value); return *this;}
131 inline JobQueueDetail& WithStatusReason(Aws::String&& value) { SetStatusReason(std::move(value)); return *this;}
132 inline JobQueueDetail& WithStatusReason(const char* value) { SetStatusReason(value); return *this;}
134
136
147 inline int GetPriority() const{ return m_priority; }
148 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
149 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
150 inline JobQueueDetail& WithPriority(int value) { SetPriority(value); return *this;}
152
154
159 inline const Aws::Vector<ComputeEnvironmentOrder>& GetComputeEnvironmentOrder() const{ return m_computeEnvironmentOrder; }
160 inline bool ComputeEnvironmentOrderHasBeenSet() const { return m_computeEnvironmentOrderHasBeenSet; }
161 inline void SetComputeEnvironmentOrder(const Aws::Vector<ComputeEnvironmentOrder>& value) { m_computeEnvironmentOrderHasBeenSet = true; m_computeEnvironmentOrder = value; }
162 inline void SetComputeEnvironmentOrder(Aws::Vector<ComputeEnvironmentOrder>&& value) { m_computeEnvironmentOrderHasBeenSet = true; m_computeEnvironmentOrder = std::move(value); }
165 inline JobQueueDetail& AddComputeEnvironmentOrder(const ComputeEnvironmentOrder& value) { m_computeEnvironmentOrderHasBeenSet = true; m_computeEnvironmentOrder.push_back(value); return *this; }
166 inline JobQueueDetail& AddComputeEnvironmentOrder(ComputeEnvironmentOrder&& value) { m_computeEnvironmentOrderHasBeenSet = true; m_computeEnvironmentOrder.push_back(std::move(value)); return *this; }
168
170
175 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
176 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
177 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
178 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
179 inline JobQueueDetail& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
180 inline JobQueueDetail& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
181 inline JobQueueDetail& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
182 inline JobQueueDetail& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
183 inline JobQueueDetail& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
184 inline JobQueueDetail& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
185 inline JobQueueDetail& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
186 inline JobQueueDetail& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
187 inline JobQueueDetail& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
189
191
196 inline const Aws::Vector<JobStateTimeLimitAction>& GetJobStateTimeLimitActions() const{ return m_jobStateTimeLimitActions; }
197 inline bool JobStateTimeLimitActionsHasBeenSet() const { return m_jobStateTimeLimitActionsHasBeenSet; }
198 inline void SetJobStateTimeLimitActions(const Aws::Vector<JobStateTimeLimitAction>& value) { m_jobStateTimeLimitActionsHasBeenSet = true; m_jobStateTimeLimitActions = value; }
199 inline void SetJobStateTimeLimitActions(Aws::Vector<JobStateTimeLimitAction>&& value) { m_jobStateTimeLimitActionsHasBeenSet = true; m_jobStateTimeLimitActions = std::move(value); }
202 inline JobQueueDetail& AddJobStateTimeLimitActions(const JobStateTimeLimitAction& value) { m_jobStateTimeLimitActionsHasBeenSet = true; m_jobStateTimeLimitActions.push_back(value); return *this; }
203 inline JobQueueDetail& AddJobStateTimeLimitActions(JobStateTimeLimitAction&& value) { m_jobStateTimeLimitActionsHasBeenSet = true; m_jobStateTimeLimitActions.push_back(std::move(value)); return *this; }
205 private:
206
207 Aws::String m_jobQueueName;
208 bool m_jobQueueNameHasBeenSet = false;
209
210 Aws::String m_jobQueueArn;
211 bool m_jobQueueArnHasBeenSet = false;
212
213 JQState m_state;
214 bool m_stateHasBeenSet = false;
215
216 Aws::String m_schedulingPolicyArn;
217 bool m_schedulingPolicyArnHasBeenSet = false;
218
219 JQStatus m_status;
220 bool m_statusHasBeenSet = false;
221
222 Aws::String m_statusReason;
223 bool m_statusReasonHasBeenSet = false;
224
225 int m_priority;
226 bool m_priorityHasBeenSet = false;
227
228 Aws::Vector<ComputeEnvironmentOrder> m_computeEnvironmentOrder;
229 bool m_computeEnvironmentOrderHasBeenSet = false;
230
232 bool m_tagsHasBeenSet = false;
233
234 Aws::Vector<JobStateTimeLimitAction> m_jobStateTimeLimitActions;
235 bool m_jobStateTimeLimitActionsHasBeenSet = false;
236 };
237
238} // namespace Model
239} // namespace Batch
240} // namespace Aws
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
JobQueueDetail & AddTags(const char *key, const char *value)
void SetJobStateTimeLimitActions(const Aws::Vector< JobStateTimeLimitAction > &value)
JobQueueDetail & AddJobStateTimeLimitActions(JobStateTimeLimitAction &&value)
JobQueueDetail & WithComputeEnvironmentOrder(Aws::Vector< ComputeEnvironmentOrder > &&value)
JobQueueDetail & WithJobQueueArn(Aws::String &&value)
void SetSchedulingPolicyArn(const Aws::String &value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
void SetState(const JQState &value)
void SetJobStateTimeLimitActions(Aws::Vector< JobStateTimeLimitAction > &&value)
void SetJobQueueName(Aws::String &&value)
JobQueueDetail & WithComputeEnvironmentOrder(const Aws::Vector< ComputeEnvironmentOrder > &value)
void SetComputeEnvironmentOrder(Aws::Vector< ComputeEnvironmentOrder > &&value)
void SetStatusReason(const Aws::String &value)
JobQueueDetail & WithJobStateTimeLimitActions(const Aws::Vector< JobStateTimeLimitAction > &value)
void SetStatusReason(Aws::String &&value)
JobQueueDetail & AddTags(Aws::String &&key, Aws::String &&value)
const Aws::String & GetStatusReason() const
JobQueueDetail & WithState(JQState &&value)
JobQueueDetail & AddTags(Aws::String &&key, const Aws::String &value)
const JQState & GetState() const
void SetJobQueueName(const char *value)
void SetJobQueueArn(Aws::String &&value)
const Aws::Vector< JobStateTimeLimitAction > & GetJobStateTimeLimitActions() const
JobQueueDetail & AddTags(Aws::String &&key, const char *value)
JobQueueDetail & WithJobQueueName(const char *value)
void SetStatus(const JQStatus &value)
const Aws::String & GetJobQueueName() const
JobQueueDetail & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
JobQueueDetail & WithStatusReason(const char *value)
const Aws::String & GetJobQueueArn() const
const Aws::String & GetSchedulingPolicyArn() const
JobQueueDetail & WithSchedulingPolicyArn(Aws::String &&value)
JobQueueDetail & AddComputeEnvironmentOrder(ComputeEnvironmentOrder &&value)
void SetJobQueueArn(const Aws::String &value)
void SetJobQueueArn(const char *value)
JobQueueDetail & WithJobQueueArn(const Aws::String &value)
AWS_BATCH_API JobQueueDetail(Aws::Utils::Json::JsonView jsonValue)
JobQueueDetail & WithPriority(int value)
void SetJobQueueName(const Aws::String &value)
const Aws::Vector< ComputeEnvironmentOrder > & GetComputeEnvironmentOrder() const
JobQueueDetail & WithSchedulingPolicyArn(const char *value)
JobQueueDetail & WithJobQueueName(const Aws::String &value)
const JQStatus & GetStatus() const
AWS_BATCH_API JobQueueDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
JobQueueDetail & WithJobStateTimeLimitActions(Aws::Vector< JobStateTimeLimitAction > &&value)
JobQueueDetail & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
JobQueueDetail & WithStatus(JQStatus &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
JobQueueDetail & WithStatus(const JQStatus &value)
JobQueueDetail & AddComputeEnvironmentOrder(const ComputeEnvironmentOrder &value)
void SetSchedulingPolicyArn(const char *value)
void SetSchedulingPolicyArn(Aws::String &&value)
JobQueueDetail & AddTags(const char *key, Aws::String &&value)
JobQueueDetail & WithSchedulingPolicyArn(const Aws::String &value)
JobQueueDetail & WithStatusReason(Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetStatusReason(const char *value)
JobQueueDetail & WithJobQueueArn(const char *value)
JobQueueDetail & AddJobStateTimeLimitActions(const JobStateTimeLimitAction &value)
JobQueueDetail & AddTags(const Aws::String &key, Aws::String &&value)
void SetStatus(JQStatus &&value)
JobQueueDetail & WithStatusReason(const Aws::String &value)
JobQueueDetail & AddTags(const Aws::String &key, const Aws::String &value)
JobQueueDetail & WithState(const JQState &value)
JobQueueDetail & WithJobQueueName(Aws::String &&value)
void SetComputeEnvironmentOrder(const Aws::Vector< ComputeEnvironmentOrder > &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