AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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/JobStateTimeLimitAction.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Batch
19{
20namespace Model
21{
22
30 {
31 public:
32 AWS_BATCH_API UpdateJobQueueRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "UpdateJobQueue"; }
39
40 AWS_BATCH_API Aws::String SerializePayload() const override;
41
42
44
47 inline const Aws::String& GetJobQueue() const { return m_jobQueue; }
48 inline bool JobQueueHasBeenSet() const { return m_jobQueueHasBeenSet; }
49 template<typename JobQueueT = Aws::String>
50 void SetJobQueue(JobQueueT&& value) { m_jobQueueHasBeenSet = true; m_jobQueue = std::forward<JobQueueT>(value); }
51 template<typename JobQueueT = Aws::String>
52 UpdateJobQueueRequest& WithJobQueue(JobQueueT&& value) { SetJobQueue(std::forward<JobQueueT>(value)); return *this;}
54
56
62 inline JQState GetState() const { return m_state; }
63 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
64 inline void SetState(JQState value) { m_stateHasBeenSet = true; m_state = value; }
65 inline UpdateJobQueueRequest& WithState(JQState value) { SetState(value); return *this;}
67
69
77 inline const Aws::String& GetSchedulingPolicyArn() const { return m_schedulingPolicyArn; }
78 inline bool SchedulingPolicyArnHasBeenSet() const { return m_schedulingPolicyArnHasBeenSet; }
79 template<typename SchedulingPolicyArnT = Aws::String>
80 void SetSchedulingPolicyArn(SchedulingPolicyArnT&& value) { m_schedulingPolicyArnHasBeenSet = true; m_schedulingPolicyArn = std::forward<SchedulingPolicyArnT>(value); }
81 template<typename SchedulingPolicyArnT = Aws::String>
82 UpdateJobQueueRequest& WithSchedulingPolicyArn(SchedulingPolicyArnT&& value) { SetSchedulingPolicyArn(std::forward<SchedulingPolicyArnT>(value)); return *this;}
84
86
97 inline int GetPriority() const { return m_priority; }
98 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
99 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
100 inline UpdateJobQueueRequest& WithPriority(int value) { SetPriority(value); return *this;}
102
104
116 inline const Aws::Vector<ComputeEnvironmentOrder>& GetComputeEnvironmentOrder() const { return m_computeEnvironmentOrder; }
117 inline bool ComputeEnvironmentOrderHasBeenSet() const { return m_computeEnvironmentOrderHasBeenSet; }
118 template<typename ComputeEnvironmentOrderT = Aws::Vector<ComputeEnvironmentOrder>>
119 void SetComputeEnvironmentOrder(ComputeEnvironmentOrderT&& value) { m_computeEnvironmentOrderHasBeenSet = true; m_computeEnvironmentOrder = std::forward<ComputeEnvironmentOrderT>(value); }
120 template<typename ComputeEnvironmentOrderT = Aws::Vector<ComputeEnvironmentOrder>>
121 UpdateJobQueueRequest& WithComputeEnvironmentOrder(ComputeEnvironmentOrderT&& value) { SetComputeEnvironmentOrder(std::forward<ComputeEnvironmentOrderT>(value)); return *this;}
122 template<typename ComputeEnvironmentOrderT = ComputeEnvironmentOrder>
123 UpdateJobQueueRequest& AddComputeEnvironmentOrder(ComputeEnvironmentOrderT&& value) { m_computeEnvironmentOrderHasBeenSet = true; m_computeEnvironmentOrder.emplace_back(std::forward<ComputeEnvironmentOrderT>(value)); return *this; }
125
127
134 inline const Aws::Vector<JobStateTimeLimitAction>& GetJobStateTimeLimitActions() const { return m_jobStateTimeLimitActions; }
135 inline bool JobStateTimeLimitActionsHasBeenSet() const { return m_jobStateTimeLimitActionsHasBeenSet; }
136 template<typename JobStateTimeLimitActionsT = Aws::Vector<JobStateTimeLimitAction>>
137 void SetJobStateTimeLimitActions(JobStateTimeLimitActionsT&& value) { m_jobStateTimeLimitActionsHasBeenSet = true; m_jobStateTimeLimitActions = std::forward<JobStateTimeLimitActionsT>(value); }
138 template<typename JobStateTimeLimitActionsT = Aws::Vector<JobStateTimeLimitAction>>
139 UpdateJobQueueRequest& WithJobStateTimeLimitActions(JobStateTimeLimitActionsT&& value) { SetJobStateTimeLimitActions(std::forward<JobStateTimeLimitActionsT>(value)); return *this;}
140 template<typename JobStateTimeLimitActionsT = JobStateTimeLimitAction>
141 UpdateJobQueueRequest& AddJobStateTimeLimitActions(JobStateTimeLimitActionsT&& value) { m_jobStateTimeLimitActionsHasBeenSet = true; m_jobStateTimeLimitActions.emplace_back(std::forward<JobStateTimeLimitActionsT>(value)); return *this; }
143 private:
144
145 Aws::String m_jobQueue;
146 bool m_jobQueueHasBeenSet = false;
147
148 JQState m_state{JQState::NOT_SET};
149 bool m_stateHasBeenSet = false;
150
151 Aws::String m_schedulingPolicyArn;
152 bool m_schedulingPolicyArnHasBeenSet = false;
153
154 int m_priority{0};
155 bool m_priorityHasBeenSet = false;
156
157 Aws::Vector<ComputeEnvironmentOrder> m_computeEnvironmentOrder;
158 bool m_computeEnvironmentOrderHasBeenSet = false;
159
160 Aws::Vector<JobStateTimeLimitAction> m_jobStateTimeLimitActions;
161 bool m_jobStateTimeLimitActionsHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace Batch
166} // 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
void SetComputeEnvironmentOrder(ComputeEnvironmentOrderT &&value)
void SetSchedulingPolicyArn(SchedulingPolicyArnT &&value)
UpdateJobQueueRequest & WithPriority(int value)
AWS_BATCH_API Aws::String SerializePayload() const override
UpdateJobQueueRequest & WithJobStateTimeLimitActions(JobStateTimeLimitActionsT &&value)
UpdateJobQueueRequest & AddJobStateTimeLimitActions(JobStateTimeLimitActionsT &&value)
UpdateJobQueueRequest & WithState(JQState value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector