Interface Job.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Job.Builder,Job>, SdkBuilder<Job.Builder,Job>, SdkPojo
Enclosing class:
Job

@Mutable @NotThreadSafe public static interface Job.Builder extends SdkPojo, CopyableBuilder<Job.Builder,Job>
  • Method Details

    • accelerationSettings

      Job.Builder accelerationSettings(AccelerationSettings accelerationSettings)
      Accelerated transcoding can significantly speed up jobs with long, visually complex content.
      Parameters:
      accelerationSettings - Accelerated transcoding can significantly speed up jobs with long, visually complex content.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • accelerationSettings

      default Job.Builder accelerationSettings(Consumer<AccelerationSettings.Builder> accelerationSettings)
      Accelerated transcoding can significantly speed up jobs with long, visually complex content. This is a convenience method that creates an instance of the AccelerationSettings.Builder avoiding the need to create one manually via AccelerationSettings.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to accelerationSettings(AccelerationSettings).

      Parameters:
      accelerationSettings - a consumer that will call methods on AccelerationSettings.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • accelerationStatus

      Job.Builder accelerationStatus(String accelerationStatus)
      Describes whether the current job is running with accelerated transcoding. For jobs that have Acceleration (AccelerationMode) set to DISABLED, AccelerationStatus is always NOT_APPLICABLE. For jobs that have Acceleration (AccelerationMode) set to ENABLED or PREFERRED, AccelerationStatus is one of the other states. AccelerationStatus is IN_PROGRESS initially, while the service determines whether the input files and job settings are compatible with accelerated transcoding. If they are, AcclerationStatus is ACCELERATED. If your input files and job settings aren't compatible with accelerated transcoding, the service either fails your job or runs it without accelerated transcoding, depending on how you set Acceleration (AccelerationMode). When the service runs your job without accelerated transcoding, AccelerationStatus is NOT_ACCELERATED.
      Parameters:
      accelerationStatus - Describes whether the current job is running with accelerated transcoding. For jobs that have Acceleration (AccelerationMode) set to DISABLED, AccelerationStatus is always NOT_APPLICABLE. For jobs that have Acceleration (AccelerationMode) set to ENABLED or PREFERRED, AccelerationStatus is one of the other states. AccelerationStatus is IN_PROGRESS initially, while the service determines whether the input files and job settings are compatible with accelerated transcoding. If they are, AcclerationStatus is ACCELERATED. If your input files and job settings aren't compatible with accelerated transcoding, the service either fails your job or runs it without accelerated transcoding, depending on how you set Acceleration (AccelerationMode). When the service runs your job without accelerated transcoding, AccelerationStatus is NOT_ACCELERATED.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • accelerationStatus

      Job.Builder accelerationStatus(AccelerationStatus accelerationStatus)
      Describes whether the current job is running with accelerated transcoding. For jobs that have Acceleration (AccelerationMode) set to DISABLED, AccelerationStatus is always NOT_APPLICABLE. For jobs that have Acceleration (AccelerationMode) set to ENABLED or PREFERRED, AccelerationStatus is one of the other states. AccelerationStatus is IN_PROGRESS initially, while the service determines whether the input files and job settings are compatible with accelerated transcoding. If they are, AcclerationStatus is ACCELERATED. If your input files and job settings aren't compatible with accelerated transcoding, the service either fails your job or runs it without accelerated transcoding, depending on how you set Acceleration (AccelerationMode). When the service runs your job without accelerated transcoding, AccelerationStatus is NOT_ACCELERATED.
      Parameters:
      accelerationStatus - Describes whether the current job is running with accelerated transcoding. For jobs that have Acceleration (AccelerationMode) set to DISABLED, AccelerationStatus is always NOT_APPLICABLE. For jobs that have Acceleration (AccelerationMode) set to ENABLED or PREFERRED, AccelerationStatus is one of the other states. AccelerationStatus is IN_PROGRESS initially, while the service determines whether the input files and job settings are compatible with accelerated transcoding. If they are, AcclerationStatus is ACCELERATED. If your input files and job settings aren't compatible with accelerated transcoding, the service either fails your job or runs it without accelerated transcoding, depending on how you set Acceleration (AccelerationMode). When the service runs your job without accelerated transcoding, AccelerationStatus is NOT_ACCELERATED.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • arn

      Job.Builder arn(String arn)
      An identifier for this resource that is unique within all of AWS.
      Parameters:
      arn - An identifier for this resource that is unique within all of AWS.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • billingTagsSource

      Job.Builder billingTagsSource(String billingTagsSource)
      The tag type that AWS Billing and Cost Management will use to sort your AWS Elemental MediaConvert costs on any billing report that you set up.
      Parameters:
      billingTagsSource - The tag type that AWS Billing and Cost Management will use to sort your AWS Elemental MediaConvert costs on any billing report that you set up.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • billingTagsSource

      Job.Builder billingTagsSource(BillingTagsSource billingTagsSource)
      The tag type that AWS Billing and Cost Management will use to sort your AWS Elemental MediaConvert costs on any billing report that you set up.
      Parameters:
      billingTagsSource - The tag type that AWS Billing and Cost Management will use to sort your AWS Elemental MediaConvert costs on any billing report that you set up.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • clientRequestToken

      Job.Builder clientRequestToken(String clientRequestToken)
      Prevent duplicate jobs from being created and ensure idempotency for your requests. A client request token can be any string that includes up to 64 ASCII characters. If you reuse a client request token within one minute of a successful request, the API returns the job details of the original request instead. For more information see https://docs.aws.amazon.com/mediaconvert/latest/apireference/idempotency.html.
      Parameters:
      clientRequestToken - Prevent duplicate jobs from being created and ensure idempotency for your requests. A client request token can be any string that includes up to 64 ASCII characters. If you reuse a client request token within one minute of a successful request, the API returns the job details of the original request instead. For more information see https://docs.aws.amazon.com/mediaconvert/latest/apireference/idempotency.html.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdAt

      Job.Builder createdAt(Instant createdAt)
      The time, in Unix epoch format in seconds, when the job got created.
      Parameters:
      createdAt - The time, in Unix epoch format in seconds, when the job got created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • currentPhase

      Job.Builder currentPhase(String currentPhase)
      A job's phase can be PROBING, TRANSCODING OR UPLOADING
      Parameters:
      currentPhase - A job's phase can be PROBING, TRANSCODING OR UPLOADING
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • currentPhase

      Job.Builder currentPhase(JobPhase currentPhase)
      A job's phase can be PROBING, TRANSCODING OR UPLOADING
      Parameters:
      currentPhase - A job's phase can be PROBING, TRANSCODING OR UPLOADING
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • errorCode

      Job.Builder errorCode(Integer errorCode)
      Error code for the job
      Parameters:
      errorCode - Error code for the job
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • errorMessage

      Job.Builder errorMessage(String errorMessage)
      Error message of Job
      Parameters:
      errorMessage - Error message of Job
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • hopDestinations

      Job.Builder hopDestinations(Collection<HopDestination> hopDestinations)
      Optional list of hop destinations.
      Parameters:
      hopDestinations - Optional list of hop destinations.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • hopDestinations

      Job.Builder hopDestinations(HopDestination... hopDestinations)
      Optional list of hop destinations.
      Parameters:
      hopDestinations - Optional list of hop destinations.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • hopDestinations

      Job.Builder hopDestinations(Consumer<HopDestination.Builder>... hopDestinations)
      Optional list of hop destinations. This is a convenience method that creates an instance of the HopDestination.Builder avoiding the need to create one manually via HopDestination.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to hopDestinations(List<HopDestination>).

      Parameters:
      hopDestinations - a consumer that will call methods on HopDestination.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • id

      A portion of the job's ARN, unique within your AWS Elemental MediaConvert resources
      Parameters:
      id - A portion of the job's ARN, unique within your AWS Elemental MediaConvert resources
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • jobEngineVersionRequested

      Job.Builder jobEngineVersionRequested(String jobEngineVersionRequested)
      The Job engine version that you requested for your job. Valid versions are in a YYYY-MM-DD format.
      Parameters:
      jobEngineVersionRequested - The Job engine version that you requested for your job. Valid versions are in a YYYY-MM-DD format.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • jobEngineVersionUsed

      Job.Builder jobEngineVersionUsed(String jobEngineVersionUsed)
      The Job engine version that your job used. Job engine versions are in a YYYY-MM-DD format. When you request an expired version, the response for this property will be empty. Requests to create jobs with an expired version result in a regular job, as if no specific Job engine version was requested. When you request an invalid version, the response for this property will be empty. Requests to create jobs with an invalid version result in a 400 error message, and no job is created.
      Parameters:
      jobEngineVersionUsed - The Job engine version that your job used. Job engine versions are in a YYYY-MM-DD format. When you request an expired version, the response for this property will be empty. Requests to create jobs with an expired version result in a regular job, as if no specific Job engine version was requested. When you request an invalid version, the response for this property will be empty. Requests to create jobs with an invalid version result in a 400 error message, and no job is created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • jobPercentComplete

      Job.Builder jobPercentComplete(Integer jobPercentComplete)
      An estimate of how far your job has progressed. This estimate is shown as a percentage of the total time from when your job leaves its queue to when your output files appear in your output Amazon S3 bucket. AWS Elemental MediaConvert provides jobPercentComplete in CloudWatch STATUS_UPDATE events and in the response to GetJob and ListJobs requests. The jobPercentComplete estimate is reliable for the following input containers: Quicktime, Transport Stream, MP4, and MXF. For some jobs, the service can't provide information about job progress. In those cases, jobPercentComplete returns a null value.
      Parameters:
      jobPercentComplete - An estimate of how far your job has progressed. This estimate is shown as a percentage of the total time from when your job leaves its queue to when your output files appear in your output Amazon S3 bucket. AWS Elemental MediaConvert provides jobPercentComplete in CloudWatch STATUS_UPDATE events and in the response to GetJob and ListJobs requests. The jobPercentComplete estimate is reliable for the following input containers: Quicktime, Transport Stream, MP4, and MXF. For some jobs, the service can't provide information about job progress. In those cases, jobPercentComplete returns a null value.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • jobTemplate

      Job.Builder jobTemplate(String jobTemplate)
      The job template that the job is created from, if it is created from a job template.
      Parameters:
      jobTemplate - The job template that the job is created from, if it is created from a job template.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • messages

      Job.Builder messages(JobMessages messages)
      Provides messages from the service about jobs that you have already successfully submitted.
      Parameters:
      messages - Provides messages from the service about jobs that you have already successfully submitted.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • messages

      default Job.Builder messages(Consumer<JobMessages.Builder> messages)
      Provides messages from the service about jobs that you have already successfully submitted. This is a convenience method that creates an instance of the JobMessages.Builder avoiding the need to create one manually via JobMessages.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to messages(JobMessages).

      Parameters:
      messages - a consumer that will call methods on JobMessages.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • outputGroupDetails

      Job.Builder outputGroupDetails(Collection<OutputGroupDetail> outputGroupDetails)
      List of output group details
      Parameters:
      outputGroupDetails - List of output group details
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • outputGroupDetails

      Job.Builder outputGroupDetails(OutputGroupDetail... outputGroupDetails)
      List of output group details
      Parameters:
      outputGroupDetails - List of output group details
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • outputGroupDetails

      Job.Builder outputGroupDetails(Consumer<OutputGroupDetail.Builder>... outputGroupDetails)
      List of output group details This is a convenience method that creates an instance of the OutputGroupDetail.Builder avoiding the need to create one manually via OutputGroupDetail.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to outputGroupDetails(List<OutputGroupDetail>).

      Parameters:
      outputGroupDetails - a consumer that will call methods on OutputGroupDetail.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • priority

      Job.Builder priority(Integer priority)
      Relative priority on the job.
      Parameters:
      priority - Relative priority on the job.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • queue

      Job.Builder queue(String queue)
      When you create a job, you can specify a queue to send it to. If you don't specify, the job will go to the default queue. For more about queues, see the User Guide topic at https://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html
      Parameters:
      queue - When you create a job, you can specify a queue to send it to. If you don't specify, the job will go to the default queue. For more about queues, see the User Guide topic at https://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • queueTransitions

      Job.Builder queueTransitions(Collection<QueueTransition> queueTransitions)
      The job's queue hopping history.
      Parameters:
      queueTransitions - The job's queue hopping history.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • queueTransitions

      Job.Builder queueTransitions(QueueTransition... queueTransitions)
      The job's queue hopping history.
      Parameters:
      queueTransitions - The job's queue hopping history.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • queueTransitions

      Job.Builder queueTransitions(Consumer<QueueTransition.Builder>... queueTransitions)
      The job's queue hopping history. This is a convenience method that creates an instance of the QueueTransition.Builder avoiding the need to create one manually via QueueTransition.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to queueTransitions(List<QueueTransition>).

      Parameters:
      queueTransitions - a consumer that will call methods on QueueTransition.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • retryCount

      Job.Builder retryCount(Integer retryCount)
      The number of times that the service automatically attempted to process your job after encountering an error.
      Parameters:
      retryCount - The number of times that the service automatically attempted to process your job after encountering an error.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • role

      Job.Builder role(String role)
      The IAM role you use for creating this job. For details about permissions, see the User Guide topic at the User Guide at https://docs.aws.amazon.com/mediaconvert/latest/ug/iam-role.html
      Parameters:
      role - The IAM role you use for creating this job. For details about permissions, see the User Guide topic at the User Guide at https://docs.aws.amazon.com/mediaconvert/latest/ug/iam-role.html
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • settings

      Job.Builder settings(JobSettings settings)
      JobSettings contains all the transcode settings for a job.
      Parameters:
      settings - JobSettings contains all the transcode settings for a job.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • settings

      default Job.Builder settings(Consumer<JobSettings.Builder> settings)
      JobSettings contains all the transcode settings for a job. This is a convenience method that creates an instance of the JobSettings.Builder avoiding the need to create one manually via JobSettings.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to settings(JobSettings).

      Parameters:
      settings - a consumer that will call methods on JobSettings.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • simulateReservedQueue

      Job.Builder simulateReservedQueue(String simulateReservedQueue)
      Enable this setting when you run a test job to estimate how many reserved transcoding slots (RTS) you need. When this is enabled, MediaConvert runs your job from an on-demand queue with similar performance to what you will see with one RTS in a reserved queue. This setting is disabled by default.
      Parameters:
      simulateReservedQueue - Enable this setting when you run a test job to estimate how many reserved transcoding slots (RTS) you need. When this is enabled, MediaConvert runs your job from an on-demand queue with similar performance to what you will see with one RTS in a reserved queue. This setting is disabled by default.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • simulateReservedQueue

      Job.Builder simulateReservedQueue(SimulateReservedQueue simulateReservedQueue)
      Enable this setting when you run a test job to estimate how many reserved transcoding slots (RTS) you need. When this is enabled, MediaConvert runs your job from an on-demand queue with similar performance to what you will see with one RTS in a reserved queue. This setting is disabled by default.
      Parameters:
      simulateReservedQueue - Enable this setting when you run a test job to estimate how many reserved transcoding slots (RTS) you need. When this is enabled, MediaConvert runs your job from an on-demand queue with similar performance to what you will see with one RTS in a reserved queue. This setting is disabled by default.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      Job.Builder status(String status)
      A job's status can be SUBMITTED, PROGRESSING, COMPLETE, CANCELED, or ERROR.
      Parameters:
      status - A job's status can be SUBMITTED, PROGRESSING, COMPLETE, CANCELED, or ERROR.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      Job.Builder status(JobStatus status)
      A job's status can be SUBMITTED, PROGRESSING, COMPLETE, CANCELED, or ERROR.
      Parameters:
      status - A job's status can be SUBMITTED, PROGRESSING, COMPLETE, CANCELED, or ERROR.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • statusUpdateInterval

      Job.Builder statusUpdateInterval(String statusUpdateInterval)
      Specify how often MediaConvert sends STATUS_UPDATE events to Amazon CloudWatch Events. Set the interval, in seconds, between status updates. MediaConvert sends an update at this interval from the time the service begins processing your job to the time it completes the transcode or encounters an error.
      Parameters:
      statusUpdateInterval - Specify how often MediaConvert sends STATUS_UPDATE events to Amazon CloudWatch Events. Set the interval, in seconds, between status updates. MediaConvert sends an update at this interval from the time the service begins processing your job to the time it completes the transcode or encounters an error.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • statusUpdateInterval

      Job.Builder statusUpdateInterval(StatusUpdateInterval statusUpdateInterval)
      Specify how often MediaConvert sends STATUS_UPDATE events to Amazon CloudWatch Events. Set the interval, in seconds, between status updates. MediaConvert sends an update at this interval from the time the service begins processing your job to the time it completes the transcode or encounters an error.
      Parameters:
      statusUpdateInterval - Specify how often MediaConvert sends STATUS_UPDATE events to Amazon CloudWatch Events. Set the interval, in seconds, between status updates. MediaConvert sends an update at this interval from the time the service begins processing your job to the time it completes the transcode or encounters an error.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • timing

      Job.Builder timing(Timing timing)
      Information about when jobs are submitted, started, and finished is specified in Unix epoch format in seconds.
      Parameters:
      timing - Information about when jobs are submitted, started, and finished is specified in Unix epoch format in seconds.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • timing

      default Job.Builder timing(Consumer<Timing.Builder> timing)
      Information about when jobs are submitted, started, and finished is specified in Unix epoch format in seconds. This is a convenience method that creates an instance of the Timing.Builder avoiding the need to create one manually via Timing.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to timing(Timing).

      Parameters:
      timing - a consumer that will call methods on Timing.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • userMetadata

      Job.Builder userMetadata(Map<String,String> userMetadata)
      User-defined metadata that you want to associate with an MediaConvert job. You specify metadata in key/value pairs.
      Parameters:
      userMetadata - User-defined metadata that you want to associate with an MediaConvert job. You specify metadata in key/value pairs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • warnings

      Job.Builder warnings(Collection<WarningGroup> warnings)
      Contains any warning messages for the job. Use to help identify potential issues with your input, output, or job. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/warning_codes.html
      Parameters:
      warnings - Contains any warning messages for the job. Use to help identify potential issues with your input, output, or job. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/warning_codes.html
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • warnings

      Job.Builder warnings(WarningGroup... warnings)
      Contains any warning messages for the job. Use to help identify potential issues with your input, output, or job. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/warning_codes.html
      Parameters:
      warnings - Contains any warning messages for the job. Use to help identify potential issues with your input, output, or job. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/warning_codes.html
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • warnings

      Job.Builder warnings(Consumer<WarningGroup.Builder>... warnings)
      Contains any warning messages for the job. Use to help identify potential issues with your input, output, or job. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/warning_codes.html This is a convenience method that creates an instance of the WarningGroup.Builder avoiding the need to create one manually via WarningGroup.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to warnings(List<WarningGroup>).

      Parameters:
      warnings - a consumer that will call methods on WarningGroup.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: