pub struct CreateJobFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateJob
.
Create a new transcoding job. For information about jobs and job settings, see the User Guide at http://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html
Implementations§
source§impl CreateJobFluentBuilder
impl CreateJobFluentBuilder
sourcepub fn as_input(&self) -> &CreateJobInputBuilder
pub fn as_input(&self) -> &CreateJobInputBuilder
Access the CreateJob as a reference.
sourcepub async fn send(
self
) -> Result<CreateJobOutput, SdkError<CreateJobError, HttpResponse>>
pub async fn send( self ) -> Result<CreateJobOutput, SdkError<CreateJobError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<CreateJobOutput, CreateJobError, Self>
pub fn customize( self ) -> CustomizableOperation<CreateJobOutput, CreateJobError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn acceleration_settings(self, input: AccelerationSettings) -> Self
pub fn acceleration_settings(self, input: AccelerationSettings) -> Self
Optional. Accelerated transcoding can significantly speed up jobs with long, visually complex content. Outputs that use this feature incur pro-tier pricing. For information about feature limitations, see the AWS Elemental MediaConvert User Guide.
sourcepub fn set_acceleration_settings(
self,
input: Option<AccelerationSettings>
) -> Self
pub fn set_acceleration_settings( self, input: Option<AccelerationSettings> ) -> Self
Optional. Accelerated transcoding can significantly speed up jobs with long, visually complex content. Outputs that use this feature incur pro-tier pricing. For information about feature limitations, see the AWS Elemental MediaConvert User Guide.
sourcepub fn get_acceleration_settings(&self) -> &Option<AccelerationSettings>
pub fn get_acceleration_settings(&self) -> &Option<AccelerationSettings>
Optional. Accelerated transcoding can significantly speed up jobs with long, visually complex content. Outputs that use this feature incur pro-tier pricing. For information about feature limitations, see the AWS Elemental MediaConvert User Guide.
Optional. Choose a 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. Any transcoding outputs that don’t have an associated tag will appear in your billing report unsorted. If you don’t choose a valid value for this field, your job outputs will appear on the billing report unsorted.
Optional. Choose a 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. Any transcoding outputs that don’t have an associated tag will appear in your billing report unsorted. If you don’t choose a valid value for this field, your job outputs will appear on the billing report unsorted.
Optional. Choose a 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. Any transcoding outputs that don’t have an associated tag will appear in your billing report unsorted. If you don’t choose a valid value for this field, your job outputs will appear on the billing report unsorted.
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 hop_destinations(self, input: HopDestination) -> Self
pub fn hop_destinations(self, input: HopDestination) -> Self
Appends an item to HopDestinations
.
To override the contents of this collection use set_hop_destinations
.
Optional. Use queue hopping to avoid overly long waits in the backlog of the queue that you submit your job to. Specify an alternate queue and the maximum time that your job will wait in the initial queue before hopping. For more information about this feature, see the AWS Elemental MediaConvert User Guide.
sourcepub fn set_hop_destinations(self, input: Option<Vec<HopDestination>>) -> Self
pub fn set_hop_destinations(self, input: Option<Vec<HopDestination>>) -> Self
Optional. Use queue hopping to avoid overly long waits in the backlog of the queue that you submit your job to. Specify an alternate queue and the maximum time that your job will wait in the initial queue before hopping. For more information about this feature, see the AWS Elemental MediaConvert User Guide.
sourcepub fn get_hop_destinations(&self) -> &Option<Vec<HopDestination>>
pub fn get_hop_destinations(&self) -> &Option<Vec<HopDestination>>
Optional. Use queue hopping to avoid overly long waits in the backlog of the queue that you submit your job to. Specify an alternate queue and the maximum time that your job will wait in the initial queue before hopping. For more information about this feature, see the AWS Elemental MediaConvert User Guide.
sourcepub fn job_template(self, input: impl Into<String>) -> Self
pub fn job_template(self, input: impl Into<String>) -> Self
Optional. When you create a job, you can either specify a job template or specify the transcoding settings individually.
sourcepub fn set_job_template(self, input: Option<String>) -> Self
pub fn set_job_template(self, input: Option<String>) -> Self
Optional. When you create a job, you can either specify a job template or specify the transcoding settings individually.
sourcepub fn get_job_template(&self) -> &Option<String>
pub fn get_job_template(&self) -> &Option<String>
Optional. When you create a job, you can either specify a job template or specify the transcoding settings individually.
sourcepub fn priority(self, input: i32) -> Self
pub fn priority(self, input: i32) -> Self
Optional. Specify the relative priority for this job. In any given queue, the service begins processing the job with the highest value first. When more than one job has the same priority, the service begins processing the job that you submitted first. If you don’t specify a priority, the service uses the default value 0.
sourcepub fn set_priority(self, input: Option<i32>) -> Self
pub fn set_priority(self, input: Option<i32>) -> Self
Optional. Specify the relative priority for this job. In any given queue, the service begins processing the job with the highest value first. When more than one job has the same priority, the service begins processing the job that you submitted first. If you don’t specify a priority, the service uses the default value 0.
sourcepub fn get_priority(&self) -> &Option<i32>
pub fn get_priority(&self) -> &Option<i32>
Optional. Specify the relative priority for this job. In any given queue, the service begins processing the job with the highest value first. When more than one job has the same priority, the service begins processing the job that you submitted first. If you don’t specify a priority, the service uses the default value 0.
sourcepub fn queue(self, input: impl Into<String>) -> Self
pub fn queue(self, input: impl Into<String>) -> Self
Optional. 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
Optional. 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>
Optional. 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 role(self, input: impl Into<String>) -> Self
pub fn role(self, input: impl Into<String>) -> Self
Required. 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 set_role(self, input: Option<String>) -> Self
pub fn set_role(self, input: Option<String>) -> Self
Required. 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>
Required. 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.
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
Optional. 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
Optional. 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>
Optional. 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_update_interval(self, input: StatusUpdateInterval) -> Self
pub fn status_update_interval(self, input: StatusUpdateInterval) -> Self
Optional. 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
Optional. 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>
Optional. 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.
Adds a key-value pair to Tags
.
To override the contents of this collection use set_tags
.
Optional. The tags that you want to add to the resource. You can tag resources with a key-value pair or with only a key. Use standard AWS tags on your job for automatic integration with AWS services and for custom integrations and workflows.
Optional. The tags that you want to add to the resource. You can tag resources with a key-value pair or with only a key. Use standard AWS tags on your job for automatic integration with AWS services and for custom integrations and workflows.
Optional. The tags that you want to add to the resource. You can tag resources with a key-value pair or with only a key. Use standard AWS tags on your job for automatic integration with AWS services and for custom integrations and workflows.
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 UserMetadata
.
To override the contents of this collection use set_user_metadata
.
Optional. User-defined metadata that you want to associate with an MediaConvert job. You specify metadata in key/value pairs. Use only for existing integrations or workflows that rely on job metadata tags. Otherwise, we recommend that you use standard AWS tags.
sourcepub fn set_user_metadata(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_user_metadata(self, input: Option<HashMap<String, String>>) -> Self
Optional. User-defined metadata that you want to associate with an MediaConvert job. You specify metadata in key/value pairs. Use only for existing integrations or workflows that rely on job metadata tags. Otherwise, we recommend that you use standard AWS tags.
sourcepub fn get_user_metadata(&self) -> &Option<HashMap<String, String>>
pub fn get_user_metadata(&self) -> &Option<HashMap<String, String>>
Optional. User-defined metadata that you want to associate with an MediaConvert job. You specify metadata in key/value pairs. Use only for existing integrations or workflows that rely on job metadata tags. Otherwise, we recommend that you use standard AWS tags.
Trait Implementations§
source§impl Clone for CreateJobFluentBuilder
impl Clone for CreateJobFluentBuilder
source§fn clone(&self) -> CreateJobFluentBuilder
fn clone(&self) -> CreateJobFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for CreateJobFluentBuilder
impl !RefUnwindSafe for CreateJobFluentBuilder
impl Send for CreateJobFluentBuilder
impl Sync for CreateJobFluentBuilder
impl Unpin for CreateJobFluentBuilder
impl !UnwindSafe for CreateJobFluentBuilder
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