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>
16#include <aws/core/utils/UUID.h>
49 template<
typename FarmIdT = Aws::String>
50 void SetFarmId(FarmIdT&& value) { m_farmIdHasBeenSet =
true; m_farmId = std::forward<FarmIdT>(value); }
51 template<
typename FarmIdT = Aws::String>
61 template<
typename QueueIdT = Aws::String>
62 void SetQueueId(QueueIdT&& value) { m_queueIdHasBeenSet =
true; m_queueId = std::forward<QueueIdT>(value); }
63 template<
typename QueueIdT = Aws::String>
74 template<
typename ClientTokenT = Aws::String>
75 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet =
true; m_clientToken = std::forward<ClientTokenT>(value); }
76 template<
typename ClientTokenT = Aws::String>
86 template<
typename TemplateT = Aws::String>
87 void SetTemplate(TemplateT&& value) { m_templateHasBeenSet =
true; m_template = std::forward<TemplateT>(value); }
88 template<
typename TemplateT = Aws::String>
109 inline void SetPriority(
int value) { m_priorityHasBeenSet =
true; m_priority = value; }
119 template<
typename ParametersT = Aws::Map<Aws::String, JobParameter>>
120 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet =
true; m_parameters = std::forward<ParametersT>(value); }
121 template<
typename ParametersT = Aws::Map<Aws::String, JobParameter>>
123 template<
typename ParametersKeyT = Aws::String,
typename ParametersValueT = JobParameter>
125 m_parametersHasBeenSet =
true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
return *
this;
136 template<
typename AttachmentsT = Attachments>
137 void SetAttachments(AttachmentsT&& value) { m_attachmentsHasBeenSet =
true; m_attachments = std::forward<AttachmentsT>(value); }
138 template<
typename AttachmentsT = Attachments>
148 template<
typename StorageProfileIdT = Aws::String>
149 void SetStorageProfileId(StorageProfileIdT&& value) { m_storageProfileIdHasBeenSet =
true; m_storageProfileId = std::forward<StorageProfileIdT>(value); }
150 template<
typename StorageProfileIdT = Aws::String>
182 inline void SetMaxRetriesPerTask(
int value) { m_maxRetriesPerTaskHasBeenSet =
true; m_maxRetriesPerTask = value; }
198 inline void SetMaxWorkerCount(
int value) { m_maxWorkerCountHasBeenSet =
true; m_maxWorkerCount = value; }
208 template<
typename SourceJobIdT = Aws::String>
209 void SetSourceJobId(SourceJobIdT&& value) { m_sourceJobIdHasBeenSet =
true; m_sourceJobId = std::forward<SourceJobIdT>(value); }
210 template<
typename SourceJobIdT = Aws::String>
216 bool m_farmIdHasBeenSet =
false;
219 bool m_queueIdHasBeenSet =
false;
222 bool m_clientTokenHasBeenSet =
true;
225 bool m_templateHasBeenSet =
false;
228 bool m_templateTypeHasBeenSet =
false;
231 bool m_priorityHasBeenSet =
false;
234 bool m_parametersHasBeenSet =
false;
236 Attachments m_attachments;
237 bool m_attachmentsHasBeenSet =
false;
240 bool m_storageProfileIdHasBeenSet =
false;
243 bool m_targetTaskRunStatusHasBeenSet =
false;
245 int m_maxFailedTasksCount{0};
246 bool m_maxFailedTasksCountHasBeenSet =
false;
248 int m_maxRetriesPerTask{0};
249 bool m_maxRetriesPerTaskHasBeenSet =
false;
251 int m_maxWorkerCount{0};
252 bool m_maxWorkerCountHasBeenSet =
false;
255 bool m_sourceJobIdHasBeenSet =
false;
static Aws::Utils::UUID PseudoRandomUUID()
const Aws::String & GetQueueId() const
bool StorageProfileIdHasBeenSet() const
AWS_DEADLINE_API Aws::String SerializePayload() const override
CreateJobRequest & WithStorageProfileId(StorageProfileIdT &&value)
bool MaxWorkerCountHasBeenSet() const
CreateJobRequest & WithMaxWorkerCount(int value)
CreateJobRequest & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
const Attachments & GetAttachments() const
bool PriorityHasBeenSet() const
CreateJobRequest & WithTemplate(TemplateT &&value)
void SetTargetTaskRunStatus(CreateJobTargetTaskRunStatus value)
CreateJobRequest & WithQueueId(QueueIdT &&value)
const Aws::Map< Aws::String, JobParameter > & GetParameters() const
void SetSourceJobId(SourceJobIdT &&value)
bool MaxRetriesPerTaskHasBeenSet() const
JobTemplateType GetTemplateType() const
CreateJobRequest & WithTargetTaskRunStatus(CreateJobTargetTaskRunStatus value)
virtual const char * GetServiceRequestName() const override
CreateJobRequest & WithClientToken(ClientTokenT &&value)
const Aws::String & GetSourceJobId() const
bool MaxFailedTasksCountHasBeenSet() const
CreateJobRequest & WithMaxRetriesPerTask(int value)
CreateJobRequest & WithSourceJobId(SourceJobIdT &&value)
bool AttachmentsHasBeenSet() const
void SetFarmId(FarmIdT &&value)
bool FarmIdHasBeenSet() const
const Aws::String & GetStorageProfileId() const
void SetParameters(ParametersT &&value)
CreateJobRequest & WithMaxFailedTasksCount(int value)
void SetQueueId(QueueIdT &&value)
bool TemplateTypeHasBeenSet() const
AWS_DEADLINE_API CreateJobRequest()=default
bool TemplateHasBeenSet() const
int GetMaxRetriesPerTask() const
void SetMaxRetriesPerTask(int value)
AWS_DEADLINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetAttachments(AttachmentsT &&value)
CreateJobRequest & WithPriority(int value)
CreateJobTargetTaskRunStatus GetTargetTaskRunStatus() const
void SetPriority(int value)
void SetClientToken(ClientTokenT &&value)
const Aws::String & GetFarmId() const
bool ParametersHasBeenSet() const
const Aws::String & GetTemplate() const
void SetStorageProfileId(StorageProfileIdT &&value)
bool ClientTokenHasBeenSet() const
int GetMaxFailedTasksCount() const
void SetMaxFailedTasksCount(int value)
void SetTemplate(TemplateT &&value)
CreateJobRequest & WithAttachments(AttachmentsT &&value)
const Aws::String & GetClientToken() const
CreateJobRequest & WithFarmId(FarmIdT &&value)
CreateJobRequest & WithTemplateType(JobTemplateType value)
void SetTemplateType(JobTemplateType value)
bool QueueIdHasBeenSet() const
void SetMaxWorkerCount(int value)
bool SourceJobIdHasBeenSet() const
int GetMaxWorkerCount() const
bool TargetTaskRunStatusHasBeenSet() const
CreateJobRequest & WithParameters(ParametersT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
CreateJobTargetTaskRunStatus
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