AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateJobRequest.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/JobTemplateType.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/deadline/model/Attachments.h>
13#include <aws/deadline/model/CreateJobTargetTaskRunStatus.h>
14#include <aws/deadline/model/JobParameter.h>
15#include <utility>
16#include <aws/core/utils/UUID.h>
17
18namespace Aws
19{
20namespace deadline
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_DEADLINE_API CreateJobRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateJob"; }
37
38 AWS_DEADLINE_API Aws::String SerializePayload() const override;
39
41
42
44
47 inline const Aws::String& GetFarmId() const{ return m_farmId; }
48 inline bool FarmIdHasBeenSet() const { return m_farmIdHasBeenSet; }
49 inline void SetFarmId(const Aws::String& value) { m_farmIdHasBeenSet = true; m_farmId = value; }
50 inline void SetFarmId(Aws::String&& value) { m_farmIdHasBeenSet = true; m_farmId = std::move(value); }
51 inline void SetFarmId(const char* value) { m_farmIdHasBeenSet = true; m_farmId.assign(value); }
52 inline CreateJobRequest& WithFarmId(const Aws::String& value) { SetFarmId(value); return *this;}
53 inline CreateJobRequest& WithFarmId(Aws::String&& value) { SetFarmId(std::move(value)); return *this;}
54 inline CreateJobRequest& WithFarmId(const char* value) { SetFarmId(value); return *this;}
56
58
61 inline const Aws::String& GetQueueId() const{ return m_queueId; }
62 inline bool QueueIdHasBeenSet() const { return m_queueIdHasBeenSet; }
63 inline void SetQueueId(const Aws::String& value) { m_queueIdHasBeenSet = true; m_queueId = value; }
64 inline void SetQueueId(Aws::String&& value) { m_queueIdHasBeenSet = true; m_queueId = std::move(value); }
65 inline void SetQueueId(const char* value) { m_queueIdHasBeenSet = true; m_queueId.assign(value); }
66 inline CreateJobRequest& WithQueueId(const Aws::String& value) { SetQueueId(value); return *this;}
67 inline CreateJobRequest& WithQueueId(Aws::String&& value) { SetQueueId(std::move(value)); return *this;}
68 inline CreateJobRequest& WithQueueId(const char* value) { SetQueueId(value); return *this;}
70
72
76 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
77 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
78 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
79 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
80 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
81 inline CreateJobRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
82 inline CreateJobRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
83 inline CreateJobRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
85
87
90 inline const Aws::String& GetTemplate() const{ return m_template; }
91 inline bool TemplateHasBeenSet() const { return m_templateHasBeenSet; }
92 inline void SetTemplate(const Aws::String& value) { m_templateHasBeenSet = true; m_template = value; }
93 inline void SetTemplate(Aws::String&& value) { m_templateHasBeenSet = true; m_template = std::move(value); }
94 inline void SetTemplate(const char* value) { m_templateHasBeenSet = true; m_template.assign(value); }
95 inline CreateJobRequest& WithTemplate(const Aws::String& value) { SetTemplate(value); return *this;}
96 inline CreateJobRequest& WithTemplate(Aws::String&& value) { SetTemplate(std::move(value)); return *this;}
97 inline CreateJobRequest& WithTemplate(const char* value) { SetTemplate(value); return *this;}
99
101
104 inline const JobTemplateType& GetTemplateType() const{ return m_templateType; }
105 inline bool TemplateTypeHasBeenSet() const { return m_templateTypeHasBeenSet; }
106 inline void SetTemplateType(const JobTemplateType& value) { m_templateTypeHasBeenSet = true; m_templateType = value; }
107 inline void SetTemplateType(JobTemplateType&& value) { m_templateTypeHasBeenSet = true; m_templateType = std::move(value); }
108 inline CreateJobRequest& WithTemplateType(const JobTemplateType& value) { SetTemplateType(value); return *this;}
109 inline CreateJobRequest& WithTemplateType(JobTemplateType&& value) { SetTemplateType(std::move(value)); return *this;}
111
113
118 inline int GetPriority() const{ return m_priority; }
119 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
120 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
121 inline CreateJobRequest& WithPriority(int value) { SetPriority(value); return *this;}
123
125
128 inline const Aws::Map<Aws::String, JobParameter>& GetParameters() const{ return m_parameters; }
129 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
130 inline void SetParameters(const Aws::Map<Aws::String, JobParameter>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
131 inline void SetParameters(Aws::Map<Aws::String, JobParameter>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
133 inline CreateJobRequest& WithParameters(Aws::Map<Aws::String, JobParameter>&& value) { SetParameters(std::move(value)); return *this;}
134 inline CreateJobRequest& AddParameters(const Aws::String& key, const JobParameter& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
135 inline CreateJobRequest& AddParameters(Aws::String&& key, const JobParameter& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
136 inline CreateJobRequest& AddParameters(const Aws::String& key, JobParameter&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
137 inline CreateJobRequest& AddParameters(Aws::String&& key, JobParameter&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
138 inline CreateJobRequest& AddParameters(const char* key, JobParameter&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
139 inline CreateJobRequest& AddParameters(const char* key, const JobParameter& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
141
143
147 inline const Attachments& GetAttachments() const{ return m_attachments; }
148 inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; }
149 inline void SetAttachments(const Attachments& value) { m_attachmentsHasBeenSet = true; m_attachments = value; }
150 inline void SetAttachments(Attachments&& value) { m_attachmentsHasBeenSet = true; m_attachments = std::move(value); }
151 inline CreateJobRequest& WithAttachments(const Attachments& value) { SetAttachments(value); return *this;}
152 inline CreateJobRequest& WithAttachments(Attachments&& value) { SetAttachments(std::move(value)); return *this;}
154
156
159 inline const Aws::String& GetStorageProfileId() const{ return m_storageProfileId; }
160 inline bool StorageProfileIdHasBeenSet() const { return m_storageProfileIdHasBeenSet; }
161 inline void SetStorageProfileId(const Aws::String& value) { m_storageProfileIdHasBeenSet = true; m_storageProfileId = value; }
162 inline void SetStorageProfileId(Aws::String&& value) { m_storageProfileIdHasBeenSet = true; m_storageProfileId = std::move(value); }
163 inline void SetStorageProfileId(const char* value) { m_storageProfileIdHasBeenSet = true; m_storageProfileId.assign(value); }
164 inline CreateJobRequest& WithStorageProfileId(const Aws::String& value) { SetStorageProfileId(value); return *this;}
165 inline CreateJobRequest& WithStorageProfileId(Aws::String&& value) { SetStorageProfileId(std::move(value)); return *this;}
166 inline CreateJobRequest& WithStorageProfileId(const char* value) { SetStorageProfileId(value); return *this;}
168
170
174 inline const CreateJobTargetTaskRunStatus& GetTargetTaskRunStatus() const{ return m_targetTaskRunStatus; }
175 inline bool TargetTaskRunStatusHasBeenSet() const { return m_targetTaskRunStatusHasBeenSet; }
176 inline void SetTargetTaskRunStatus(const CreateJobTargetTaskRunStatus& value) { m_targetTaskRunStatusHasBeenSet = true; m_targetTaskRunStatus = value; }
177 inline void SetTargetTaskRunStatus(CreateJobTargetTaskRunStatus&& value) { m_targetTaskRunStatusHasBeenSet = true; m_targetTaskRunStatus = std::move(value); }
181
183
187 inline int GetMaxFailedTasksCount() const{ return m_maxFailedTasksCount; }
188 inline bool MaxFailedTasksCountHasBeenSet() const { return m_maxFailedTasksCountHasBeenSet; }
189 inline void SetMaxFailedTasksCount(int value) { m_maxFailedTasksCountHasBeenSet = true; m_maxFailedTasksCount = value; }
190 inline CreateJobRequest& WithMaxFailedTasksCount(int value) { SetMaxFailedTasksCount(value); return *this;}
192
194
197 inline int GetMaxRetriesPerTask() const{ return m_maxRetriesPerTask; }
198 inline bool MaxRetriesPerTaskHasBeenSet() const { return m_maxRetriesPerTaskHasBeenSet; }
199 inline void SetMaxRetriesPerTask(int value) { m_maxRetriesPerTaskHasBeenSet = true; m_maxRetriesPerTask = value; }
200 inline CreateJobRequest& WithMaxRetriesPerTask(int value) { SetMaxRetriesPerTask(value); return *this;}
202
204
207 inline const Aws::String& GetSourceJobId() const{ return m_sourceJobId; }
208 inline bool SourceJobIdHasBeenSet() const { return m_sourceJobIdHasBeenSet; }
209 inline void SetSourceJobId(const Aws::String& value) { m_sourceJobIdHasBeenSet = true; m_sourceJobId = value; }
210 inline void SetSourceJobId(Aws::String&& value) { m_sourceJobIdHasBeenSet = true; m_sourceJobId = std::move(value); }
211 inline void SetSourceJobId(const char* value) { m_sourceJobIdHasBeenSet = true; m_sourceJobId.assign(value); }
212 inline CreateJobRequest& WithSourceJobId(const Aws::String& value) { SetSourceJobId(value); return *this;}
213 inline CreateJobRequest& WithSourceJobId(Aws::String&& value) { SetSourceJobId(std::move(value)); return *this;}
214 inline CreateJobRequest& WithSourceJobId(const char* value) { SetSourceJobId(value); return *this;}
216 private:
217
218 Aws::String m_farmId;
219 bool m_farmIdHasBeenSet = false;
220
221 Aws::String m_queueId;
222 bool m_queueIdHasBeenSet = false;
223
224 Aws::String m_clientToken;
225 bool m_clientTokenHasBeenSet = false;
226
227 Aws::String m_template;
228 bool m_templateHasBeenSet = false;
229
230 JobTemplateType m_templateType;
231 bool m_templateTypeHasBeenSet = false;
232
233 int m_priority;
234 bool m_priorityHasBeenSet = false;
235
237 bool m_parametersHasBeenSet = false;
238
239 Attachments m_attachments;
240 bool m_attachmentsHasBeenSet = false;
241
242 Aws::String m_storageProfileId;
243 bool m_storageProfileIdHasBeenSet = false;
244
245 CreateJobTargetTaskRunStatus m_targetTaskRunStatus;
246 bool m_targetTaskRunStatusHasBeenSet = false;
247
248 int m_maxFailedTasksCount;
249 bool m_maxFailedTasksCountHasBeenSet = false;
250
251 int m_maxRetriesPerTask;
252 bool m_maxRetriesPerTaskHasBeenSet = false;
253
254 Aws::String m_sourceJobId;
255 bool m_sourceJobIdHasBeenSet = false;
256 };
257
258} // namespace Model
259} // namespace deadline
260} // namespace Aws
const Aws::String & GetQueueId() const
CreateJobRequest & WithTemplateType(const JobTemplateType &value)
AWS_DEADLINE_API Aws::String SerializePayload() const override
CreateJobRequest & WithClientToken(const char *value)
void SetClientToken(Aws::String &&value)
CreateJobRequest & WithSourceJobId(const Aws::String &value)
CreateJobRequest & WithAttachments(const Attachments &value)
CreateJobRequest & WithClientToken(const Aws::String &value)
CreateJobRequest & WithSourceJobId(Aws::String &&value)
const Attachments & GetAttachments() const
CreateJobRequest & AddParameters(const char *key, JobParameter &&value)
CreateJobRequest & WithQueueId(const char *value)
CreateJobRequest & WithTemplate(const char *value)
CreateJobRequest & WithSourceJobId(const char *value)
void SetStorageProfileId(const char *value)
const Aws::Map< Aws::String, JobParameter > & GetParameters() const
void SetQueueId(const Aws::String &value)
void SetParameters(const Aws::Map< Aws::String, JobParameter > &value)
CreateJobRequest & WithFarmId(const char *value)
CreateJobRequest & WithStorageProfileId(const Aws::String &value)
void SetParameters(Aws::Map< Aws::String, JobParameter > &&value)
void SetAttachments(const Attachments &value)
void SetTemplateType(const JobTemplateType &value)
void SetTemplateType(JobTemplateType &&value)
virtual const char * GetServiceRequestName() const override
const CreateJobTargetTaskRunStatus & GetTargetTaskRunStatus() const
CreateJobRequest & AddParameters(const char *key, const JobParameter &value)
void SetTargetTaskRunStatus(CreateJobTargetTaskRunStatus &&value)
CreateJobRequest & WithTemplate(Aws::String &&value)
const Aws::String & GetSourceJobId() const
CreateJobRequest & WithTargetTaskRunStatus(const CreateJobTargetTaskRunStatus &value)
CreateJobRequest & WithMaxRetriesPerTask(int value)
const Aws::String & GetStorageProfileId() const
CreateJobRequest & WithMaxFailedTasksCount(int value)
CreateJobRequest & WithStorageProfileId(Aws::String &&value)
CreateJobRequest & AddParameters(Aws::String &&key, const JobParameter &value)
CreateJobRequest & WithClientToken(Aws::String &&value)
CreateJobRequest & AddParameters(const Aws::String &key, JobParameter &&value)
CreateJobRequest & WithParameters(Aws::Map< Aws::String, JobParameter > &&value)
void SetTemplate(const Aws::String &value)
void SetAttachments(Attachments &&value)
CreateJobRequest & WithFarmId(Aws::String &&value)
CreateJobRequest & WithFarmId(const Aws::String &value)
void SetStorageProfileId(const Aws::String &value)
void SetSourceJobId(const Aws::String &value)
void SetStorageProfileId(Aws::String &&value)
AWS_DEADLINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateJobRequest & WithPriority(int value)
const Aws::String & GetFarmId() const
CreateJobRequest & WithTargetTaskRunStatus(CreateJobTargetTaskRunStatus &&value)
void SetTemplate(Aws::String &&value)
CreateJobRequest & WithTemplate(const Aws::String &value)
const Aws::String & GetTemplate() const
CreateJobRequest & WithQueueId(const Aws::String &value)
const Aws::String & GetClientToken() const
CreateJobRequest & AddParameters(Aws::String &&key, JobParameter &&value)
CreateJobRequest & AddParameters(const Aws::String &key, const JobParameter &value)
const JobTemplateType & GetTemplateType() const
void SetTargetTaskRunStatus(const CreateJobTargetTaskRunStatus &value)
void SetClientToken(const Aws::String &value)
CreateJobRequest & WithTemplateType(JobTemplateType &&value)
void SetSourceJobId(Aws::String &&value)
CreateJobRequest & WithStorageProfileId(const char *value)
CreateJobRequest & WithQueueId(Aws::String &&value)
CreateJobRequest & WithParameters(const Aws::Map< Aws::String, JobParameter > &value)
void SetFarmId(const Aws::String &value)
CreateJobRequest & WithAttachments(Attachments &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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