Interface CreateJobRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateJobRequest.Builder,
,CreateJobRequest> DeadlineRequest.Builder
,SdkBuilder<CreateJobRequest.Builder,
,CreateJobRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateJobRequest
-
Method Summary
Modifier and TypeMethodDescriptiondefault CreateJobRequest.Builder
attachments
(Consumer<Attachments.Builder> attachments) The attachments for the job.attachments
(Attachments attachments) The attachments for the job.clientToken
(String clientToken) The unique token which the server uses to recognize retries of the same request.The farm ID of the farm to connect to the job.maxFailedTasksCount
(Integer maxFailedTasksCount) The number of task failures before the job stops running and is marked asFAILED
.maxRetriesPerTask
(Integer maxRetriesPerTask) The maximum number of retries for each task.maxWorkerCount
(Integer maxWorkerCount) The maximum number of worker hosts that can concurrently process a job.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.parameters
(Map<String, JobParameter> parameters) The parameters for the job.The priority of the job.The ID of the queue that the job is submitted to.sourceJobId
(String sourceJobId) The job ID for the source job.storageProfileId
(String storageProfileId) The storage profile ID for the storage profile to connect to the job.targetTaskRunStatus
(String targetTaskRunStatus) The initial job status when it is created.targetTaskRunStatus
(CreateJobTargetTaskRunStatus targetTaskRunStatus) The initial job status when it is created.The job template to use for this job.templateType
(String templateType) The file type for the job template.templateType
(JobTemplateType templateType) The file type for the job template.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.deadline.model.DeadlineRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
farmId
The farm ID of the farm to connect to the job.
- Parameters:
farmId
- The farm ID of the farm to connect to the job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
queueId
The ID of the queue that the job is submitted to.
- Parameters:
queueId
- The ID of the queue that the job is submitted to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
The unique token which the server uses to recognize retries of the same request.
- Parameters:
clientToken
- The unique token which the server uses to recognize retries of the same request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
template
The job template to use for this job.
- Parameters:
template
- The job template to use for this job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
templateType
The file type for the job template.
- Parameters:
templateType
- The file type for the job template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
templateType
The file type for the job template.
- Parameters:
templateType
- The file type for the job template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
priority
The priority of the job. The highest priority (first scheduled) is 100. When two jobs have the same priority, the oldest job is scheduled first.
- Parameters:
priority
- The priority of the job. The highest priority (first scheduled) is 100. When two jobs have the same priority, the oldest job is scheduled first.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
parameters
The parameters for the job.
- Parameters:
parameters
- The parameters for the job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attachments
The attachments for the job. Attach files required for the job to run to a render job.
- Parameters:
attachments
- The attachments for the job. Attach files required for the job to run to a render job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attachments
The attachments for the job. Attach files required for the job to run to a render job.
This is a convenience method that creates an instance of theAttachments.Builder
avoiding the need to create one manually viaAttachments.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toattachments(Attachments)
.- Parameters:
attachments
- a consumer that will call methods onAttachments.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
storageProfileId
The storage profile ID for the storage profile to connect to the job.
- Parameters:
storageProfileId
- The storage profile ID for the storage profile to connect to the job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetTaskRunStatus
The initial job status when it is created. Jobs that are created with a
SUSPENDED
status will not run until manually requeued.- Parameters:
targetTaskRunStatus
- The initial job status when it is created. Jobs that are created with aSUSPENDED
status will not run until manually requeued.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
targetTaskRunStatus
The initial job status when it is created. Jobs that are created with a
SUSPENDED
status will not run until manually requeued.- Parameters:
targetTaskRunStatus
- The initial job status when it is created. Jobs that are created with aSUSPENDED
status will not run until manually requeued.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
maxFailedTasksCount
The number of task failures before the job stops running and is marked as
FAILED
.- Parameters:
maxFailedTasksCount
- The number of task failures before the job stops running and is marked asFAILED
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxRetriesPerTask
The maximum number of retries for each task.
- Parameters:
maxRetriesPerTask
- The maximum number of retries for each task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxWorkerCount
The maximum number of worker hosts that can concurrently process a job. When the
maxWorkerCount
is reached, no more workers will be assigned to process the job, even if the fleets assigned to the job's queue has available workers.You can't set the
maxWorkerCount
to 0. If you set it to -1, there is no maximum number of workers.If you don't specify the
maxWorkerCount
, Deadline Cloud won't throttle the number of workers used to process the job.- Parameters:
maxWorkerCount
- The maximum number of worker hosts that can concurrently process a job. When themaxWorkerCount
is reached, no more workers will be assigned to process the job, even if the fleets assigned to the job's queue has available workers.You can't set the
maxWorkerCount
to 0. If you set it to -1, there is no maximum number of workers.If you don't specify the
maxWorkerCount
, Deadline Cloud won't throttle the number of workers used to process the job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceJobId
The job ID for the source job.
- Parameters:
sourceJobId
- The job ID for the source job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateJobRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateJobRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-