AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetJobQueue(const Aws::String& value) { m_jobQueueHasBeenSet = true; m_jobQueue = value; }
50 inline void SetJobQueue(Aws::String&& value) { m_jobQueueHasBeenSet = true; m_jobQueue = std::move(value); }
51 inline void SetJobQueue(const char* value) { m_jobQueueHasBeenSet = true; m_jobQueue.assign(value); }
52 inline UpdateJobQueueRequest& WithJobQueue(const Aws::String& value) { SetJobQueue(value); return *this;}
53 inline UpdateJobQueueRequest& WithJobQueue(Aws::String&& value) { SetJobQueue(std::move(value)); return *this;}
54 inline UpdateJobQueueRequest& WithJobQueue(const char* value) { SetJobQueue(value); return *this;}
56
58
64 inline const JQState& GetState() const{ return m_state; }
65 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
66 inline void SetState(const JQState& value) { m_stateHasBeenSet = true; m_state = value; }
67 inline void SetState(JQState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
68 inline UpdateJobQueueRequest& WithState(const JQState& value) { SetState(value); return *this;}
69 inline UpdateJobQueueRequest& WithState(JQState&& value) { SetState(std::move(value)); return *this;}
71
73
81 inline const Aws::String& GetSchedulingPolicyArn() const{ return m_schedulingPolicyArn; }
82 inline bool SchedulingPolicyArnHasBeenSet() const { return m_schedulingPolicyArnHasBeenSet; }
83 inline void SetSchedulingPolicyArn(const Aws::String& value) { m_schedulingPolicyArnHasBeenSet = true; m_schedulingPolicyArn = value; }
84 inline void SetSchedulingPolicyArn(Aws::String&& value) { m_schedulingPolicyArnHasBeenSet = true; m_schedulingPolicyArn = std::move(value); }
85 inline void SetSchedulingPolicyArn(const char* value) { m_schedulingPolicyArnHasBeenSet = true; m_schedulingPolicyArn.assign(value); }
87 inline UpdateJobQueueRequest& WithSchedulingPolicyArn(Aws::String&& value) { SetSchedulingPolicyArn(std::move(value)); return *this;}
88 inline UpdateJobQueueRequest& WithSchedulingPolicyArn(const char* value) { SetSchedulingPolicyArn(value); return *this;}
90
92
103 inline int GetPriority() const{ return m_priority; }
104 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
105 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
106 inline UpdateJobQueueRequest& WithPriority(int value) { SetPriority(value); return *this;}
108
110
122 inline const Aws::Vector<ComputeEnvironmentOrder>& GetComputeEnvironmentOrder() const{ return m_computeEnvironmentOrder; }
123 inline bool ComputeEnvironmentOrderHasBeenSet() const { return m_computeEnvironmentOrderHasBeenSet; }
124 inline void SetComputeEnvironmentOrder(const Aws::Vector<ComputeEnvironmentOrder>& value) { m_computeEnvironmentOrderHasBeenSet = true; m_computeEnvironmentOrder = value; }
125 inline void SetComputeEnvironmentOrder(Aws::Vector<ComputeEnvironmentOrder>&& value) { m_computeEnvironmentOrderHasBeenSet = true; m_computeEnvironmentOrder = std::move(value); }
128 inline UpdateJobQueueRequest& AddComputeEnvironmentOrder(const ComputeEnvironmentOrder& value) { m_computeEnvironmentOrderHasBeenSet = true; m_computeEnvironmentOrder.push_back(value); return *this; }
129 inline UpdateJobQueueRequest& AddComputeEnvironmentOrder(ComputeEnvironmentOrder&& value) { m_computeEnvironmentOrderHasBeenSet = true; m_computeEnvironmentOrder.push_back(std::move(value)); return *this; }
131
133
140 inline const Aws::Vector<JobStateTimeLimitAction>& GetJobStateTimeLimitActions() const{ return m_jobStateTimeLimitActions; }
141 inline bool JobStateTimeLimitActionsHasBeenSet() const { return m_jobStateTimeLimitActionsHasBeenSet; }
142 inline void SetJobStateTimeLimitActions(const Aws::Vector<JobStateTimeLimitAction>& value) { m_jobStateTimeLimitActionsHasBeenSet = true; m_jobStateTimeLimitActions = value; }
143 inline void SetJobStateTimeLimitActions(Aws::Vector<JobStateTimeLimitAction>&& value) { m_jobStateTimeLimitActionsHasBeenSet = true; m_jobStateTimeLimitActions = std::move(value); }
146 inline UpdateJobQueueRequest& AddJobStateTimeLimitActions(const JobStateTimeLimitAction& value) { m_jobStateTimeLimitActionsHasBeenSet = true; m_jobStateTimeLimitActions.push_back(value); return *this; }
147 inline UpdateJobQueueRequest& AddJobStateTimeLimitActions(JobStateTimeLimitAction&& value) { m_jobStateTimeLimitActionsHasBeenSet = true; m_jobStateTimeLimitActions.push_back(std::move(value)); return *this; }
149 private:
150
151 Aws::String m_jobQueue;
152 bool m_jobQueueHasBeenSet = false;
153
154 JQState m_state;
155 bool m_stateHasBeenSet = false;
156
157 Aws::String m_schedulingPolicyArn;
158 bool m_schedulingPolicyArnHasBeenSet = false;
159
160 int m_priority;
161 bool m_priorityHasBeenSet = false;
162
163 Aws::Vector<ComputeEnvironmentOrder> m_computeEnvironmentOrder;
164 bool m_computeEnvironmentOrderHasBeenSet = false;
165
166 Aws::Vector<JobStateTimeLimitAction> m_jobStateTimeLimitActions;
167 bool m_jobStateTimeLimitActionsHasBeenSet = false;
168 };
169
170} // namespace Model
171} // namespace Batch
172} // namespace Aws
UpdateJobQueueRequest & WithState(const JQState &value)
UpdateJobQueueRequest & AddJobStateTimeLimitActions(const JobStateTimeLimitAction &value)
UpdateJobQueueRequest & WithJobStateTimeLimitActions(Aws::Vector< JobStateTimeLimitAction > &&value)
UpdateJobQueueRequest & AddComputeEnvironmentOrder(ComputeEnvironmentOrder &&value)
void SetComputeEnvironmentOrder(Aws::Vector< ComputeEnvironmentOrder > &&value)
const Aws::Vector< ComputeEnvironmentOrder > & GetComputeEnvironmentOrder() const
UpdateJobQueueRequest & WithJobQueue(Aws::String &&value)
void SetSchedulingPolicyArn(const Aws::String &value)
void SetJobStateTimeLimitActions(const Aws::Vector< JobStateTimeLimitAction > &value)
UpdateJobQueueRequest & WithJobQueue(const Aws::String &value)
void SetJobQueue(const Aws::String &value)
UpdateJobQueueRequest & WithSchedulingPolicyArn(const Aws::String &value)
const Aws::Vector< JobStateTimeLimitAction > & GetJobStateTimeLimitActions() const
void SetJobStateTimeLimitActions(Aws::Vector< JobStateTimeLimitAction > &&value)
UpdateJobQueueRequest & WithSchedulingPolicyArn(const char *value)
const Aws::String & GetSchedulingPolicyArn() const
UpdateJobQueueRequest & WithJobQueue(const char *value)
UpdateJobQueueRequest & AddComputeEnvironmentOrder(const ComputeEnvironmentOrder &value)
virtual const char * GetServiceRequestName() const override
UpdateJobQueueRequest & WithPriority(int value)
AWS_BATCH_API Aws::String SerializePayload() const override
UpdateJobQueueRequest & WithComputeEnvironmentOrder(Aws::Vector< ComputeEnvironmentOrder > &&value)
void SetComputeEnvironmentOrder(const Aws::Vector< ComputeEnvironmentOrder > &value)
UpdateJobQueueRequest & WithSchedulingPolicyArn(Aws::String &&value)
UpdateJobQueueRequest & AddJobStateTimeLimitActions(JobStateTimeLimitAction &&value)
UpdateJobQueueRequest & WithComputeEnvironmentOrder(const Aws::Vector< ComputeEnvironmentOrder > &value)
UpdateJobQueueRequest & WithState(JQState &&value)
UpdateJobQueueRequest & WithJobStateTimeLimitActions(const Aws::Vector< JobStateTimeLimitAction > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector