AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/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 Batch
20{
21namespace Model
22{
23
31 {
32 public:
33 AWS_BATCH_API CreateJobQueueRequest();
34
35 // Service request name is the Operation name which will send this request out,
36 // each operation should has unique request name, so that we can get operation's name from this request.
37 // Note: this is not true for response, multiple operations may have the same response name,
38 // so we can not get operation's name from response.
39 inline virtual const char* GetServiceRequestName() const override { return "CreateJobQueue"; }
40
41 AWS_BATCH_API Aws::String SerializePayload() const override;
42
43
45
49 inline const Aws::String& GetJobQueueName() const{ return m_jobQueueName; }
50 inline bool JobQueueNameHasBeenSet() const { return m_jobQueueNameHasBeenSet; }
51 inline void SetJobQueueName(const Aws::String& value) { m_jobQueueNameHasBeenSet = true; m_jobQueueName = value; }
52 inline void SetJobQueueName(Aws::String&& value) { m_jobQueueNameHasBeenSet = true; m_jobQueueName = std::move(value); }
53 inline void SetJobQueueName(const char* value) { m_jobQueueNameHasBeenSet = true; m_jobQueueName.assign(value); }
54 inline CreateJobQueueRequest& WithJobQueueName(const Aws::String& value) { SetJobQueueName(value); return *this;}
55 inline CreateJobQueueRequest& WithJobQueueName(Aws::String&& value) { SetJobQueueName(std::move(value)); return *this;}
56 inline CreateJobQueueRequest& WithJobQueueName(const char* value) { SetJobQueueName(value); return *this;}
58
60
65 inline const JQState& GetState() const{ return m_state; }
66 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
67 inline void SetState(const JQState& value) { m_stateHasBeenSet = true; m_state = value; }
68 inline void SetState(JQState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
69 inline CreateJobQueueRequest& WithState(const JQState& value) { SetState(value); return *this;}
70 inline CreateJobQueueRequest& WithState(JQState&& value) { SetState(std::move(value)); return *this;}
72
74
87 inline const Aws::String& GetSchedulingPolicyArn() const{ return m_schedulingPolicyArn; }
88 inline bool SchedulingPolicyArnHasBeenSet() const { return m_schedulingPolicyArnHasBeenSet; }
89 inline void SetSchedulingPolicyArn(const Aws::String& value) { m_schedulingPolicyArnHasBeenSet = true; m_schedulingPolicyArn = value; }
90 inline void SetSchedulingPolicyArn(Aws::String&& value) { m_schedulingPolicyArnHasBeenSet = true; m_schedulingPolicyArn = std::move(value); }
91 inline void SetSchedulingPolicyArn(const char* value) { m_schedulingPolicyArnHasBeenSet = true; m_schedulingPolicyArn.assign(value); }
93 inline CreateJobQueueRequest& WithSchedulingPolicyArn(Aws::String&& value) { SetSchedulingPolicyArn(std::move(value)); return *this;}
94 inline CreateJobQueueRequest& WithSchedulingPolicyArn(const char* value) { SetSchedulingPolicyArn(value); return *this;}
96
98
109 inline int GetPriority() const{ return m_priority; }
110 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
111 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
112 inline CreateJobQueueRequest& WithPriority(int value) { SetPriority(value); return *this;}
114
116
129 inline const Aws::Vector<ComputeEnvironmentOrder>& GetComputeEnvironmentOrder() const{ return m_computeEnvironmentOrder; }
130 inline bool ComputeEnvironmentOrderHasBeenSet() const { return m_computeEnvironmentOrderHasBeenSet; }
131 inline void SetComputeEnvironmentOrder(const Aws::Vector<ComputeEnvironmentOrder>& value) { m_computeEnvironmentOrderHasBeenSet = true; m_computeEnvironmentOrder = value; }
132 inline void SetComputeEnvironmentOrder(Aws::Vector<ComputeEnvironmentOrder>&& value) { m_computeEnvironmentOrderHasBeenSet = true; m_computeEnvironmentOrder = std::move(value); }
135 inline CreateJobQueueRequest& AddComputeEnvironmentOrder(const ComputeEnvironmentOrder& value) { m_computeEnvironmentOrderHasBeenSet = true; m_computeEnvironmentOrder.push_back(value); return *this; }
136 inline CreateJobQueueRequest& AddComputeEnvironmentOrder(ComputeEnvironmentOrder&& value) { m_computeEnvironmentOrderHasBeenSet = true; m_computeEnvironmentOrder.push_back(std::move(value)); return *this; }
138
140
147 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
148 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
149 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
150 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
151 inline CreateJobQueueRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
152 inline CreateJobQueueRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
153 inline CreateJobQueueRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
154 inline CreateJobQueueRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
155 inline CreateJobQueueRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
156 inline CreateJobQueueRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
157 inline CreateJobQueueRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
158 inline CreateJobQueueRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
159 inline CreateJobQueueRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
161
163
170 inline const Aws::Vector<JobStateTimeLimitAction>& GetJobStateTimeLimitActions() const{ return m_jobStateTimeLimitActions; }
171 inline bool JobStateTimeLimitActionsHasBeenSet() const { return m_jobStateTimeLimitActionsHasBeenSet; }
172 inline void SetJobStateTimeLimitActions(const Aws::Vector<JobStateTimeLimitAction>& value) { m_jobStateTimeLimitActionsHasBeenSet = true; m_jobStateTimeLimitActions = value; }
173 inline void SetJobStateTimeLimitActions(Aws::Vector<JobStateTimeLimitAction>&& value) { m_jobStateTimeLimitActionsHasBeenSet = true; m_jobStateTimeLimitActions = std::move(value); }
176 inline CreateJobQueueRequest& AddJobStateTimeLimitActions(const JobStateTimeLimitAction& value) { m_jobStateTimeLimitActionsHasBeenSet = true; m_jobStateTimeLimitActions.push_back(value); return *this; }
177 inline CreateJobQueueRequest& AddJobStateTimeLimitActions(JobStateTimeLimitAction&& value) { m_jobStateTimeLimitActionsHasBeenSet = true; m_jobStateTimeLimitActions.push_back(std::move(value)); return *this; }
179 private:
180
181 Aws::String m_jobQueueName;
182 bool m_jobQueueNameHasBeenSet = false;
183
184 JQState m_state;
185 bool m_stateHasBeenSet = false;
186
187 Aws::String m_schedulingPolicyArn;
188 bool m_schedulingPolicyArnHasBeenSet = false;
189
190 int m_priority;
191 bool m_priorityHasBeenSet = false;
192
193 Aws::Vector<ComputeEnvironmentOrder> m_computeEnvironmentOrder;
194 bool m_computeEnvironmentOrderHasBeenSet = false;
195
197 bool m_tagsHasBeenSet = false;
198
199 Aws::Vector<JobStateTimeLimitAction> m_jobStateTimeLimitActions;
200 bool m_jobStateTimeLimitActionsHasBeenSet = false;
201 };
202
203} // namespace Model
204} // namespace Batch
205} // namespace Aws
CreateJobQueueRequest & WithJobQueueName(Aws::String &&value)
CreateJobQueueRequest & AddTags(Aws::String &&key, const char *value)
CreateJobQueueRequest & AddTags(const char *key, const char *value)
CreateJobQueueRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateJobQueueRequest & WithJobStateTimeLimitActions(Aws::Vector< JobStateTimeLimitAction > &&value)
CreateJobQueueRequest & AddComputeEnvironmentOrder(ComputeEnvironmentOrder &&value)
const Aws::Vector< ComputeEnvironmentOrder > & GetComputeEnvironmentOrder() const
CreateJobQueueRequest & AddTags(const char *key, Aws::String &&value)
CreateJobQueueRequest & WithPriority(int value)
CreateJobQueueRequest & WithJobQueueName(const char *value)
const Aws::Vector< JobStateTimeLimitAction > & GetJobStateTimeLimitActions() const
CreateJobQueueRequest & WithSchedulingPolicyArn(const char *value)
CreateJobQueueRequest & AddTags(Aws::String &&key, const Aws::String &value)
AWS_BATCH_API Aws::String SerializePayload() const override
CreateJobQueueRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateJobQueueRequest & WithJobStateTimeLimitActions(const Aws::Vector< JobStateTimeLimitAction > &value)
virtual const char * GetServiceRequestName() const override
CreateJobQueueRequest & WithJobQueueName(const Aws::String &value)
void SetSchedulingPolicyArn(const Aws::String &value)
CreateJobQueueRequest & WithSchedulingPolicyArn(Aws::String &&value)
CreateJobQueueRequest & WithSchedulingPolicyArn(const Aws::String &value)
CreateJobQueueRequest & AddJobStateTimeLimitActions(JobStateTimeLimitAction &&value)
CreateJobQueueRequest & WithState(const JQState &value)
CreateJobQueueRequest & WithState(JQState &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetJobStateTimeLimitActions(Aws::Vector< JobStateTimeLimitAction > &&value)
void SetJobQueueName(const Aws::String &value)
const Aws::String & GetSchedulingPolicyArn() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateJobQueueRequest & WithComputeEnvironmentOrder(Aws::Vector< ComputeEnvironmentOrder > &&value)
CreateJobQueueRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateJobQueueRequest & AddJobStateTimeLimitActions(const JobStateTimeLimitAction &value)
CreateJobQueueRequest & WithComputeEnvironmentOrder(const Aws::Vector< ComputeEnvironmentOrder > &value)
CreateJobQueueRequest & AddComputeEnvironmentOrder(const ComputeEnvironmentOrder &value)
CreateJobQueueRequest & AddTags(Aws::String &&key, Aws::String &&value)
void SetComputeEnvironmentOrder(const Aws::Vector< ComputeEnvironmentOrder > &value)
CreateJobQueueRequest & AddTags(const Aws::String &key, Aws::String &&value)
void SetComputeEnvironmentOrder(Aws::Vector< ComputeEnvironmentOrder > &&value)
void SetJobStateTimeLimitActions(const Aws::Vector< JobStateTimeLimitAction > &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