Struct aws_sdk_mediaconvert::types::builders::JobBuilder
source · #[non_exhaustive]pub struct JobBuilder { /* private fields */ }
Expand description
A builder for Job
.
Implementations§
source§impl JobBuilder
impl JobBuilder
sourcepub fn acceleration_settings(self, input: AccelerationSettings) -> Self
pub fn acceleration_settings(self, input: AccelerationSettings) -> Self
Accelerated transcoding can significantly speed up jobs with long, visually complex content.
sourcepub fn set_acceleration_settings(
self,
input: Option<AccelerationSettings>
) -> Self
pub fn set_acceleration_settings( self, input: Option<AccelerationSettings> ) -> Self
Accelerated transcoding can significantly speed up jobs with long, visually complex content.
sourcepub fn get_acceleration_settings(&self) -> &Option<AccelerationSettings>
pub fn get_acceleration_settings(&self) -> &Option<AccelerationSettings>
Accelerated transcoding can significantly speed up jobs with long, visually complex content.
sourcepub fn acceleration_status(self, input: AccelerationStatus) -> Self
pub fn acceleration_status(self, input: AccelerationStatus) -> Self
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.
sourcepub fn set_acceleration_status(self, input: Option<AccelerationStatus>) -> Self
pub fn set_acceleration_status(self, input: Option<AccelerationStatus>) -> Self
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.
sourcepub fn get_acceleration_status(&self) -> &Option<AccelerationStatus>
pub fn get_acceleration_status(&self) -> &Option<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.
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
An identifier for this resource that is unique within all of AWS.
sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
An identifier for this resource that is unique within all of AWS.
sourcepub fn get_arn(&self) -> &Option<String>
pub fn get_arn(&self) -> &Option<String>
An identifier for this resource that is unique within all of AWS.
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.
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.
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.
sourcepub fn client_request_token(self, input: impl Into<String>) -> Self
pub fn client_request_token(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_client_request_token(self, input: Option<String>) -> Self
pub fn set_client_request_token(self, input: Option<String>) -> Self
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.
sourcepub fn get_client_request_token(&self) -> &Option<String>
pub fn get_client_request_token(&self) -> &Option<String>
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.
sourcepub fn created_at(self, input: DateTime) -> Self
pub fn created_at(self, input: DateTime) -> Self
The time, in Unix epoch format in seconds, when the job got created.
sourcepub fn set_created_at(self, input: Option<DateTime>) -> Self
pub fn set_created_at(self, input: Option<DateTime>) -> Self
The time, in Unix epoch format in seconds, when the job got created.
sourcepub fn get_created_at(&self) -> &Option<DateTime>
pub fn get_created_at(&self) -> &Option<DateTime>
The time, in Unix epoch format in seconds, when the job got created.
sourcepub fn current_phase(self, input: JobPhase) -> Self
pub fn current_phase(self, input: JobPhase) -> Self
A job’s phase can be PROBING, TRANSCODING OR UPLOADING
sourcepub fn set_current_phase(self, input: Option<JobPhase>) -> Self
pub fn set_current_phase(self, input: Option<JobPhase>) -> Self
A job’s phase can be PROBING, TRANSCODING OR UPLOADING
sourcepub fn get_current_phase(&self) -> &Option<JobPhase>
pub fn get_current_phase(&self) -> &Option<JobPhase>
A job’s phase can be PROBING, TRANSCODING OR UPLOADING
sourcepub fn error_code(self, input: i32) -> Self
pub fn error_code(self, input: i32) -> Self
Error code for the job
sourcepub fn set_error_code(self, input: Option<i32>) -> Self
pub fn set_error_code(self, input: Option<i32>) -> Self
Error code for the job
sourcepub fn get_error_code(&self) -> &Option<i32>
pub fn get_error_code(&self) -> &Option<i32>
Error code for the job
sourcepub fn error_message(self, input: impl Into<String>) -> Self
pub fn error_message(self, input: impl Into<String>) -> Self
Error message of Job
sourcepub fn set_error_message(self, input: Option<String>) -> Self
pub fn set_error_message(self, input: Option<String>) -> Self
Error message of Job
sourcepub fn get_error_message(&self) -> &Option<String>
pub fn get_error_message(&self) -> &Option<String>
Error message of Job
sourcepub fn hop_destinations(self, input: HopDestination) -> Self
pub fn hop_destinations(self, input: HopDestination) -> Self
Appends an item to hop_destinations
.
To override the contents of this collection use set_hop_destinations
.
Optional list of hop destinations.
sourcepub fn set_hop_destinations(self, input: Option<Vec<HopDestination>>) -> Self
pub fn set_hop_destinations(self, input: Option<Vec<HopDestination>>) -> Self
Optional list of hop destinations.
sourcepub fn get_hop_destinations(&self) -> &Option<Vec<HopDestination>>
pub fn get_hop_destinations(&self) -> &Option<Vec<HopDestination>>
Optional list of hop destinations.
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
A portion of the job’s ARN, unique within your AWS Elemental MediaConvert resources
sourcepub fn set_id(self, input: Option<String>) -> Self
pub fn set_id(self, input: Option<String>) -> Self
A portion of the job’s ARN, unique within your AWS Elemental MediaConvert resources
sourcepub fn get_id(&self) -> &Option<String>
pub fn get_id(&self) -> &Option<String>
A portion of the job’s ARN, unique within your AWS Elemental MediaConvert resources
sourcepub fn job_percent_complete(self, input: i32) -> Self
pub fn job_percent_complete(self, input: i32) -> Self
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.
sourcepub fn set_job_percent_complete(self, input: Option<i32>) -> Self
pub fn set_job_percent_complete(self, input: Option<i32>) -> Self
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.
sourcepub fn get_job_percent_complete(&self) -> &Option<i32>
pub fn get_job_percent_complete(&self) -> &Option<i32>
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.
sourcepub fn job_template(self, input: impl Into<String>) -> Self
pub fn job_template(self, input: impl Into<String>) -> Self
The job template that the job is created from, if it is created from a job template.
sourcepub fn set_job_template(self, input: Option<String>) -> Self
pub fn set_job_template(self, input: Option<String>) -> Self
The job template that the job is created from, if it is created from a job template.
sourcepub fn get_job_template(&self) -> &Option<String>
pub fn get_job_template(&self) -> &Option<String>
The job template that the job is created from, if it is created from a job template.
sourcepub fn messages(self, input: JobMessages) -> Self
pub fn messages(self, input: JobMessages) -> Self
Provides messages from the service about jobs that you have already successfully submitted.
sourcepub fn set_messages(self, input: Option<JobMessages>) -> Self
pub fn set_messages(self, input: Option<JobMessages>) -> Self
Provides messages from the service about jobs that you have already successfully submitted.
sourcepub fn get_messages(&self) -> &Option<JobMessages>
pub fn get_messages(&self) -> &Option<JobMessages>
Provides messages from the service about jobs that you have already successfully submitted.
sourcepub fn output_group_details(self, input: OutputGroupDetail) -> Self
pub fn output_group_details(self, input: OutputGroupDetail) -> Self
Appends an item to output_group_details
.
To override the contents of this collection use set_output_group_details
.
List of output group details
sourcepub fn set_output_group_details(
self,
input: Option<Vec<OutputGroupDetail>>
) -> Self
pub fn set_output_group_details( self, input: Option<Vec<OutputGroupDetail>> ) -> Self
List of output group details
sourcepub fn get_output_group_details(&self) -> &Option<Vec<OutputGroupDetail>>
pub fn get_output_group_details(&self) -> &Option<Vec<OutputGroupDetail>>
List of output group details
sourcepub fn set_priority(self, input: Option<i32>) -> Self
pub fn set_priority(self, input: Option<i32>) -> Self
Relative priority on the job.
sourcepub fn get_priority(&self) -> &Option<i32>
pub fn get_priority(&self) -> &Option<i32>
Relative priority on the job.
sourcepub fn queue(self, input: impl Into<String>) -> Self
pub fn queue(self, input: impl Into<String>) -> Self
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
sourcepub fn set_queue(self, input: Option<String>) -> Self
pub fn set_queue(self, input: Option<String>) -> Self
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
sourcepub fn get_queue(&self) -> &Option<String>
pub fn get_queue(&self) -> &Option<String>
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
sourcepub fn queue_transitions(self, input: QueueTransition) -> Self
pub fn queue_transitions(self, input: QueueTransition) -> Self
Appends an item to queue_transitions
.
To override the contents of this collection use set_queue_transitions
.
The job’s queue hopping history.
sourcepub fn set_queue_transitions(self, input: Option<Vec<QueueTransition>>) -> Self
pub fn set_queue_transitions(self, input: Option<Vec<QueueTransition>>) -> Self
The job’s queue hopping history.
sourcepub fn get_queue_transitions(&self) -> &Option<Vec<QueueTransition>>
pub fn get_queue_transitions(&self) -> &Option<Vec<QueueTransition>>
The job’s queue hopping history.
sourcepub fn retry_count(self, input: i32) -> Self
pub fn retry_count(self, input: i32) -> Self
The number of times that the service automatically attempted to process your job after encountering an error.
sourcepub fn set_retry_count(self, input: Option<i32>) -> Self
pub fn set_retry_count(self, input: Option<i32>) -> Self
The number of times that the service automatically attempted to process your job after encountering an error.
sourcepub fn get_retry_count(&self) -> &Option<i32>
pub fn get_retry_count(&self) -> &Option<i32>
The number of times that the service automatically attempted to process your job after encountering an error.
sourcepub fn role(self, input: impl Into<String>) -> Self
pub fn role(self, input: impl Into<String>) -> Self
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 This field is required.
sourcepub fn set_role(self, input: Option<String>) -> Self
pub fn set_role(self, input: Option<String>) -> Self
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
sourcepub fn get_role(&self) -> &Option<String>
pub fn get_role(&self) -> &Option<String>
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
sourcepub fn settings(self, input: JobSettings) -> Self
pub fn settings(self, input: JobSettings) -> Self
JobSettings contains all the transcode settings for a job. This field is required.
sourcepub fn set_settings(self, input: Option<JobSettings>) -> Self
pub fn set_settings(self, input: Option<JobSettings>) -> Self
JobSettings contains all the transcode settings for a job.
sourcepub fn get_settings(&self) -> &Option<JobSettings>
pub fn get_settings(&self) -> &Option<JobSettings>
JobSettings contains all the transcode settings for a job.
sourcepub fn simulate_reserved_queue(self, input: SimulateReservedQueue) -> Self
pub fn simulate_reserved_queue(self, input: SimulateReservedQueue) -> Self
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.
sourcepub fn set_simulate_reserved_queue(
self,
input: Option<SimulateReservedQueue>
) -> Self
pub fn set_simulate_reserved_queue( self, input: Option<SimulateReservedQueue> ) -> Self
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.
sourcepub fn get_simulate_reserved_queue(&self) -> &Option<SimulateReservedQueue>
pub fn get_simulate_reserved_queue(&self) -> &Option<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.
sourcepub fn status(self, input: JobStatus) -> Self
pub fn status(self, input: JobStatus) -> Self
A job’s status can be SUBMITTED, PROGRESSING, COMPLETE, CANCELED, or ERROR.
sourcepub fn set_status(self, input: Option<JobStatus>) -> Self
pub fn set_status(self, input: Option<JobStatus>) -> Self
A job’s status can be SUBMITTED, PROGRESSING, COMPLETE, CANCELED, or ERROR.
sourcepub fn get_status(&self) -> &Option<JobStatus>
pub fn get_status(&self) -> &Option<JobStatus>
A job’s status can be SUBMITTED, PROGRESSING, COMPLETE, CANCELED, or ERROR.
sourcepub fn status_update_interval(self, input: StatusUpdateInterval) -> Self
pub fn status_update_interval(self, input: StatusUpdateInterval) -> Self
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.
sourcepub fn set_status_update_interval(
self,
input: Option<StatusUpdateInterval>
) -> Self
pub fn set_status_update_interval( self, input: Option<StatusUpdateInterval> ) -> Self
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.
sourcepub fn get_status_update_interval(&self) -> &Option<StatusUpdateInterval>
pub fn get_status_update_interval(&self) -> &Option<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.
sourcepub fn timing(self, input: Timing) -> Self
pub fn timing(self, input: Timing) -> Self
Information about when jobs are submitted, started, and finished is specified in Unix epoch format in seconds.
sourcepub fn set_timing(self, input: Option<Timing>) -> Self
pub fn set_timing(self, input: Option<Timing>) -> Self
Information about when jobs are submitted, started, and finished is specified in Unix epoch format in seconds.
sourcepub fn get_timing(&self) -> &Option<Timing>
pub fn get_timing(&self) -> &Option<Timing>
Information about when jobs are submitted, started, and finished is specified in Unix epoch format in seconds.
sourcepub fn user_metadata(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn user_metadata(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to user_metadata
.
To override the contents of this collection use set_user_metadata
.
User-defined metadata that you want to associate with an MediaConvert job. You specify metadata in key/value pairs.
sourcepub fn set_user_metadata(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_user_metadata(self, input: Option<HashMap<String, String>>) -> Self
User-defined metadata that you want to associate with an MediaConvert job. You specify metadata in key/value pairs.
sourcepub fn get_user_metadata(&self) -> &Option<HashMap<String, String>>
pub fn get_user_metadata(&self) -> &Option<HashMap<String, String>>
User-defined metadata that you want to associate with an MediaConvert job. You specify metadata in key/value pairs.
sourcepub fn warnings(self, input: WarningGroup) -> Self
pub fn warnings(self, input: WarningGroup) -> Self
Appends an item to warnings
.
To override the contents of this collection use set_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
sourcepub fn set_warnings(self, input: Option<Vec<WarningGroup>>) -> Self
pub fn set_warnings(self, input: Option<Vec<WarningGroup>>) -> Self
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
sourcepub fn get_warnings(&self) -> &Option<Vec<WarningGroup>>
pub fn get_warnings(&self) -> &Option<Vec<WarningGroup>>
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
Trait Implementations§
source§impl Clone for JobBuilder
impl Clone for JobBuilder
source§fn clone(&self) -> JobBuilder
fn clone(&self) -> JobBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for JobBuilder
impl Debug for JobBuilder
source§impl Default for JobBuilder
impl Default for JobBuilder
source§fn default() -> JobBuilder
fn default() -> JobBuilder
source§impl PartialEq for JobBuilder
impl PartialEq for JobBuilder
source§fn eq(&self, other: &JobBuilder) -> bool
fn eq(&self, other: &JobBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for JobBuilder
Auto Trait Implementations§
impl Freeze for JobBuilder
impl RefUnwindSafe for JobBuilder
impl Send for JobBuilder
impl Sync for JobBuilder
impl Unpin for JobBuilder
impl UnwindSafe for JobBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more