Interface JobDescriptor.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<JobDescriptor.Builder,
,JobDescriptor> SdkBuilder<JobDescriptor.Builder,
,JobDescriptor> SdkPojo
- Enclosing class:
JobDescriptor
-
Method Summary
Modifier and TypeMethodDescriptionconfirmationRequired
(Boolean confirmationRequired) Indicates whether confirmation is required before Amazon S3 begins running the specified job.creationTime
(Instant creationTime) A timestamp indicating when this job was created.description
(String description) The description for this job, if one was provided in this job'sCreate Job
request.failureReasons
(Collection<JobFailure> failureReasons) If the specified job failed, this field contains information describing the failure.failureReasons
(Consumer<JobFailure.Builder>... failureReasons) If the specified job failed, this field contains information describing the failure.failureReasons
(JobFailure... failureReasons) If the specified job failed, this field contains information describing the failure.default JobDescriptor.Builder
generatedManifestDescriptor
(Consumer<S3GeneratedManifestDescriptor.Builder> generatedManifestDescriptor) The attribute of the JobDescriptor containing details about the job's generated manifest.generatedManifestDescriptor
(S3GeneratedManifestDescriptor generatedManifestDescriptor) The attribute of the JobDescriptor containing details about the job's generated manifest.The Amazon Resource Name (ARN) for this job.The ID for the specified job.default JobDescriptor.Builder
manifest
(Consumer<JobManifest.Builder> manifest) The configuration information for the specified job's manifest object.manifest
(JobManifest manifest) The configuration information for the specified job's manifest object.default JobDescriptor.Builder
manifestGenerator
(Consumer<JobManifestGenerator.Builder> manifestGenerator) The manifest generator that was used to generate a job manifest for this job.manifestGenerator
(JobManifestGenerator manifestGenerator) The manifest generator that was used to generate a job manifest for this job.default JobDescriptor.Builder
operation
(Consumer<JobOperation.Builder> operation) The operation that the specified job is configured to run on the objects listed in the manifest.operation
(JobOperation operation) The operation that the specified job is configured to run on the objects listed in the manifest.The priority of the specified job.default JobDescriptor.Builder
progressSummary
(Consumer<JobProgressSummary.Builder> progressSummary) Describes the total number of tasks that the specified job has run, the number of tasks that succeeded, and the number of tasks that failed.progressSummary
(JobProgressSummary progressSummary) Describes the total number of tasks that the specified job has run, the number of tasks that succeeded, and the number of tasks that failed.default JobDescriptor.Builder
report
(Consumer<JobReport.Builder> report) Contains the configuration information for the job-completion report if you requested one in theCreate Job
request.Contains the configuration information for the job-completion report if you requested one in theCreate Job
request.The Amazon Resource Name (ARN) for the Identity and Access Management (IAM) role assigned to run the tasks for this job.The current status of the specified job.The current status of the specified job.statusUpdateReason
(String statusUpdateReason) The reason for updating the job.suspendedCause
(String suspendedCause) The reason why the specified job was suspended.suspendedDate
(Instant suspendedDate) The timestamp when this job was suspended, if it has been suspended.terminationDate
(Instant terminationDate) A timestamp indicating when this job terminated.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
jobId
The ID for the specified job.
- Parameters:
jobId
- The ID for the specified job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
confirmationRequired
Indicates whether confirmation is required before Amazon S3 begins running the specified job. Confirmation is required only for jobs created through the Amazon S3 console.
- Parameters:
confirmationRequired
- Indicates whether confirmation is required before Amazon S3 begins running the specified job. Confirmation is required only for jobs created through the Amazon S3 console.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description for this job, if one was provided in this job's
Create Job
request.- Parameters:
description
- The description for this job, if one was provided in this job'sCreate Job
request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
jobArn
The Amazon Resource Name (ARN) for this job.
- Parameters:
jobArn
- The Amazon Resource Name (ARN) for this job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The current status of the specified job.
- Parameters:
status
- The current status of the specified job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The current status of the specified job.
- Parameters:
status
- The current status of the specified job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
manifest
The configuration information for the specified job's manifest object.
- Parameters:
manifest
- The configuration information for the specified job's manifest object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
manifest
The configuration information for the specified job's manifest object.
This is a convenience method that creates an instance of theJobManifest.Builder
avoiding the need to create one manually viaJobManifest.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomanifest(JobManifest)
.- Parameters:
manifest
- a consumer that will call methods onJobManifest.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
operation
The operation that the specified job is configured to run on the objects listed in the manifest.
- Parameters:
operation
- The operation that the specified job is configured to run on the objects listed in the manifest.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
operation
The operation that the specified job is configured to run on the objects listed in the manifest.
This is a convenience method that creates an instance of theJobOperation.Builder
avoiding the need to create one manually viaJobOperation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tooperation(JobOperation)
.- Parameters:
operation
- a consumer that will call methods onJobOperation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
priority
The priority of the specified job.
- Parameters:
priority
- The priority of the specified job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
progressSummary
Describes the total number of tasks that the specified job has run, the number of tasks that succeeded, and the number of tasks that failed.
- Parameters:
progressSummary
- Describes the total number of tasks that the specified job has run, the number of tasks that succeeded, and the number of tasks that failed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
progressSummary
Describes the total number of tasks that the specified job has run, the number of tasks that succeeded, and the number of tasks that failed.
This is a convenience method that creates an instance of theJobProgressSummary.Builder
avoiding the need to create one manually viaJobProgressSummary.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toprogressSummary(JobProgressSummary)
.- Parameters:
progressSummary
- a consumer that will call methods onJobProgressSummary.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
statusUpdateReason
The reason for updating the job.
- Parameters:
statusUpdateReason
- The reason for updating the job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failureReasons
If the specified job failed, this field contains information describing the failure.
- Parameters:
failureReasons
- If the specified job failed, this field contains information describing the failure.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failureReasons
If the specified job failed, this field contains information describing the failure.
- Parameters:
failureReasons
- If the specified job failed, this field contains information describing the failure.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failureReasons
If the specified job failed, this field contains information describing the failure.
This is a convenience method that creates an instance of theJobFailure.Builder
avoiding the need to create one manually viaJobFailure.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofailureReasons(List<JobFailure>)
.- Parameters:
failureReasons
- a consumer that will call methods onJobFailure.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
report
Contains the configuration information for the job-completion report if you requested one in the
Create Job
request.- Parameters:
report
- Contains the configuration information for the job-completion report if you requested one in theCreate Job
request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
report
Contains the configuration information for the job-completion report if you requested one in the
This is a convenience method that creates an instance of theCreate Job
request.JobReport.Builder
avoiding the need to create one manually viaJobReport.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toreport(JobReport)
.- Parameters:
report
- a consumer that will call methods onJobReport.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
creationTime
A timestamp indicating when this job was created.
- Parameters:
creationTime
- A timestamp indicating when this job was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
terminationDate
A timestamp indicating when this job terminated. A job's termination date is the date and time when it succeeded, failed, or was canceled.
- Parameters:
terminationDate
- A timestamp indicating when this job terminated. A job's termination date is the date and time when it succeeded, failed, or was canceled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roleArn
The Amazon Resource Name (ARN) for the Identity and Access Management (IAM) role assigned to run the tasks for this job.
- Parameters:
roleArn
- The Amazon Resource Name (ARN) for the Identity and Access Management (IAM) role assigned to run the tasks for this job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
suspendedDate
The timestamp when this job was suspended, if it has been suspended.
- Parameters:
suspendedDate
- The timestamp when this job was suspended, if it has been suspended.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
suspendedCause
The reason why the specified job was suspended. A job is only suspended if you create it through the Amazon S3 console. When you create the job, it enters the
Suspended
state to await confirmation before running. After you confirm the job, it automatically exits theSuspended
state.- Parameters:
suspendedCause
- The reason why the specified job was suspended. A job is only suspended if you create it through the Amazon S3 console. When you create the job, it enters theSuspended
state to await confirmation before running. After you confirm the job, it automatically exits theSuspended
state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
manifestGenerator
The manifest generator that was used to generate a job manifest for this job.
- Parameters:
manifestGenerator
- The manifest generator that was used to generate a job manifest for this job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
manifestGenerator
default JobDescriptor.Builder manifestGenerator(Consumer<JobManifestGenerator.Builder> manifestGenerator) The manifest generator that was used to generate a job manifest for this job.
This is a convenience method that creates an instance of theJobManifestGenerator.Builder
avoiding the need to create one manually viaJobManifestGenerator.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomanifestGenerator(JobManifestGenerator)
.- Parameters:
manifestGenerator
- a consumer that will call methods onJobManifestGenerator.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
generatedManifestDescriptor
JobDescriptor.Builder generatedManifestDescriptor(S3GeneratedManifestDescriptor generatedManifestDescriptor) The attribute of the JobDescriptor containing details about the job's generated manifest.
- Parameters:
generatedManifestDescriptor
- The attribute of the JobDescriptor containing details about the job's generated manifest.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
generatedManifestDescriptor
default JobDescriptor.Builder generatedManifestDescriptor(Consumer<S3GeneratedManifestDescriptor.Builder> generatedManifestDescriptor) The attribute of the JobDescriptor containing details about the job's generated manifest.
This is a convenience method that creates an instance of theS3GeneratedManifestDescriptor.Builder
avoiding the need to create one manually viaS3GeneratedManifestDescriptor.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed togeneratedManifestDescriptor(S3GeneratedManifestDescriptor)
.- Parameters:
generatedManifestDescriptor
- a consumer that will call methods onS3GeneratedManifestDescriptor.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-