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

source

pub fn acceleration_settings(self, input: AccelerationSettings) -> Self

Accelerated transcoding can significantly speed up jobs with long, visually complex content.

source

pub fn set_acceleration_settings( self, input: Option<AccelerationSettings> ) -> Self

Accelerated transcoding can significantly speed up jobs with long, visually complex content.

source

pub fn get_acceleration_settings(&self) -> &Option<AccelerationSettings>

Accelerated transcoding can significantly speed up jobs with long, visually complex content.

source

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.

source

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.

source

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.

source

pub fn arn(self, input: impl Into<String>) -> Self

An identifier for this resource that is unique within all of AWS.

source

pub fn set_arn(self, input: Option<String>) -> Self

An identifier for this resource that is unique within all of AWS.

source

pub fn get_arn(&self) -> &Option<String>

An identifier for this resource that is unique within all of AWS.

source

pub fn billing_tags_source(self, input: BillingTagsSource) -> Self

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.

source

pub fn set_billing_tags_source(self, input: Option<BillingTagsSource>) -> Self

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.

source

pub fn get_billing_tags_source(&self) -> &Option<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.

source

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.

source

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.

source

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.

source

pub fn created_at(self, input: DateTime) -> Self

The time, in Unix epoch format in seconds, when the job got created.

source

pub fn set_created_at(self, input: Option<DateTime>) -> Self

The time, in Unix epoch format in seconds, when the job got created.

source

pub fn get_created_at(&self) -> &Option<DateTime>

The time, in Unix epoch format in seconds, when the job got created.

source

pub fn current_phase(self, input: JobPhase) -> Self

A job’s phase can be PROBING, TRANSCODING OR UPLOADING

source

pub fn set_current_phase(self, input: Option<JobPhase>) -> Self

A job’s phase can be PROBING, TRANSCODING OR UPLOADING

source

pub fn get_current_phase(&self) -> &Option<JobPhase>

A job’s phase can be PROBING, TRANSCODING OR UPLOADING

source

pub fn error_code(self, input: i32) -> Self

Error code for the job

source

pub fn set_error_code(self, input: Option<i32>) -> Self

Error code for the job

source

pub fn get_error_code(&self) -> &Option<i32>

Error code for the job

source

pub fn error_message(self, input: impl Into<String>) -> Self

Error message of Job

source

pub fn set_error_message(self, input: Option<String>) -> Self

Error message of Job

source

pub fn get_error_message(&self) -> &Option<String>

Error message of Job

source

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.

source

pub fn set_hop_destinations(self, input: Option<Vec<HopDestination>>) -> Self

Optional list of hop destinations.

source

pub fn get_hop_destinations(&self) -> &Option<Vec<HopDestination>>

Optional list of hop destinations.

source

pub fn id(self, input: impl Into<String>) -> Self

A portion of the job’s ARN, unique within your AWS Elemental MediaConvert resources

source

pub fn set_id(self, input: Option<String>) -> Self

A portion of the job’s ARN, unique within your AWS Elemental MediaConvert resources

source

pub fn get_id(&self) -> &Option<String>

A portion of the job’s ARN, unique within your AWS Elemental MediaConvert resources

source

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.

source

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.

source

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.

source

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.

source

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.

source

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.

source

pub fn messages(self, input: JobMessages) -> Self

Provides messages from the service about jobs that you have already successfully submitted.

source

pub fn set_messages(self, input: Option<JobMessages>) -> Self

Provides messages from the service about jobs that you have already successfully submitted.

source

pub fn get_messages(&self) -> &Option<JobMessages>

Provides messages from the service about jobs that you have already successfully submitted.

source

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

source

pub fn set_output_group_details( self, input: Option<Vec<OutputGroupDetail>> ) -> Self

List of output group details

source

pub fn get_output_group_details(&self) -> &Option<Vec<OutputGroupDetail>>

List of output group details

source

pub fn priority(self, input: i32) -> Self

Relative priority on the job.

source

pub fn set_priority(self, input: Option<i32>) -> Self

Relative priority on the job.

source

pub fn get_priority(&self) -> &Option<i32>

Relative priority on the job.

source

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

source

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

source

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

source

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.

source

pub fn set_queue_transitions(self, input: Option<Vec<QueueTransition>>) -> Self

The job’s queue hopping history.

source

pub fn get_queue_transitions(&self) -> &Option<Vec<QueueTransition>>

The job’s queue hopping history.

source

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.

source

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.

source

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.

source

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.

source

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

source

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

source

pub fn settings(self, input: JobSettings) -> Self

JobSettings contains all the transcode settings for a job. This field is required.

source

pub fn set_settings(self, input: Option<JobSettings>) -> Self

JobSettings contains all the transcode settings for a job.

source

pub fn get_settings(&self) -> &Option<JobSettings>

JobSettings contains all the transcode settings for a job.

source

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.

source

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.

source

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.

source

pub fn status(self, input: JobStatus) -> Self

A job’s status can be SUBMITTED, PROGRESSING, COMPLETE, CANCELED, or ERROR.

source

pub fn set_status(self, input: Option<JobStatus>) -> Self

A job’s status can be SUBMITTED, PROGRESSING, COMPLETE, CANCELED, or ERROR.

source

pub fn get_status(&self) -> &Option<JobStatus>

A job’s status can be SUBMITTED, PROGRESSING, COMPLETE, CANCELED, or ERROR.

source

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.

source

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.

source

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.

source

pub fn timing(self, input: Timing) -> Self

Information about when jobs are submitted, started, and finished is specified in Unix epoch format in seconds.

source

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.

source

pub fn get_timing(&self) -> &Option<Timing>

Information about when jobs are submitted, started, and finished is specified in Unix epoch format in seconds.

source

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.

source

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.

source

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.

source

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

source

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

source

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

source

pub fn build(self) -> Job

Consumes the builder and constructs a Job.

Trait Implementations§

source§

impl Clone for JobBuilder

source§

fn clone(&self) -> JobBuilder

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for JobBuilder

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for JobBuilder

source§

fn default() -> JobBuilder

Returns the “default value” for a type. Read more
source§

impl PartialEq for JobBuilder

source§

fn eq(&self, other: &JobBuilder) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for JobBuilder

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more