AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateJobRequest.h
1
6#pragma once
7#include <aws/deadline/Deadline_EXPORTS.h>
8#include <aws/deadline/DeadlineRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/deadline/model/JobTargetTaskRunStatus.h>
11#include <aws/deadline/model/UpdateJobLifecycleStatus.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace deadline
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_DEADLINE_API UpdateJobRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateJob"; }
34
35 AWS_DEADLINE_API Aws::String SerializePayload() const override;
36
38
39
41
45 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
46 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
47 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
48 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
49 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
50 inline UpdateJobRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
51 inline UpdateJobRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
52 inline UpdateJobRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
54
56
59 inline const Aws::String& GetFarmId() const{ return m_farmId; }
60 inline bool FarmIdHasBeenSet() const { return m_farmIdHasBeenSet; }
61 inline void SetFarmId(const Aws::String& value) { m_farmIdHasBeenSet = true; m_farmId = value; }
62 inline void SetFarmId(Aws::String&& value) { m_farmIdHasBeenSet = true; m_farmId = std::move(value); }
63 inline void SetFarmId(const char* value) { m_farmIdHasBeenSet = true; m_farmId.assign(value); }
64 inline UpdateJobRequest& WithFarmId(const Aws::String& value) { SetFarmId(value); return *this;}
65 inline UpdateJobRequest& WithFarmId(Aws::String&& value) { SetFarmId(std::move(value)); return *this;}
66 inline UpdateJobRequest& WithFarmId(const char* value) { SetFarmId(value); return *this;}
68
70
73 inline const Aws::String& GetQueueId() const{ return m_queueId; }
74 inline bool QueueIdHasBeenSet() const { return m_queueIdHasBeenSet; }
75 inline void SetQueueId(const Aws::String& value) { m_queueIdHasBeenSet = true; m_queueId = value; }
76 inline void SetQueueId(Aws::String&& value) { m_queueIdHasBeenSet = true; m_queueId = std::move(value); }
77 inline void SetQueueId(const char* value) { m_queueIdHasBeenSet = true; m_queueId.assign(value); }
78 inline UpdateJobRequest& WithQueueId(const Aws::String& value) { SetQueueId(value); return *this;}
79 inline UpdateJobRequest& WithQueueId(Aws::String&& value) { SetQueueId(std::move(value)); return *this;}
80 inline UpdateJobRequest& WithQueueId(const char* value) { SetQueueId(value); return *this;}
82
84
87 inline const Aws::String& GetJobId() const{ return m_jobId; }
88 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
89 inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
90 inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
91 inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
92 inline UpdateJobRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
93 inline UpdateJobRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
94 inline UpdateJobRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
96
98
101 inline const JobTargetTaskRunStatus& GetTargetTaskRunStatus() const{ return m_targetTaskRunStatus; }
102 inline bool TargetTaskRunStatusHasBeenSet() const { return m_targetTaskRunStatusHasBeenSet; }
103 inline void SetTargetTaskRunStatus(const JobTargetTaskRunStatus& value) { m_targetTaskRunStatusHasBeenSet = true; m_targetTaskRunStatus = value; }
104 inline void SetTargetTaskRunStatus(JobTargetTaskRunStatus&& value) { m_targetTaskRunStatusHasBeenSet = true; m_targetTaskRunStatus = std::move(value); }
108
110
113 inline int GetPriority() const{ return m_priority; }
114 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
115 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
116 inline UpdateJobRequest& WithPriority(int value) { SetPriority(value); return *this;}
118
120
124 inline int GetMaxFailedTasksCount() const{ return m_maxFailedTasksCount; }
125 inline bool MaxFailedTasksCountHasBeenSet() const { return m_maxFailedTasksCountHasBeenSet; }
126 inline void SetMaxFailedTasksCount(int value) { m_maxFailedTasksCountHasBeenSet = true; m_maxFailedTasksCount = value; }
127 inline UpdateJobRequest& WithMaxFailedTasksCount(int value) { SetMaxFailedTasksCount(value); return *this;}
129
131
134 inline int GetMaxRetriesPerTask() const{ return m_maxRetriesPerTask; }
135 inline bool MaxRetriesPerTaskHasBeenSet() const { return m_maxRetriesPerTaskHasBeenSet; }
136 inline void SetMaxRetriesPerTask(int value) { m_maxRetriesPerTaskHasBeenSet = true; m_maxRetriesPerTask = value; }
137 inline UpdateJobRequest& WithMaxRetriesPerTask(int value) { SetMaxRetriesPerTask(value); return *this;}
139
141
147 inline const UpdateJobLifecycleStatus& GetLifecycleStatus() const{ return m_lifecycleStatus; }
148 inline bool LifecycleStatusHasBeenSet() const { return m_lifecycleStatusHasBeenSet; }
149 inline void SetLifecycleStatus(const UpdateJobLifecycleStatus& value) { m_lifecycleStatusHasBeenSet = true; m_lifecycleStatus = value; }
150 inline void SetLifecycleStatus(UpdateJobLifecycleStatus&& value) { m_lifecycleStatusHasBeenSet = true; m_lifecycleStatus = std::move(value); }
152 inline UpdateJobRequest& WithLifecycleStatus(UpdateJobLifecycleStatus&& value) { SetLifecycleStatus(std::move(value)); return *this;}
154 private:
155
156 Aws::String m_clientToken;
157 bool m_clientTokenHasBeenSet = false;
158
159 Aws::String m_farmId;
160 bool m_farmIdHasBeenSet = false;
161
162 Aws::String m_queueId;
163 bool m_queueIdHasBeenSet = false;
164
165 Aws::String m_jobId;
166 bool m_jobIdHasBeenSet = false;
167
168 JobTargetTaskRunStatus m_targetTaskRunStatus;
169 bool m_targetTaskRunStatusHasBeenSet = false;
170
171 int m_priority;
172 bool m_priorityHasBeenSet = false;
173
174 int m_maxFailedTasksCount;
175 bool m_maxFailedTasksCountHasBeenSet = false;
176
177 int m_maxRetriesPerTask;
178 bool m_maxRetriesPerTaskHasBeenSet = false;
179
180 UpdateJobLifecycleStatus m_lifecycleStatus;
181 bool m_lifecycleStatusHasBeenSet = false;
182 };
183
184} // namespace Model
185} // namespace deadline
186} // namespace Aws
const Aws::String & GetJobId() const
UpdateJobRequest & WithFarmId(const Aws::String &value)
UpdateJobRequest & WithJobId(Aws::String &&value)
UpdateJobRequest & WithLifecycleStatus(const UpdateJobLifecycleStatus &value)
const Aws::String & GetQueueId() const
UpdateJobRequest & WithMaxFailedTasksCount(int value)
void SetJobId(const Aws::String &value)
UpdateJobRequest & WithClientToken(const Aws::String &value)
UpdateJobRequest & WithJobId(const char *value)
UpdateJobRequest & WithPriority(int value)
UpdateJobRequest & WithClientToken(const char *value)
void SetTargetTaskRunStatus(JobTargetTaskRunStatus &&value)
virtual const char * GetServiceRequestName() const override
void SetQueueId(const Aws::String &value)
void SetLifecycleStatus(UpdateJobLifecycleStatus &&value)
const UpdateJobLifecycleStatus & GetLifecycleStatus() const
UpdateJobRequest & WithClientToken(Aws::String &&value)
UpdateJobRequest & WithQueueId(const char *value)
AWS_DEADLINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateJobRequest & WithFarmId(const char *value)
UpdateJobRequest & WithFarmId(Aws::String &&value)
void SetLifecycleStatus(const UpdateJobLifecycleStatus &value)
UpdateJobRequest & WithQueueId(const Aws::String &value)
UpdateJobRequest & WithMaxRetriesPerTask(int value)
void SetClientToken(const Aws::String &value)
const Aws::String & GetFarmId() const
const Aws::String & GetClientToken() const
AWS_DEADLINE_API Aws::String SerializePayload() const override
void SetClientToken(Aws::String &&value)
void SetTargetTaskRunStatus(const JobTargetTaskRunStatus &value)
UpdateJobRequest & WithQueueId(Aws::String &&value)
UpdateJobRequest & WithJobId(const Aws::String &value)
UpdateJobRequest & WithLifecycleStatus(UpdateJobLifecycleStatus &&value)
UpdateJobRequest & WithTargetTaskRunStatus(const JobTargetTaskRunStatus &value)
UpdateJobRequest & WithTargetTaskRunStatus(JobTargetTaskRunStatus &&value)
const JobTargetTaskRunStatus & GetTargetTaskRunStatus() const
void SetFarmId(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String