AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
UpdateJobQueueRequest.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/batch/model/ComputeEnvironmentOrder.h>
13#include <aws/batch/model/ServiceEnvironmentOrder.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 UpdateJobQueueRequest() = default;
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 "UpdateJobQueue"; }
40
41 AWS_BATCH_API Aws::String SerializePayload() const override;
42
43
45
48 inline const Aws::String& GetJobQueue() const { return m_jobQueue; }
49 inline bool JobQueueHasBeenSet() const { return m_jobQueueHasBeenSet; }
50 template<typename JobQueueT = Aws::String>
51 void SetJobQueue(JobQueueT&& value) { m_jobQueueHasBeenSet = true; m_jobQueue = std::forward<JobQueueT>(value); }
52 template<typename JobQueueT = Aws::String>
53 UpdateJobQueueRequest& WithJobQueue(JobQueueT&& value) { SetJobQueue(std::forward<JobQueueT>(value)); return *this;}
55
57
63 inline JQState GetState() const { return m_state; }
64 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
65 inline void SetState(JQState value) { m_stateHasBeenSet = true; m_state = value; }
66 inline UpdateJobQueueRequest& WithState(JQState value) { SetState(value); return *this;}
68
70
78 inline const Aws::String& GetSchedulingPolicyArn() const { return m_schedulingPolicyArn; }
79 inline bool SchedulingPolicyArnHasBeenSet() const { return m_schedulingPolicyArnHasBeenSet; }
80 template<typename SchedulingPolicyArnT = Aws::String>
81 void SetSchedulingPolicyArn(SchedulingPolicyArnT&& value) { m_schedulingPolicyArnHasBeenSet = true; m_schedulingPolicyArn = std::forward<SchedulingPolicyArnT>(value); }
82 template<typename SchedulingPolicyArnT = Aws::String>
83 UpdateJobQueueRequest& WithSchedulingPolicyArn(SchedulingPolicyArnT&& value) { SetSchedulingPolicyArn(std::forward<SchedulingPolicyArnT>(value)); return *this;}
85
87
98 inline int GetPriority() const { return m_priority; }
99 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
100 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
101 inline UpdateJobQueueRequest& WithPriority(int value) { SetPriority(value); return *this;}
103
105
117 inline const Aws::Vector<ComputeEnvironmentOrder>& GetComputeEnvironmentOrder() const { return m_computeEnvironmentOrder; }
118 inline bool ComputeEnvironmentOrderHasBeenSet() const { return m_computeEnvironmentOrderHasBeenSet; }
119 template<typename ComputeEnvironmentOrderT = Aws::Vector<ComputeEnvironmentOrder>>
120 void SetComputeEnvironmentOrder(ComputeEnvironmentOrderT&& value) { m_computeEnvironmentOrderHasBeenSet = true; m_computeEnvironmentOrder = std::forward<ComputeEnvironmentOrderT>(value); }
121 template<typename ComputeEnvironmentOrderT = Aws::Vector<ComputeEnvironmentOrder>>
122 UpdateJobQueueRequest& WithComputeEnvironmentOrder(ComputeEnvironmentOrderT&& value) { SetComputeEnvironmentOrder(std::forward<ComputeEnvironmentOrderT>(value)); return *this;}
123 template<typename ComputeEnvironmentOrderT = ComputeEnvironmentOrder>
124 UpdateJobQueueRequest& AddComputeEnvironmentOrder(ComputeEnvironmentOrderT&& value) { m_computeEnvironmentOrderHasBeenSet = true; m_computeEnvironmentOrder.emplace_back(std::forward<ComputeEnvironmentOrderT>(value)); return *this; }
126
128
133 inline const Aws::Vector<ServiceEnvironmentOrder>& GetServiceEnvironmentOrder() const { return m_serviceEnvironmentOrder; }
134 inline bool ServiceEnvironmentOrderHasBeenSet() const { return m_serviceEnvironmentOrderHasBeenSet; }
135 template<typename ServiceEnvironmentOrderT = Aws::Vector<ServiceEnvironmentOrder>>
136 void SetServiceEnvironmentOrder(ServiceEnvironmentOrderT&& value) { m_serviceEnvironmentOrderHasBeenSet = true; m_serviceEnvironmentOrder = std::forward<ServiceEnvironmentOrderT>(value); }
137 template<typename ServiceEnvironmentOrderT = Aws::Vector<ServiceEnvironmentOrder>>
138 UpdateJobQueueRequest& WithServiceEnvironmentOrder(ServiceEnvironmentOrderT&& value) { SetServiceEnvironmentOrder(std::forward<ServiceEnvironmentOrderT>(value)); return *this;}
139 template<typename ServiceEnvironmentOrderT = ServiceEnvironmentOrder>
140 UpdateJobQueueRequest& AddServiceEnvironmentOrder(ServiceEnvironmentOrderT&& value) { m_serviceEnvironmentOrderHasBeenSet = true; m_serviceEnvironmentOrder.emplace_back(std::forward<ServiceEnvironmentOrderT>(value)); return *this; }
142
144
151 inline const Aws::Vector<JobStateTimeLimitAction>& GetJobStateTimeLimitActions() const { return m_jobStateTimeLimitActions; }
152 inline bool JobStateTimeLimitActionsHasBeenSet() const { return m_jobStateTimeLimitActionsHasBeenSet; }
153 template<typename JobStateTimeLimitActionsT = Aws::Vector<JobStateTimeLimitAction>>
154 void SetJobStateTimeLimitActions(JobStateTimeLimitActionsT&& value) { m_jobStateTimeLimitActionsHasBeenSet = true; m_jobStateTimeLimitActions = std::forward<JobStateTimeLimitActionsT>(value); }
155 template<typename JobStateTimeLimitActionsT = Aws::Vector<JobStateTimeLimitAction>>
156 UpdateJobQueueRequest& WithJobStateTimeLimitActions(JobStateTimeLimitActionsT&& value) { SetJobStateTimeLimitActions(std::forward<JobStateTimeLimitActionsT>(value)); return *this;}
157 template<typename JobStateTimeLimitActionsT = JobStateTimeLimitAction>
158 UpdateJobQueueRequest& AddJobStateTimeLimitActions(JobStateTimeLimitActionsT&& value) { m_jobStateTimeLimitActionsHasBeenSet = true; m_jobStateTimeLimitActions.emplace_back(std::forward<JobStateTimeLimitActionsT>(value)); return *this; }
160 private:
161
162 Aws::String m_jobQueue;
163 bool m_jobQueueHasBeenSet = false;
164
165 JQState m_state{JQState::NOT_SET};
166 bool m_stateHasBeenSet = false;
167
168 Aws::String m_schedulingPolicyArn;
169 bool m_schedulingPolicyArnHasBeenSet = false;
170
171 int m_priority{0};
172 bool m_priorityHasBeenSet = false;
173
174 Aws::Vector<ComputeEnvironmentOrder> m_computeEnvironmentOrder;
175 bool m_computeEnvironmentOrderHasBeenSet = false;
176
177 Aws::Vector<ServiceEnvironmentOrder> m_serviceEnvironmentOrder;
178 bool m_serviceEnvironmentOrderHasBeenSet = false;
179
180 Aws::Vector<JobStateTimeLimitAction> m_jobStateTimeLimitActions;
181 bool m_jobStateTimeLimitActionsHasBeenSet = false;
182 };
183
184} // namespace Model
185} // namespace Batch
186} // 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