// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[derive(Debug)]
pub(crate) struct Handle {
pub(crate) client: aws_smithy_client::Client<
aws_smithy_client::erase::DynConnector,
aws_smithy_client::erase::DynMiddleware<aws_smithy_client::erase::DynConnector>,
>,
pub(crate) conf: crate::Config,
}
/// Client for AWS Elemental MediaConvert
///
/// Client for invoking operations on AWS Elemental MediaConvert. Each operation on AWS Elemental MediaConvert is a method on this
/// this struct. `.send()` MUST be invoked on the generated operations to dispatch the request to the service.
///
/// # Examples
/// **Constructing a client and invoking an operation**
/// ```rust,no_run
/// # async fn docs() {
/// // create a shared configuration. This can be used & shared between multiple service clients.
/// let shared_config = aws_config::load_from_env().await;
/// let client = aws_sdk_mediaconvert::Client::new(&shared_config);
/// // invoke an operation
/// /* let rsp = client
/// .<operation_name>().
/// .<param>("some value")
/// .send().await; */
/// # }
/// ```
/// **Constructing a client with custom configuration**
/// ```rust,no_run
/// use aws_config::RetryConfig;
/// # async fn docs() {
/// let shared_config = aws_config::load_from_env().await;
/// let config = aws_sdk_mediaconvert::config::Builder::from(&shared_config)
/// .retry_config(RetryConfig::disabled())
/// .build();
/// let client = aws_sdk_mediaconvert::Client::from_conf(config);
/// # }
#[derive(std::fmt::Debug)]
pub struct Client {
handle: std::sync::Arc<Handle>,
}
impl std::clone::Clone for Client {
fn clone(&self) -> Self {
Self {
handle: self.handle.clone(),
}
}
}
#[doc(inline)]
pub use aws_smithy_client::Builder;
impl
From<
aws_smithy_client::Client<
aws_smithy_client::erase::DynConnector,
aws_smithy_client::erase::DynMiddleware<aws_smithy_client::erase::DynConnector>,
>,
> for Client
{
fn from(
client: aws_smithy_client::Client<
aws_smithy_client::erase::DynConnector,
aws_smithy_client::erase::DynMiddleware<aws_smithy_client::erase::DynConnector>,
>,
) -> Self {
Self::with_config(client, crate::Config::builder().build())
}
}
impl Client {
/// Creates a client with the given service configuration.
pub fn with_config(
client: aws_smithy_client::Client<
aws_smithy_client::erase::DynConnector,
aws_smithy_client::erase::DynMiddleware<aws_smithy_client::erase::DynConnector>,
>,
conf: crate::Config,
) -> Self {
Self {
handle: std::sync::Arc::new(Handle { client, conf }),
}
}
/// Returns the client's configuration.
pub fn conf(&self) -> &crate::Config {
&self.handle.conf
}
}
impl Client {
/// Constructs a fluent builder for the [`AssociateCertificate`](crate::client::fluent_builders::AssociateCertificate) operation.
///
/// - The fluent builder is configurable:
/// - [`arn(impl Into<String>)`](crate::client::fluent_builders::AssociateCertificate::arn) / [`set_arn(Option<String>)`](crate::client::fluent_builders::AssociateCertificate::set_arn): The ARN of the ACM certificate that you want to associate with your MediaConvert resource.
/// - On success, responds with [`AssociateCertificateOutput`](crate::output::AssociateCertificateOutput)
/// - On failure, responds with [`SdkError<AssociateCertificateError>`](crate::error::AssociateCertificateError)
pub fn associate_certificate(&self) -> fluent_builders::AssociateCertificate {
fluent_builders::AssociateCertificate::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`CancelJob`](crate::client::fluent_builders::CancelJob) operation.
///
/// - The fluent builder is configurable:
/// - [`id(impl Into<String>)`](crate::client::fluent_builders::CancelJob::id) / [`set_id(Option<String>)`](crate::client::fluent_builders::CancelJob::set_id): The Job ID of the job to be cancelled.
/// - On success, responds with [`CancelJobOutput`](crate::output::CancelJobOutput)
/// - On failure, responds with [`SdkError<CancelJobError>`](crate::error::CancelJobError)
pub fn cancel_job(&self) -> fluent_builders::CancelJob {
fluent_builders::CancelJob::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`CreateJob`](crate::client::fluent_builders::CreateJob) operation.
///
/// - The fluent builder is configurable:
/// - [`acceleration_settings(AccelerationSettings)`](crate::client::fluent_builders::CreateJob::acceleration_settings) / [`set_acceleration_settings(Option<AccelerationSettings>)`](crate::client::fluent_builders::CreateJob::set_acceleration_settings): 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.
/// - [`billing_tags_source(BillingTagsSource)`](crate::client::fluent_builders::CreateJob::billing_tags_source) / [`set_billing_tags_source(Option<BillingTagsSource>)`](crate::client::fluent_builders::CreateJob::set_billing_tags_source): 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.
/// - [`client_request_token(impl Into<String>)`](crate::client::fluent_builders::CreateJob::client_request_token) / [`set_client_request_token(Option<String>)`](crate::client::fluent_builders::CreateJob::set_client_request_token): Optional. Idempotency token for CreateJob operation.
/// - [`hop_destinations(Vec<HopDestination>)`](crate::client::fluent_builders::CreateJob::hop_destinations) / [`set_hop_destinations(Option<Vec<HopDestination>>)`](crate::client::fluent_builders::CreateJob::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.
/// - [`job_template(impl Into<String>)`](crate::client::fluent_builders::CreateJob::job_template) / [`set_job_template(Option<String>)`](crate::client::fluent_builders::CreateJob::set_job_template): Optional. When you create a job, you can either specify a job template or specify the transcoding settings individually.
/// - [`priority(i32)`](crate::client::fluent_builders::CreateJob::priority) / [`set_priority(i32)`](crate::client::fluent_builders::CreateJob::set_priority): 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.
/// - [`queue(impl Into<String>)`](crate::client::fluent_builders::CreateJob::queue) / [`set_queue(Option<String>)`](crate::client::fluent_builders::CreateJob::set_queue): 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.
/// - [`role(impl Into<String>)`](crate::client::fluent_builders::CreateJob::role) / [`set_role(Option<String>)`](crate::client::fluent_builders::CreateJob::set_role): 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.
/// - [`settings(JobSettings)`](crate::client::fluent_builders::CreateJob::settings) / [`set_settings(Option<JobSettings>)`](crate::client::fluent_builders::CreateJob::set_settings): JobSettings contains all the transcode settings for a job.
/// - [`simulate_reserved_queue(SimulateReservedQueue)`](crate::client::fluent_builders::CreateJob::simulate_reserved_queue) / [`set_simulate_reserved_queue(Option<SimulateReservedQueue>)`](crate::client::fluent_builders::CreateJob::set_simulate_reserved_queue): 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.
/// - [`status_update_interval(StatusUpdateInterval)`](crate::client::fluent_builders::CreateJob::status_update_interval) / [`set_status_update_interval(Option<StatusUpdateInterval>)`](crate::client::fluent_builders::CreateJob::set_status_update_interval): 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.
/// - [`tags(HashMap<String, String>)`](crate::client::fluent_builders::CreateJob::tags) / [`set_tags(Option<HashMap<String, String>>)`](crate::client::fluent_builders::CreateJob::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.
/// - [`user_metadata(HashMap<String, String>)`](crate::client::fluent_builders::CreateJob::user_metadata) / [`set_user_metadata(Option<HashMap<String, String>>)`](crate::client::fluent_builders::CreateJob::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.
/// - On success, responds with [`CreateJobOutput`](crate::output::CreateJobOutput) with field(s):
/// - [`job(Option<Job>)`](crate::output::CreateJobOutput::job): Each job converts an input file into an output file or files. For more information, see the User Guide at https://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html
/// - On failure, responds with [`SdkError<CreateJobError>`](crate::error::CreateJobError)
pub fn create_job(&self) -> fluent_builders::CreateJob {
fluent_builders::CreateJob::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`CreateJobTemplate`](crate::client::fluent_builders::CreateJobTemplate) operation.
///
/// - The fluent builder is configurable:
/// - [`acceleration_settings(AccelerationSettings)`](crate::client::fluent_builders::CreateJobTemplate::acceleration_settings) / [`set_acceleration_settings(Option<AccelerationSettings>)`](crate::client::fluent_builders::CreateJobTemplate::set_acceleration_settings): 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.
/// - [`category(impl Into<String>)`](crate::client::fluent_builders::CreateJobTemplate::category) / [`set_category(Option<String>)`](crate::client::fluent_builders::CreateJobTemplate::set_category): Optional. A category for the job template you are creating
/// - [`description(impl Into<String>)`](crate::client::fluent_builders::CreateJobTemplate::description) / [`set_description(Option<String>)`](crate::client::fluent_builders::CreateJobTemplate::set_description): Optional. A description of the job template you are creating.
/// - [`hop_destinations(Vec<HopDestination>)`](crate::client::fluent_builders::CreateJobTemplate::hop_destinations) / [`set_hop_destinations(Option<Vec<HopDestination>>)`](crate::client::fluent_builders::CreateJobTemplate::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.
/// - [`name(impl Into<String>)`](crate::client::fluent_builders::CreateJobTemplate::name) / [`set_name(Option<String>)`](crate::client::fluent_builders::CreateJobTemplate::set_name): The name of the job template you are creating.
/// - [`priority(i32)`](crate::client::fluent_builders::CreateJobTemplate::priority) / [`set_priority(i32)`](crate::client::fluent_builders::CreateJobTemplate::set_priority): 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.
/// - [`queue(impl Into<String>)`](crate::client::fluent_builders::CreateJobTemplate::queue) / [`set_queue(Option<String>)`](crate::client::fluent_builders::CreateJobTemplate::set_queue): Optional. The queue that jobs created from this template are assigned to. If you don't specify this, jobs will go to the default queue.
/// - [`settings(JobTemplateSettings)`](crate::client::fluent_builders::CreateJobTemplate::settings) / [`set_settings(Option<JobTemplateSettings>)`](crate::client::fluent_builders::CreateJobTemplate::set_settings): JobTemplateSettings contains all the transcode settings saved in the template that will be applied to jobs created from it.
/// - [`status_update_interval(StatusUpdateInterval)`](crate::client::fluent_builders::CreateJobTemplate::status_update_interval) / [`set_status_update_interval(Option<StatusUpdateInterval>)`](crate::client::fluent_builders::CreateJobTemplate::set_status_update_interval): 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.
/// - [`tags(HashMap<String, String>)`](crate::client::fluent_builders::CreateJobTemplate::tags) / [`set_tags(Option<HashMap<String, String>>)`](crate::client::fluent_builders::CreateJobTemplate::set_tags): The tags that you want to add to the resource. You can tag resources with a key-value pair or with only a key.
/// - On success, responds with [`CreateJobTemplateOutput`](crate::output::CreateJobTemplateOutput) with field(s):
/// - [`job_template(Option<JobTemplate>)`](crate::output::CreateJobTemplateOutput::job_template): A job template is a pre-made set of encoding instructions that you can use to quickly create a job.
/// - On failure, responds with [`SdkError<CreateJobTemplateError>`](crate::error::CreateJobTemplateError)
pub fn create_job_template(&self) -> fluent_builders::CreateJobTemplate {
fluent_builders::CreateJobTemplate::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`CreatePreset`](crate::client::fluent_builders::CreatePreset) operation.
///
/// - The fluent builder is configurable:
/// - [`category(impl Into<String>)`](crate::client::fluent_builders::CreatePreset::category) / [`set_category(Option<String>)`](crate::client::fluent_builders::CreatePreset::set_category): Optional. A category for the preset you are creating.
/// - [`description(impl Into<String>)`](crate::client::fluent_builders::CreatePreset::description) / [`set_description(Option<String>)`](crate::client::fluent_builders::CreatePreset::set_description): Optional. A description of the preset you are creating.
/// - [`name(impl Into<String>)`](crate::client::fluent_builders::CreatePreset::name) / [`set_name(Option<String>)`](crate::client::fluent_builders::CreatePreset::set_name): The name of the preset you are creating.
/// - [`settings(PresetSettings)`](crate::client::fluent_builders::CreatePreset::settings) / [`set_settings(Option<PresetSettings>)`](crate::client::fluent_builders::CreatePreset::set_settings): Settings for preset
/// - [`tags(HashMap<String, String>)`](crate::client::fluent_builders::CreatePreset::tags) / [`set_tags(Option<HashMap<String, String>>)`](crate::client::fluent_builders::CreatePreset::set_tags): The tags that you want to add to the resource. You can tag resources with a key-value pair or with only a key.
/// - On success, responds with [`CreatePresetOutput`](crate::output::CreatePresetOutput) with field(s):
/// - [`preset(Option<Preset>)`](crate::output::CreatePresetOutput::preset): A preset is a collection of preconfigured media conversion settings that you want MediaConvert to apply to the output during the conversion process.
/// - On failure, responds with [`SdkError<CreatePresetError>`](crate::error::CreatePresetError)
pub fn create_preset(&self) -> fluent_builders::CreatePreset {
fluent_builders::CreatePreset::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`CreateQueue`](crate::client::fluent_builders::CreateQueue) operation.
///
/// - The fluent builder is configurable:
/// - [`description(impl Into<String>)`](crate::client::fluent_builders::CreateQueue::description) / [`set_description(Option<String>)`](crate::client::fluent_builders::CreateQueue::set_description): Optional. A description of the queue that you are creating.
/// - [`name(impl Into<String>)`](crate::client::fluent_builders::CreateQueue::name) / [`set_name(Option<String>)`](crate::client::fluent_builders::CreateQueue::set_name): The name of the queue that you are creating.
/// - [`pricing_plan(PricingPlan)`](crate::client::fluent_builders::CreateQueue::pricing_plan) / [`set_pricing_plan(Option<PricingPlan>)`](crate::client::fluent_builders::CreateQueue::set_pricing_plan): Specifies whether the pricing plan for the queue is on-demand or reserved. For on-demand, you pay per minute, billed in increments of .01 minute. For reserved, you pay for the transcoding capacity of the entire queue, regardless of how much or how little you use it. Reserved pricing requires a 12-month commitment. When you use the API to create a queue, the default is on-demand.
/// - [`reservation_plan_settings(ReservationPlanSettings)`](crate::client::fluent_builders::CreateQueue::reservation_plan_settings) / [`set_reservation_plan_settings(Option<ReservationPlanSettings>)`](crate::client::fluent_builders::CreateQueue::set_reservation_plan_settings): Details about the pricing plan for your reserved queue. Required for reserved queues and not applicable to on-demand queues.
/// - [`status(QueueStatus)`](crate::client::fluent_builders::CreateQueue::status) / [`set_status(Option<QueueStatus>)`](crate::client::fluent_builders::CreateQueue::set_status): Initial state of the queue. If you create a paused queue, then jobs in that queue won't begin.
/// - [`tags(HashMap<String, String>)`](crate::client::fluent_builders::CreateQueue::tags) / [`set_tags(Option<HashMap<String, String>>)`](crate::client::fluent_builders::CreateQueue::set_tags): The tags that you want to add to the resource. You can tag resources with a key-value pair or with only a key.
/// - On success, responds with [`CreateQueueOutput`](crate::output::CreateQueueOutput) with field(s):
/// - [`queue(Option<Queue>)`](crate::output::CreateQueueOutput::queue): You can use queues to manage the resources that are available to your AWS account for running multiple transcoding jobs at the same time. If you don't specify a queue, the service sends all jobs through the default queue. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/working-with-queues.html.
/// - On failure, responds with [`SdkError<CreateQueueError>`](crate::error::CreateQueueError)
pub fn create_queue(&self) -> fluent_builders::CreateQueue {
fluent_builders::CreateQueue::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DeleteJobTemplate`](crate::client::fluent_builders::DeleteJobTemplate) operation.
///
/// - The fluent builder is configurable:
/// - [`name(impl Into<String>)`](crate::client::fluent_builders::DeleteJobTemplate::name) / [`set_name(Option<String>)`](crate::client::fluent_builders::DeleteJobTemplate::set_name): The name of the job template to be deleted.
/// - On success, responds with [`DeleteJobTemplateOutput`](crate::output::DeleteJobTemplateOutput)
/// - On failure, responds with [`SdkError<DeleteJobTemplateError>`](crate::error::DeleteJobTemplateError)
pub fn delete_job_template(&self) -> fluent_builders::DeleteJobTemplate {
fluent_builders::DeleteJobTemplate::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DeletePolicy`](crate::client::fluent_builders::DeletePolicy) operation.
///
/// - The fluent builder takes no input, just [`send`](crate::client::fluent_builders::DeletePolicy::send) it.
/// - On success, responds with [`DeletePolicyOutput`](crate::output::DeletePolicyOutput)
/// - On failure, responds with [`SdkError<DeletePolicyError>`](crate::error::DeletePolicyError)
pub fn delete_policy(&self) -> fluent_builders::DeletePolicy {
fluent_builders::DeletePolicy::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DeletePreset`](crate::client::fluent_builders::DeletePreset) operation.
///
/// - The fluent builder is configurable:
/// - [`name(impl Into<String>)`](crate::client::fluent_builders::DeletePreset::name) / [`set_name(Option<String>)`](crate::client::fluent_builders::DeletePreset::set_name): The name of the preset to be deleted.
/// - On success, responds with [`DeletePresetOutput`](crate::output::DeletePresetOutput)
/// - On failure, responds with [`SdkError<DeletePresetError>`](crate::error::DeletePresetError)
pub fn delete_preset(&self) -> fluent_builders::DeletePreset {
fluent_builders::DeletePreset::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DeleteQueue`](crate::client::fluent_builders::DeleteQueue) operation.
///
/// - The fluent builder is configurable:
/// - [`name(impl Into<String>)`](crate::client::fluent_builders::DeleteQueue::name) / [`set_name(Option<String>)`](crate::client::fluent_builders::DeleteQueue::set_name): The name of the queue that you want to delete.
/// - On success, responds with [`DeleteQueueOutput`](crate::output::DeleteQueueOutput)
/// - On failure, responds with [`SdkError<DeleteQueueError>`](crate::error::DeleteQueueError)
pub fn delete_queue(&self) -> fluent_builders::DeleteQueue {
fluent_builders::DeleteQueue::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DescribeEndpoints`](crate::client::fluent_builders::DescribeEndpoints) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::client::fluent_builders::DescribeEndpoints::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`max_results(i32)`](crate::client::fluent_builders::DescribeEndpoints::max_results) / [`set_max_results(i32)`](crate::client::fluent_builders::DescribeEndpoints::set_max_results): Optional. Max number of endpoints, up to twenty, that will be returned at one time.
/// - [`mode(DescribeEndpointsMode)`](crate::client::fluent_builders::DescribeEndpoints::mode) / [`set_mode(Option<DescribeEndpointsMode>)`](crate::client::fluent_builders::DescribeEndpoints::set_mode): Optional field, defaults to DEFAULT. Specify DEFAULT for this operation to return your endpoints if any exist, or to create an endpoint for you and return it if one doesn't already exist. Specify GET_ONLY to return your endpoints if any exist, or an empty list if none exist.
/// - [`next_token(impl Into<String>)`](crate::client::fluent_builders::DescribeEndpoints::next_token) / [`set_next_token(Option<String>)`](crate::client::fluent_builders::DescribeEndpoints::set_next_token): Use this string, provided with the response to a previous request, to request the next batch of endpoints.
/// - On success, responds with [`DescribeEndpointsOutput`](crate::output::DescribeEndpointsOutput) with field(s):
/// - [`endpoints(Option<Vec<Endpoint>>)`](crate::output::DescribeEndpointsOutput::endpoints): List of endpoints
/// - [`next_token(Option<String>)`](crate::output::DescribeEndpointsOutput::next_token): Use this string to request the next batch of endpoints.
/// - On failure, responds with [`SdkError<DescribeEndpointsError>`](crate::error::DescribeEndpointsError)
pub fn describe_endpoints(&self) -> fluent_builders::DescribeEndpoints {
fluent_builders::DescribeEndpoints::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DisassociateCertificate`](crate::client::fluent_builders::DisassociateCertificate) operation.
///
/// - The fluent builder is configurable:
/// - [`arn(impl Into<String>)`](crate::client::fluent_builders::DisassociateCertificate::arn) / [`set_arn(Option<String>)`](crate::client::fluent_builders::DisassociateCertificate::set_arn): The ARN of the ACM certificate that you want to disassociate from your MediaConvert resource.
/// - On success, responds with [`DisassociateCertificateOutput`](crate::output::DisassociateCertificateOutput)
/// - On failure, responds with [`SdkError<DisassociateCertificateError>`](crate::error::DisassociateCertificateError)
pub fn disassociate_certificate(&self) -> fluent_builders::DisassociateCertificate {
fluent_builders::DisassociateCertificate::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`GetJob`](crate::client::fluent_builders::GetJob) operation.
///
/// - The fluent builder is configurable:
/// - [`id(impl Into<String>)`](crate::client::fluent_builders::GetJob::id) / [`set_id(Option<String>)`](crate::client::fluent_builders::GetJob::set_id): the job ID of the job.
/// - On success, responds with [`GetJobOutput`](crate::output::GetJobOutput) with field(s):
/// - [`job(Option<Job>)`](crate::output::GetJobOutput::job): Each job converts an input file into an output file or files. For more information, see the User Guide at https://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html
/// - On failure, responds with [`SdkError<GetJobError>`](crate::error::GetJobError)
pub fn get_job(&self) -> fluent_builders::GetJob {
fluent_builders::GetJob::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`GetJobTemplate`](crate::client::fluent_builders::GetJobTemplate) operation.
///
/// - The fluent builder is configurable:
/// - [`name(impl Into<String>)`](crate::client::fluent_builders::GetJobTemplate::name) / [`set_name(Option<String>)`](crate::client::fluent_builders::GetJobTemplate::set_name): The name of the job template.
/// - On success, responds with [`GetJobTemplateOutput`](crate::output::GetJobTemplateOutput) with field(s):
/// - [`job_template(Option<JobTemplate>)`](crate::output::GetJobTemplateOutput::job_template): A job template is a pre-made set of encoding instructions that you can use to quickly create a job.
/// - On failure, responds with [`SdkError<GetJobTemplateError>`](crate::error::GetJobTemplateError)
pub fn get_job_template(&self) -> fluent_builders::GetJobTemplate {
fluent_builders::GetJobTemplate::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`GetPolicy`](crate::client::fluent_builders::GetPolicy) operation.
///
/// - The fluent builder takes no input, just [`send`](crate::client::fluent_builders::GetPolicy::send) it.
/// - On success, responds with [`GetPolicyOutput`](crate::output::GetPolicyOutput) with field(s):
/// - [`policy(Option<Policy>)`](crate::output::GetPolicyOutput::policy): A policy configures behavior that you allow or disallow for your account. For information about MediaConvert policies, see the user guide at http://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html
/// - On failure, responds with [`SdkError<GetPolicyError>`](crate::error::GetPolicyError)
pub fn get_policy(&self) -> fluent_builders::GetPolicy {
fluent_builders::GetPolicy::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`GetPreset`](crate::client::fluent_builders::GetPreset) operation.
///
/// - The fluent builder is configurable:
/// - [`name(impl Into<String>)`](crate::client::fluent_builders::GetPreset::name) / [`set_name(Option<String>)`](crate::client::fluent_builders::GetPreset::set_name): The name of the preset.
/// - On success, responds with [`GetPresetOutput`](crate::output::GetPresetOutput) with field(s):
/// - [`preset(Option<Preset>)`](crate::output::GetPresetOutput::preset): A preset is a collection of preconfigured media conversion settings that you want MediaConvert to apply to the output during the conversion process.
/// - On failure, responds with [`SdkError<GetPresetError>`](crate::error::GetPresetError)
pub fn get_preset(&self) -> fluent_builders::GetPreset {
fluent_builders::GetPreset::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`GetQueue`](crate::client::fluent_builders::GetQueue) operation.
///
/// - The fluent builder is configurable:
/// - [`name(impl Into<String>)`](crate::client::fluent_builders::GetQueue::name) / [`set_name(Option<String>)`](crate::client::fluent_builders::GetQueue::set_name): The name of the queue that you want information about.
/// - On success, responds with [`GetQueueOutput`](crate::output::GetQueueOutput) with field(s):
/// - [`queue(Option<Queue>)`](crate::output::GetQueueOutput::queue): You can use queues to manage the resources that are available to your AWS account for running multiple transcoding jobs at the same time. If you don't specify a queue, the service sends all jobs through the default queue. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/working-with-queues.html.
/// - On failure, responds with [`SdkError<GetQueueError>`](crate::error::GetQueueError)
pub fn get_queue(&self) -> fluent_builders::GetQueue {
fluent_builders::GetQueue::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ListJobs`](crate::client::fluent_builders::ListJobs) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::client::fluent_builders::ListJobs::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`max_results(i32)`](crate::client::fluent_builders::ListJobs::max_results) / [`set_max_results(i32)`](crate::client::fluent_builders::ListJobs::set_max_results): Optional. Number of jobs, up to twenty, that will be returned at one time.
/// - [`next_token(impl Into<String>)`](crate::client::fluent_builders::ListJobs::next_token) / [`set_next_token(Option<String>)`](crate::client::fluent_builders::ListJobs::set_next_token): Optional. Use this string, provided with the response to a previous request, to request the next batch of jobs.
/// - [`order(Order)`](crate::client::fluent_builders::ListJobs::order) / [`set_order(Option<Order>)`](crate::client::fluent_builders::ListJobs::set_order): Optional. When you request lists of resources, you can specify whether they are sorted in ASCENDING or DESCENDING order. Default varies by resource.
/// - [`queue(impl Into<String>)`](crate::client::fluent_builders::ListJobs::queue) / [`set_queue(Option<String>)`](crate::client::fluent_builders::ListJobs::set_queue): Optional. Provide a queue name to get back only jobs from that queue.
/// - [`status(JobStatus)`](crate::client::fluent_builders::ListJobs::status) / [`set_status(Option<JobStatus>)`](crate::client::fluent_builders::ListJobs::set_status): Optional. A job's status can be SUBMITTED, PROGRESSING, COMPLETE, CANCELED, or ERROR.
/// - On success, responds with [`ListJobsOutput`](crate::output::ListJobsOutput) with field(s):
/// - [`jobs(Option<Vec<Job>>)`](crate::output::ListJobsOutput::jobs): List of jobs
/// - [`next_token(Option<String>)`](crate::output::ListJobsOutput::next_token): Use this string to request the next batch of jobs.
/// - On failure, responds with [`SdkError<ListJobsError>`](crate::error::ListJobsError)
pub fn list_jobs(&self) -> fluent_builders::ListJobs {
fluent_builders::ListJobs::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ListJobTemplates`](crate::client::fluent_builders::ListJobTemplates) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::client::fluent_builders::ListJobTemplates::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`category(impl Into<String>)`](crate::client::fluent_builders::ListJobTemplates::category) / [`set_category(Option<String>)`](crate::client::fluent_builders::ListJobTemplates::set_category): Optionally, specify a job template category to limit responses to only job templates from that category.
/// - [`list_by(JobTemplateListBy)`](crate::client::fluent_builders::ListJobTemplates::list_by) / [`set_list_by(Option<JobTemplateListBy>)`](crate::client::fluent_builders::ListJobTemplates::set_list_by): Optional. When you request a list of job templates, you can choose to list them alphabetically by NAME or chronologically by CREATION_DATE. If you don't specify, the service will list them by name.
/// - [`max_results(i32)`](crate::client::fluent_builders::ListJobTemplates::max_results) / [`set_max_results(i32)`](crate::client::fluent_builders::ListJobTemplates::set_max_results): Optional. Number of job templates, up to twenty, that will be returned at one time.
/// - [`next_token(impl Into<String>)`](crate::client::fluent_builders::ListJobTemplates::next_token) / [`set_next_token(Option<String>)`](crate::client::fluent_builders::ListJobTemplates::set_next_token): Use this string, provided with the response to a previous request, to request the next batch of job templates.
/// - [`order(Order)`](crate::client::fluent_builders::ListJobTemplates::order) / [`set_order(Option<Order>)`](crate::client::fluent_builders::ListJobTemplates::set_order): Optional. When you request lists of resources, you can specify whether they are sorted in ASCENDING or DESCENDING order. Default varies by resource.
/// - On success, responds with [`ListJobTemplatesOutput`](crate::output::ListJobTemplatesOutput) with field(s):
/// - [`job_templates(Option<Vec<JobTemplate>>)`](crate::output::ListJobTemplatesOutput::job_templates): List of Job templates.
/// - [`next_token(Option<String>)`](crate::output::ListJobTemplatesOutput::next_token): Use this string to request the next batch of job templates.
/// - On failure, responds with [`SdkError<ListJobTemplatesError>`](crate::error::ListJobTemplatesError)
pub fn list_job_templates(&self) -> fluent_builders::ListJobTemplates {
fluent_builders::ListJobTemplates::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ListPresets`](crate::client::fluent_builders::ListPresets) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::client::fluent_builders::ListPresets::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`category(impl Into<String>)`](crate::client::fluent_builders::ListPresets::category) / [`set_category(Option<String>)`](crate::client::fluent_builders::ListPresets::set_category): Optionally, specify a preset category to limit responses to only presets from that category.
/// - [`list_by(PresetListBy)`](crate::client::fluent_builders::ListPresets::list_by) / [`set_list_by(Option<PresetListBy>)`](crate::client::fluent_builders::ListPresets::set_list_by): Optional. When you request a list of presets, you can choose to list them alphabetically by NAME or chronologically by CREATION_DATE. If you don't specify, the service will list them by name.
/// - [`max_results(i32)`](crate::client::fluent_builders::ListPresets::max_results) / [`set_max_results(i32)`](crate::client::fluent_builders::ListPresets::set_max_results): Optional. Number of presets, up to twenty, that will be returned at one time
/// - [`next_token(impl Into<String>)`](crate::client::fluent_builders::ListPresets::next_token) / [`set_next_token(Option<String>)`](crate::client::fluent_builders::ListPresets::set_next_token): Use this string, provided with the response to a previous request, to request the next batch of presets.
/// - [`order(Order)`](crate::client::fluent_builders::ListPresets::order) / [`set_order(Option<Order>)`](crate::client::fluent_builders::ListPresets::set_order): Optional. When you request lists of resources, you can specify whether they are sorted in ASCENDING or DESCENDING order. Default varies by resource.
/// - On success, responds with [`ListPresetsOutput`](crate::output::ListPresetsOutput) with field(s):
/// - [`next_token(Option<String>)`](crate::output::ListPresetsOutput::next_token): Use this string to request the next batch of presets.
/// - [`presets(Option<Vec<Preset>>)`](crate::output::ListPresetsOutput::presets): List of presets
/// - On failure, responds with [`SdkError<ListPresetsError>`](crate::error::ListPresetsError)
pub fn list_presets(&self) -> fluent_builders::ListPresets {
fluent_builders::ListPresets::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ListQueues`](crate::client::fluent_builders::ListQueues) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::client::fluent_builders::ListQueues::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`list_by(QueueListBy)`](crate::client::fluent_builders::ListQueues::list_by) / [`set_list_by(Option<QueueListBy>)`](crate::client::fluent_builders::ListQueues::set_list_by): Optional. When you request a list of queues, you can choose to list them alphabetically by NAME or chronologically by CREATION_DATE. If you don't specify, the service will list them by creation date.
/// - [`max_results(i32)`](crate::client::fluent_builders::ListQueues::max_results) / [`set_max_results(i32)`](crate::client::fluent_builders::ListQueues::set_max_results): Optional. Number of queues, up to twenty, that will be returned at one time.
/// - [`next_token(impl Into<String>)`](crate::client::fluent_builders::ListQueues::next_token) / [`set_next_token(Option<String>)`](crate::client::fluent_builders::ListQueues::set_next_token): Use this string, provided with the response to a previous request, to request the next batch of queues.
/// - [`order(Order)`](crate::client::fluent_builders::ListQueues::order) / [`set_order(Option<Order>)`](crate::client::fluent_builders::ListQueues::set_order): Optional. When you request lists of resources, you can specify whether they are sorted in ASCENDING or DESCENDING order. Default varies by resource.
/// - On success, responds with [`ListQueuesOutput`](crate::output::ListQueuesOutput) with field(s):
/// - [`next_token(Option<String>)`](crate::output::ListQueuesOutput::next_token): Use this string to request the next batch of queues.
/// - [`queues(Option<Vec<Queue>>)`](crate::output::ListQueuesOutput::queues): List of queues.
/// - On failure, responds with [`SdkError<ListQueuesError>`](crate::error::ListQueuesError)
pub fn list_queues(&self) -> fluent_builders::ListQueues {
fluent_builders::ListQueues::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ListTagsForResource`](crate::client::fluent_builders::ListTagsForResource) operation.
///
/// - The fluent builder is configurable:
/// - [`arn(impl Into<String>)`](crate::client::fluent_builders::ListTagsForResource::arn) / [`set_arn(Option<String>)`](crate::client::fluent_builders::ListTagsForResource::set_arn): The Amazon Resource Name (ARN) of the resource that you want to list tags for. To get the ARN, send a GET request with the resource name.
/// - On success, responds with [`ListTagsForResourceOutput`](crate::output::ListTagsForResourceOutput) with field(s):
/// - [`resource_tags(Option<ResourceTags>)`](crate::output::ListTagsForResourceOutput::resource_tags): The Amazon Resource Name (ARN) and tags for an AWS Elemental MediaConvert resource.
/// - On failure, responds with [`SdkError<ListTagsForResourceError>`](crate::error::ListTagsForResourceError)
pub fn list_tags_for_resource(&self) -> fluent_builders::ListTagsForResource {
fluent_builders::ListTagsForResource::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`PutPolicy`](crate::client::fluent_builders::PutPolicy) operation.
///
/// - The fluent builder is configurable:
/// - [`policy(Policy)`](crate::client::fluent_builders::PutPolicy::policy) / [`set_policy(Option<Policy>)`](crate::client::fluent_builders::PutPolicy::set_policy): A policy configures behavior that you allow or disallow for your account. For information about MediaConvert policies, see the user guide at http://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html
/// - On success, responds with [`PutPolicyOutput`](crate::output::PutPolicyOutput) with field(s):
/// - [`policy(Option<Policy>)`](crate::output::PutPolicyOutput::policy): A policy configures behavior that you allow or disallow for your account. For information about MediaConvert policies, see the user guide at http://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html
/// - On failure, responds with [`SdkError<PutPolicyError>`](crate::error::PutPolicyError)
pub fn put_policy(&self) -> fluent_builders::PutPolicy {
fluent_builders::PutPolicy::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`TagResource`](crate::client::fluent_builders::TagResource) operation.
///
/// - The fluent builder is configurable:
/// - [`arn(impl Into<String>)`](crate::client::fluent_builders::TagResource::arn) / [`set_arn(Option<String>)`](crate::client::fluent_builders::TagResource::set_arn): The Amazon Resource Name (ARN) of the resource that you want to tag. To get the ARN, send a GET request with the resource name.
/// - [`tags(HashMap<String, String>)`](crate::client::fluent_builders::TagResource::tags) / [`set_tags(Option<HashMap<String, String>>)`](crate::client::fluent_builders::TagResource::set_tags): The tags that you want to add to the resource. You can tag resources with a key-value pair or with only a key.
/// - On success, responds with [`TagResourceOutput`](crate::output::TagResourceOutput)
/// - On failure, responds with [`SdkError<TagResourceError>`](crate::error::TagResourceError)
pub fn tag_resource(&self) -> fluent_builders::TagResource {
fluent_builders::TagResource::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`UntagResource`](crate::client::fluent_builders::UntagResource) operation.
///
/// - The fluent builder is configurable:
/// - [`arn(impl Into<String>)`](crate::client::fluent_builders::UntagResource::arn) / [`set_arn(Option<String>)`](crate::client::fluent_builders::UntagResource::set_arn): The Amazon Resource Name (ARN) of the resource that you want to remove tags from. To get the ARN, send a GET request with the resource name.
/// - [`tag_keys(Vec<String>)`](crate::client::fluent_builders::UntagResource::tag_keys) / [`set_tag_keys(Option<Vec<String>>)`](crate::client::fluent_builders::UntagResource::set_tag_keys): The keys of the tags that you want to remove from the resource.
/// - On success, responds with [`UntagResourceOutput`](crate::output::UntagResourceOutput)
/// - On failure, responds with [`SdkError<UntagResourceError>`](crate::error::UntagResourceError)
pub fn untag_resource(&self) -> fluent_builders::UntagResource {
fluent_builders::UntagResource::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`UpdateJobTemplate`](crate::client::fluent_builders::UpdateJobTemplate) operation.
///
/// - The fluent builder is configurable:
/// - [`acceleration_settings(AccelerationSettings)`](crate::client::fluent_builders::UpdateJobTemplate::acceleration_settings) / [`set_acceleration_settings(Option<AccelerationSettings>)`](crate::client::fluent_builders::UpdateJobTemplate::set_acceleration_settings): 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.
/// - [`category(impl Into<String>)`](crate::client::fluent_builders::UpdateJobTemplate::category) / [`set_category(Option<String>)`](crate::client::fluent_builders::UpdateJobTemplate::set_category): The new category for the job template, if you are changing it.
/// - [`description(impl Into<String>)`](crate::client::fluent_builders::UpdateJobTemplate::description) / [`set_description(Option<String>)`](crate::client::fluent_builders::UpdateJobTemplate::set_description): The new description for the job template, if you are changing it.
/// - [`hop_destinations(Vec<HopDestination>)`](crate::client::fluent_builders::UpdateJobTemplate::hop_destinations) / [`set_hop_destinations(Option<Vec<HopDestination>>)`](crate::client::fluent_builders::UpdateJobTemplate::set_hop_destinations): Optional list of hop destinations.
/// - [`name(impl Into<String>)`](crate::client::fluent_builders::UpdateJobTemplate::name) / [`set_name(Option<String>)`](crate::client::fluent_builders::UpdateJobTemplate::set_name): The name of the job template you are modifying
/// - [`priority(i32)`](crate::client::fluent_builders::UpdateJobTemplate::priority) / [`set_priority(i32)`](crate::client::fluent_builders::UpdateJobTemplate::set_priority): 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.
/// - [`queue(impl Into<String>)`](crate::client::fluent_builders::UpdateJobTemplate::queue) / [`set_queue(Option<String>)`](crate::client::fluent_builders::UpdateJobTemplate::set_queue): The new queue for the job template, if you are changing it.
/// - [`settings(JobTemplateSettings)`](crate::client::fluent_builders::UpdateJobTemplate::settings) / [`set_settings(Option<JobTemplateSettings>)`](crate::client::fluent_builders::UpdateJobTemplate::set_settings): JobTemplateSettings contains all the transcode settings saved in the template that will be applied to jobs created from it.
/// - [`status_update_interval(StatusUpdateInterval)`](crate::client::fluent_builders::UpdateJobTemplate::status_update_interval) / [`set_status_update_interval(Option<StatusUpdateInterval>)`](crate::client::fluent_builders::UpdateJobTemplate::set_status_update_interval): 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.
/// - On success, responds with [`UpdateJobTemplateOutput`](crate::output::UpdateJobTemplateOutput) with field(s):
/// - [`job_template(Option<JobTemplate>)`](crate::output::UpdateJobTemplateOutput::job_template): A job template is a pre-made set of encoding instructions that you can use to quickly create a job.
/// - On failure, responds with [`SdkError<UpdateJobTemplateError>`](crate::error::UpdateJobTemplateError)
pub fn update_job_template(&self) -> fluent_builders::UpdateJobTemplate {
fluent_builders::UpdateJobTemplate::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`UpdatePreset`](crate::client::fluent_builders::UpdatePreset) operation.
///
/// - The fluent builder is configurable:
/// - [`category(impl Into<String>)`](crate::client::fluent_builders::UpdatePreset::category) / [`set_category(Option<String>)`](crate::client::fluent_builders::UpdatePreset::set_category): The new category for the preset, if you are changing it.
/// - [`description(impl Into<String>)`](crate::client::fluent_builders::UpdatePreset::description) / [`set_description(Option<String>)`](crate::client::fluent_builders::UpdatePreset::set_description): The new description for the preset, if you are changing it.
/// - [`name(impl Into<String>)`](crate::client::fluent_builders::UpdatePreset::name) / [`set_name(Option<String>)`](crate::client::fluent_builders::UpdatePreset::set_name): The name of the preset you are modifying.
/// - [`settings(PresetSettings)`](crate::client::fluent_builders::UpdatePreset::settings) / [`set_settings(Option<PresetSettings>)`](crate::client::fluent_builders::UpdatePreset::set_settings): Settings for preset
/// - On success, responds with [`UpdatePresetOutput`](crate::output::UpdatePresetOutput) with field(s):
/// - [`preset(Option<Preset>)`](crate::output::UpdatePresetOutput::preset): A preset is a collection of preconfigured media conversion settings that you want MediaConvert to apply to the output during the conversion process.
/// - On failure, responds with [`SdkError<UpdatePresetError>`](crate::error::UpdatePresetError)
pub fn update_preset(&self) -> fluent_builders::UpdatePreset {
fluent_builders::UpdatePreset::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`UpdateQueue`](crate::client::fluent_builders::UpdateQueue) operation.
///
/// - The fluent builder is configurable:
/// - [`description(impl Into<String>)`](crate::client::fluent_builders::UpdateQueue::description) / [`set_description(Option<String>)`](crate::client::fluent_builders::UpdateQueue::set_description): The new description for the queue, if you are changing it.
/// - [`name(impl Into<String>)`](crate::client::fluent_builders::UpdateQueue::name) / [`set_name(Option<String>)`](crate::client::fluent_builders::UpdateQueue::set_name): The name of the queue that you are modifying.
/// - [`reservation_plan_settings(ReservationPlanSettings)`](crate::client::fluent_builders::UpdateQueue::reservation_plan_settings) / [`set_reservation_plan_settings(Option<ReservationPlanSettings>)`](crate::client::fluent_builders::UpdateQueue::set_reservation_plan_settings): The new details of your pricing plan for your reserved queue. When you set up a new pricing plan to replace an expired one, you enter into another 12-month commitment. When you add capacity to your queue by increasing the number of RTS, you extend the term of your commitment to 12 months from when you add capacity. After you make these commitments, you can't cancel them.
/// - [`status(QueueStatus)`](crate::client::fluent_builders::UpdateQueue::status) / [`set_status(Option<QueueStatus>)`](crate::client::fluent_builders::UpdateQueue::set_status): Pause or activate a queue by changing its status between ACTIVE and PAUSED. If you pause a queue, jobs in that queue won't begin. Jobs that are running when you pause the queue continue to run until they finish or result in an error.
/// - On success, responds with [`UpdateQueueOutput`](crate::output::UpdateQueueOutput) with field(s):
/// - [`queue(Option<Queue>)`](crate::output::UpdateQueueOutput::queue): You can use queues to manage the resources that are available to your AWS account for running multiple transcoding jobs at the same time. If you don't specify a queue, the service sends all jobs through the default queue. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/working-with-queues.html.
/// - On failure, responds with [`SdkError<UpdateQueueError>`](crate::error::UpdateQueueError)
pub fn update_queue(&self) -> fluent_builders::UpdateQueue {
fluent_builders::UpdateQueue::new(self.handle.clone())
}
}
pub mod fluent_builders {
//!
//! Utilities to ergonomically construct a request to the service.
//!
//! Fluent builders are created through the [`Client`](crate::client::Client) by calling
//! one if its operation methods. After parameters are set using the builder methods,
//! the `send` method can be called to initiate the request.
//!
/// Fluent builder constructing a request to `AssociateCertificate`.
///
/// Associates an AWS Certificate Manager (ACM) Amazon Resource Name (ARN) with AWS Elemental MediaConvert.
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct AssociateCertificate {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::associate_certificate_input::Builder,
}
impl AssociateCertificate {
/// Creates a new `AssociateCertificate`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::AssociateCertificateOutput,
aws_smithy_http::result::SdkError<crate::error::AssociateCertificateError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// The ARN of the ACM certificate that you want to associate with your MediaConvert resource.
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.arn(input.into());
self
}
/// The ARN of the ACM certificate that you want to associate with your MediaConvert resource.
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_arn(input);
self
}
}
/// Fluent builder constructing a request to `CancelJob`.
///
/// Permanently cancel a job. Once you have canceled a job, you can't start it again.
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct CancelJob {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::cancel_job_input::Builder,
}
impl CancelJob {
/// Creates a new `CancelJob`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CancelJobOutput,
aws_smithy_http::result::SdkError<crate::error::CancelJobError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// The Job ID of the job to be cancelled.
pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.id(input.into());
self
}
/// The Job ID of the job to be cancelled.
pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_id(input);
self
}
}
/// 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
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct CreateJob {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::create_job_input::Builder,
}
impl CreateJob {
/// Creates a new `CreateJob`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CreateJobOutput,
aws_smithy_http::result::SdkError<crate::error::CreateJobError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// 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.
pub fn acceleration_settings(mut self, input: crate::model::AccelerationSettings) -> Self {
self.inner = self.inner.acceleration_settings(input);
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.
pub fn set_acceleration_settings(
mut self,
input: std::option::Option<crate::model::AccelerationSettings>,
) -> Self {
self.inner = self.inner.set_acceleration_settings(input);
self
}
/// 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.
pub fn billing_tags_source(mut self, input: crate::model::BillingTagsSource) -> Self {
self.inner = self.inner.billing_tags_source(input);
self
}
/// 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.
pub fn set_billing_tags_source(
mut self,
input: std::option::Option<crate::model::BillingTagsSource>,
) -> Self {
self.inner = self.inner.set_billing_tags_source(input);
self
}
/// Optional. Idempotency token for CreateJob operation.
pub fn client_request_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.client_request_token(input.into());
self
}
/// Optional. Idempotency token for CreateJob operation.
pub fn set_client_request_token(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_client_request_token(input);
self
}
/// Appends an item to `HopDestinations`.
///
/// To override the contents of this collection use [`set_hop_destinations`](Self::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.
pub fn hop_destinations(mut self, input: crate::model::HopDestination) -> Self {
self.inner = self.inner.hop_destinations(input);
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.
pub fn set_hop_destinations(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::HopDestination>>,
) -> Self {
self.inner = self.inner.set_hop_destinations(input);
self
}
/// Optional. When you create a job, you can either specify a job template or specify the transcoding settings individually.
pub fn job_template(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.job_template(input.into());
self
}
/// Optional. When you create a job, you can either specify a job template or specify the transcoding settings individually.
pub fn set_job_template(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_job_template(input);
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.
pub fn priority(mut self, input: i32) -> Self {
self.inner = self.inner.priority(input);
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.
pub fn set_priority(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_priority(input);
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.
pub fn queue(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.queue(input.into());
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.
pub fn set_queue(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_queue(input);
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.
pub fn role(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.role(input.into());
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.
pub fn set_role(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_role(input);
self
}
/// JobSettings contains all the transcode settings for a job.
pub fn settings(mut self, input: crate::model::JobSettings) -> Self {
self.inner = self.inner.settings(input);
self
}
/// JobSettings contains all the transcode settings for a job.
pub fn set_settings(
mut self,
input: std::option::Option<crate::model::JobSettings>,
) -> Self {
self.inner = self.inner.set_settings(input);
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.
pub fn simulate_reserved_queue(
mut self,
input: crate::model::SimulateReservedQueue,
) -> Self {
self.inner = self.inner.simulate_reserved_queue(input);
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.
pub fn set_simulate_reserved_queue(
mut self,
input: std::option::Option<crate::model::SimulateReservedQueue>,
) -> Self {
self.inner = self.inner.set_simulate_reserved_queue(input);
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.
pub fn status_update_interval(mut self, input: crate::model::StatusUpdateInterval) -> Self {
self.inner = self.inner.status_update_interval(input);
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.
pub fn set_status_update_interval(
mut self,
input: std::option::Option<crate::model::StatusUpdateInterval>,
) -> Self {
self.inner = self.inner.set_status_update_interval(input);
self
}
/// Adds a key-value pair to `Tags`.
///
/// To override the contents of this collection use [`set_tags`](Self::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.
pub fn tags(
mut self,
k: impl Into<std::string::String>,
v: impl Into<std::string::String>,
) -> Self {
self.inner = self.inner.tags(k.into(), v.into());
self
}
/// 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.
pub fn set_tags(
mut self,
input: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
) -> Self {
self.inner = self.inner.set_tags(input);
self
}
/// Adds a key-value pair to `UserMetadata`.
///
/// To override the contents of this collection use [`set_user_metadata`](Self::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.
pub fn user_metadata(
mut self,
k: impl Into<std::string::String>,
v: impl Into<std::string::String>,
) -> Self {
self.inner = self.inner.user_metadata(k.into(), v.into());
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.
pub fn set_user_metadata(
mut self,
input: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
) -> Self {
self.inner = self.inner.set_user_metadata(input);
self
}
}
/// Fluent builder constructing a request to `CreateJobTemplate`.
///
/// Create a new job template. For information about job templates see the User Guide at http://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct CreateJobTemplate {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::create_job_template_input::Builder,
}
impl CreateJobTemplate {
/// Creates a new `CreateJobTemplate`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CreateJobTemplateOutput,
aws_smithy_http::result::SdkError<crate::error::CreateJobTemplateError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// 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.
pub fn acceleration_settings(mut self, input: crate::model::AccelerationSettings) -> Self {
self.inner = self.inner.acceleration_settings(input);
self
}
/// 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.
pub fn set_acceleration_settings(
mut self,
input: std::option::Option<crate::model::AccelerationSettings>,
) -> Self {
self.inner = self.inner.set_acceleration_settings(input);
self
}
/// Optional. A category for the job template you are creating
pub fn category(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.category(input.into());
self
}
/// Optional. A category for the job template you are creating
pub fn set_category(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_category(input);
self
}
/// Optional. A description of the job template you are creating.
pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.description(input.into());
self
}
/// Optional. A description of the job template you are creating.
pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_description(input);
self
}
/// Appends an item to `HopDestinations`.
///
/// To override the contents of this collection use [`set_hop_destinations`](Self::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.
pub fn hop_destinations(mut self, input: crate::model::HopDestination) -> Self {
self.inner = self.inner.hop_destinations(input);
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.
pub fn set_hop_destinations(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::HopDestination>>,
) -> Self {
self.inner = self.inner.set_hop_destinations(input);
self
}
/// The name of the job template you are creating.
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.name(input.into());
self
}
/// The name of the job template you are creating.
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_name(input);
self
}
/// 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.
pub fn priority(mut self, input: i32) -> Self {
self.inner = self.inner.priority(input);
self
}
/// 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.
pub fn set_priority(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_priority(input);
self
}
/// Optional. The queue that jobs created from this template are assigned to. If you don't specify this, jobs will go to the default queue.
pub fn queue(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.queue(input.into());
self
}
/// Optional. The queue that jobs created from this template are assigned to. If you don't specify this, jobs will go to the default queue.
pub fn set_queue(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_queue(input);
self
}
/// JobTemplateSettings contains all the transcode settings saved in the template that will be applied to jobs created from it.
pub fn settings(mut self, input: crate::model::JobTemplateSettings) -> Self {
self.inner = self.inner.settings(input);
self
}
/// JobTemplateSettings contains all the transcode settings saved in the template that will be applied to jobs created from it.
pub fn set_settings(
mut self,
input: std::option::Option<crate::model::JobTemplateSettings>,
) -> Self {
self.inner = self.inner.set_settings(input);
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.
pub fn status_update_interval(mut self, input: crate::model::StatusUpdateInterval) -> Self {
self.inner = self.inner.status_update_interval(input);
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.
pub fn set_status_update_interval(
mut self,
input: std::option::Option<crate::model::StatusUpdateInterval>,
) -> Self {
self.inner = self.inner.set_status_update_interval(input);
self
}
/// Adds a key-value pair to `Tags`.
///
/// To override the contents of this collection use [`set_tags`](Self::set_tags).
///
/// The tags that you want to add to the resource. You can tag resources with a key-value pair or with only a key.
pub fn tags(
mut self,
k: impl Into<std::string::String>,
v: impl Into<std::string::String>,
) -> Self {
self.inner = self.inner.tags(k.into(), v.into());
self
}
/// The tags that you want to add to the resource. You can tag resources with a key-value pair or with only a key.
pub fn set_tags(
mut self,
input: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
) -> Self {
self.inner = self.inner.set_tags(input);
self
}
}
/// Fluent builder constructing a request to `CreatePreset`.
///
/// Create a new preset. For information about job templates see the User Guide at http://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct CreatePreset {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::create_preset_input::Builder,
}
impl CreatePreset {
/// Creates a new `CreatePreset`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CreatePresetOutput,
aws_smithy_http::result::SdkError<crate::error::CreatePresetError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// Optional. A category for the preset you are creating.
pub fn category(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.category(input.into());
self
}
/// Optional. A category for the preset you are creating.
pub fn set_category(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_category(input);
self
}
/// Optional. A description of the preset you are creating.
pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.description(input.into());
self
}
/// Optional. A description of the preset you are creating.
pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_description(input);
self
}
/// The name of the preset you are creating.
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.name(input.into());
self
}
/// The name of the preset you are creating.
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_name(input);
self
}
/// Settings for preset
pub fn settings(mut self, input: crate::model::PresetSettings) -> Self {
self.inner = self.inner.settings(input);
self
}
/// Settings for preset
pub fn set_settings(
mut self,
input: std::option::Option<crate::model::PresetSettings>,
) -> Self {
self.inner = self.inner.set_settings(input);
self
}
/// Adds a key-value pair to `Tags`.
///
/// To override the contents of this collection use [`set_tags`](Self::set_tags).
///
/// The tags that you want to add to the resource. You can tag resources with a key-value pair or with only a key.
pub fn tags(
mut self,
k: impl Into<std::string::String>,
v: impl Into<std::string::String>,
) -> Self {
self.inner = self.inner.tags(k.into(), v.into());
self
}
/// The tags that you want to add to the resource. You can tag resources with a key-value pair or with only a key.
pub fn set_tags(
mut self,
input: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
) -> Self {
self.inner = self.inner.set_tags(input);
self
}
}
/// Fluent builder constructing a request to `CreateQueue`.
///
/// Create a new transcoding queue. For information about queues, see Working With Queues in the User Guide at https://docs.aws.amazon.com/mediaconvert/latest/ug/working-with-queues.html
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct CreateQueue {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::create_queue_input::Builder,
}
impl CreateQueue {
/// Creates a new `CreateQueue`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CreateQueueOutput,
aws_smithy_http::result::SdkError<crate::error::CreateQueueError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// Optional. A description of the queue that you are creating.
pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.description(input.into());
self
}
/// Optional. A description of the queue that you are creating.
pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_description(input);
self
}
/// The name of the queue that you are creating.
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.name(input.into());
self
}
/// The name of the queue that you are creating.
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_name(input);
self
}
/// Specifies whether the pricing plan for the queue is on-demand or reserved. For on-demand, you pay per minute, billed in increments of .01 minute. For reserved, you pay for the transcoding capacity of the entire queue, regardless of how much or how little you use it. Reserved pricing requires a 12-month commitment. When you use the API to create a queue, the default is on-demand.
pub fn pricing_plan(mut self, input: crate::model::PricingPlan) -> Self {
self.inner = self.inner.pricing_plan(input);
self
}
/// Specifies whether the pricing plan for the queue is on-demand or reserved. For on-demand, you pay per minute, billed in increments of .01 minute. For reserved, you pay for the transcoding capacity of the entire queue, regardless of how much or how little you use it. Reserved pricing requires a 12-month commitment. When you use the API to create a queue, the default is on-demand.
pub fn set_pricing_plan(
mut self,
input: std::option::Option<crate::model::PricingPlan>,
) -> Self {
self.inner = self.inner.set_pricing_plan(input);
self
}
/// Details about the pricing plan for your reserved queue. Required for reserved queues and not applicable to on-demand queues.
pub fn reservation_plan_settings(
mut self,
input: crate::model::ReservationPlanSettings,
) -> Self {
self.inner = self.inner.reservation_plan_settings(input);
self
}
/// Details about the pricing plan for your reserved queue. Required for reserved queues and not applicable to on-demand queues.
pub fn set_reservation_plan_settings(
mut self,
input: std::option::Option<crate::model::ReservationPlanSettings>,
) -> Self {
self.inner = self.inner.set_reservation_plan_settings(input);
self
}
/// Initial state of the queue. If you create a paused queue, then jobs in that queue won't begin.
pub fn status(mut self, input: crate::model::QueueStatus) -> Self {
self.inner = self.inner.status(input);
self
}
/// Initial state of the queue. If you create a paused queue, then jobs in that queue won't begin.
pub fn set_status(mut self, input: std::option::Option<crate::model::QueueStatus>) -> Self {
self.inner = self.inner.set_status(input);
self
}
/// Adds a key-value pair to `Tags`.
///
/// To override the contents of this collection use [`set_tags`](Self::set_tags).
///
/// The tags that you want to add to the resource. You can tag resources with a key-value pair or with only a key.
pub fn tags(
mut self,
k: impl Into<std::string::String>,
v: impl Into<std::string::String>,
) -> Self {
self.inner = self.inner.tags(k.into(), v.into());
self
}
/// The tags that you want to add to the resource. You can tag resources with a key-value pair or with only a key.
pub fn set_tags(
mut self,
input: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
) -> Self {
self.inner = self.inner.set_tags(input);
self
}
}
/// Fluent builder constructing a request to `DeleteJobTemplate`.
///
/// Permanently delete a job template you have created.
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DeleteJobTemplate {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::delete_job_template_input::Builder,
}
impl DeleteJobTemplate {
/// Creates a new `DeleteJobTemplate`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DeleteJobTemplateOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteJobTemplateError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// The name of the job template to be deleted.
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.name(input.into());
self
}
/// The name of the job template to be deleted.
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_name(input);
self
}
}
/// Fluent builder constructing a request to `DeletePolicy`.
///
/// Permanently delete a policy that you created.
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DeletePolicy {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::delete_policy_input::Builder,
}
impl DeletePolicy {
/// Creates a new `DeletePolicy`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DeletePolicyOutput,
aws_smithy_http::result::SdkError<crate::error::DeletePolicyError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
}
/// Fluent builder constructing a request to `DeletePreset`.
///
/// Permanently delete a preset you have created.
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DeletePreset {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::delete_preset_input::Builder,
}
impl DeletePreset {
/// Creates a new `DeletePreset`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DeletePresetOutput,
aws_smithy_http::result::SdkError<crate::error::DeletePresetError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// The name of the preset to be deleted.
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.name(input.into());
self
}
/// The name of the preset to be deleted.
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_name(input);
self
}
}
/// Fluent builder constructing a request to `DeleteQueue`.
///
/// Permanently delete a queue you have created.
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DeleteQueue {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::delete_queue_input::Builder,
}
impl DeleteQueue {
/// Creates a new `DeleteQueue`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DeleteQueueOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteQueueError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// The name of the queue that you want to delete.
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.name(input.into());
self
}
/// The name of the queue that you want to delete.
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_name(input);
self
}
}
/// Fluent builder constructing a request to `DescribeEndpoints`.
///
/// Send an request with an empty body to the regional API endpoint to get your account API endpoint.
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DescribeEndpoints {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::describe_endpoints_input::Builder,
}
impl DescribeEndpoints {
/// Creates a new `DescribeEndpoints`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DescribeEndpointsOutput,
aws_smithy_http::result::SdkError<crate::error::DescribeEndpointsError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// Create a paginator for this request
///
/// Paginators are used by calling [`send().await`](crate::paginator::DescribeEndpointsPaginator::send) which returns a [`Stream`](tokio_stream::Stream).
pub fn into_paginator(self) -> crate::paginator::DescribeEndpointsPaginator {
crate::paginator::DescribeEndpointsPaginator::new(self.handle, self.inner)
}
/// Optional. Max number of endpoints, up to twenty, that will be returned at one time.
pub fn max_results(mut self, input: i32) -> Self {
self.inner = self.inner.max_results(input);
self
}
/// Optional. Max number of endpoints, up to twenty, that will be returned at one time.
pub fn set_max_results(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_max_results(input);
self
}
/// Optional field, defaults to DEFAULT. Specify DEFAULT for this operation to return your endpoints if any exist, or to create an endpoint for you and return it if one doesn't already exist. Specify GET_ONLY to return your endpoints if any exist, or an empty list if none exist.
pub fn mode(mut self, input: crate::model::DescribeEndpointsMode) -> Self {
self.inner = self.inner.mode(input);
self
}
/// Optional field, defaults to DEFAULT. Specify DEFAULT for this operation to return your endpoints if any exist, or to create an endpoint for you and return it if one doesn't already exist. Specify GET_ONLY to return your endpoints if any exist, or an empty list if none exist.
pub fn set_mode(
mut self,
input: std::option::Option<crate::model::DescribeEndpointsMode>,
) -> Self {
self.inner = self.inner.set_mode(input);
self
}
/// Use this string, provided with the response to a previous request, to request the next batch of endpoints.
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.next_token(input.into());
self
}
/// Use this string, provided with the response to a previous request, to request the next batch of endpoints.
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_next_token(input);
self
}
}
/// Fluent builder constructing a request to `DisassociateCertificate`.
///
/// Removes an association between the Amazon Resource Name (ARN) of an AWS Certificate Manager (ACM) certificate and an AWS Elemental MediaConvert resource.
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DisassociateCertificate {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::disassociate_certificate_input::Builder,
}
impl DisassociateCertificate {
/// Creates a new `DisassociateCertificate`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DisassociateCertificateOutput,
aws_smithy_http::result::SdkError<crate::error::DisassociateCertificateError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// The ARN of the ACM certificate that you want to disassociate from your MediaConvert resource.
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.arn(input.into());
self
}
/// The ARN of the ACM certificate that you want to disassociate from your MediaConvert resource.
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_arn(input);
self
}
}
/// Fluent builder constructing a request to `GetJob`.
///
/// Retrieve the JSON for a specific completed transcoding job.
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct GetJob {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::get_job_input::Builder,
}
impl GetJob {
/// Creates a new `GetJob`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::GetJobOutput,
aws_smithy_http::result::SdkError<crate::error::GetJobError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// the job ID of the job.
pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.id(input.into());
self
}
/// the job ID of the job.
pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_id(input);
self
}
}
/// Fluent builder constructing a request to `GetJobTemplate`.
///
/// Retrieve the JSON for a specific job template.
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct GetJobTemplate {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::get_job_template_input::Builder,
}
impl GetJobTemplate {
/// Creates a new `GetJobTemplate`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::GetJobTemplateOutput,
aws_smithy_http::result::SdkError<crate::error::GetJobTemplateError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// The name of the job template.
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.name(input.into());
self
}
/// The name of the job template.
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_name(input);
self
}
}
/// Fluent builder constructing a request to `GetPolicy`.
///
/// Retrieve the JSON for your policy.
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct GetPolicy {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::get_policy_input::Builder,
}
impl GetPolicy {
/// Creates a new `GetPolicy`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::GetPolicyOutput,
aws_smithy_http::result::SdkError<crate::error::GetPolicyError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
}
/// Fluent builder constructing a request to `GetPreset`.
///
/// Retrieve the JSON for a specific preset.
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct GetPreset {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::get_preset_input::Builder,
}
impl GetPreset {
/// Creates a new `GetPreset`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::GetPresetOutput,
aws_smithy_http::result::SdkError<crate::error::GetPresetError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// The name of the preset.
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.name(input.into());
self
}
/// The name of the preset.
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_name(input);
self
}
}
/// Fluent builder constructing a request to `GetQueue`.
///
/// Retrieve the JSON for a specific queue.
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct GetQueue {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::get_queue_input::Builder,
}
impl GetQueue {
/// Creates a new `GetQueue`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::GetQueueOutput,
aws_smithy_http::result::SdkError<crate::error::GetQueueError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// The name of the queue that you want information about.
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.name(input.into());
self
}
/// The name of the queue that you want information about.
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_name(input);
self
}
}
/// Fluent builder constructing a request to `ListJobs`.
///
/// Retrieve a JSON array of up to twenty of your most recently created jobs. This array includes in-process, completed, and errored jobs. This will return the jobs themselves, not just a list of the jobs. To retrieve the twenty next most recent jobs, use the nextToken string returned with the array.
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ListJobs {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::list_jobs_input::Builder,
}
impl ListJobs {
/// Creates a new `ListJobs`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::ListJobsOutput,
aws_smithy_http::result::SdkError<crate::error::ListJobsError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// Create a paginator for this request
///
/// Paginators are used by calling [`send().await`](crate::paginator::ListJobsPaginator::send) which returns a [`Stream`](tokio_stream::Stream).
pub fn into_paginator(self) -> crate::paginator::ListJobsPaginator {
crate::paginator::ListJobsPaginator::new(self.handle, self.inner)
}
/// Optional. Number of jobs, up to twenty, that will be returned at one time.
pub fn max_results(mut self, input: i32) -> Self {
self.inner = self.inner.max_results(input);
self
}
/// Optional. Number of jobs, up to twenty, that will be returned at one time.
pub fn set_max_results(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_max_results(input);
self
}
/// Optional. Use this string, provided with the response to a previous request, to request the next batch of jobs.
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.next_token(input.into());
self
}
/// Optional. Use this string, provided with the response to a previous request, to request the next batch of jobs.
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_next_token(input);
self
}
/// Optional. When you request lists of resources, you can specify whether they are sorted in ASCENDING or DESCENDING order. Default varies by resource.
pub fn order(mut self, input: crate::model::Order) -> Self {
self.inner = self.inner.order(input);
self
}
/// Optional. When you request lists of resources, you can specify whether they are sorted in ASCENDING or DESCENDING order. Default varies by resource.
pub fn set_order(mut self, input: std::option::Option<crate::model::Order>) -> Self {
self.inner = self.inner.set_order(input);
self
}
/// Optional. Provide a queue name to get back only jobs from that queue.
pub fn queue(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.queue(input.into());
self
}
/// Optional. Provide a queue name to get back only jobs from that queue.
pub fn set_queue(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_queue(input);
self
}
/// Optional. A job's status can be SUBMITTED, PROGRESSING, COMPLETE, CANCELED, or ERROR.
pub fn status(mut self, input: crate::model::JobStatus) -> Self {
self.inner = self.inner.status(input);
self
}
/// Optional. A job's status can be SUBMITTED, PROGRESSING, COMPLETE, CANCELED, or ERROR.
pub fn set_status(mut self, input: std::option::Option<crate::model::JobStatus>) -> Self {
self.inner = self.inner.set_status(input);
self
}
}
/// Fluent builder constructing a request to `ListJobTemplates`.
///
/// Retrieve a JSON array of up to twenty of your job templates. This will return the templates themselves, not just a list of them. To retrieve the next twenty templates, use the nextToken string returned with the array
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ListJobTemplates {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::list_job_templates_input::Builder,
}
impl ListJobTemplates {
/// Creates a new `ListJobTemplates`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::ListJobTemplatesOutput,
aws_smithy_http::result::SdkError<crate::error::ListJobTemplatesError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// Create a paginator for this request
///
/// Paginators are used by calling [`send().await`](crate::paginator::ListJobTemplatesPaginator::send) which returns a [`Stream`](tokio_stream::Stream).
pub fn into_paginator(self) -> crate::paginator::ListJobTemplatesPaginator {
crate::paginator::ListJobTemplatesPaginator::new(self.handle, self.inner)
}
/// Optionally, specify a job template category to limit responses to only job templates from that category.
pub fn category(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.category(input.into());
self
}
/// Optionally, specify a job template category to limit responses to only job templates from that category.
pub fn set_category(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_category(input);
self
}
/// Optional. When you request a list of job templates, you can choose to list them alphabetically by NAME or chronologically by CREATION_DATE. If you don't specify, the service will list them by name.
pub fn list_by(mut self, input: crate::model::JobTemplateListBy) -> Self {
self.inner = self.inner.list_by(input);
self
}
/// Optional. When you request a list of job templates, you can choose to list them alphabetically by NAME or chronologically by CREATION_DATE. If you don't specify, the service will list them by name.
pub fn set_list_by(
mut self,
input: std::option::Option<crate::model::JobTemplateListBy>,
) -> Self {
self.inner = self.inner.set_list_by(input);
self
}
/// Optional. Number of job templates, up to twenty, that will be returned at one time.
pub fn max_results(mut self, input: i32) -> Self {
self.inner = self.inner.max_results(input);
self
}
/// Optional. Number of job templates, up to twenty, that will be returned at one time.
pub fn set_max_results(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_max_results(input);
self
}
/// Use this string, provided with the response to a previous request, to request the next batch of job templates.
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.next_token(input.into());
self
}
/// Use this string, provided with the response to a previous request, to request the next batch of job templates.
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_next_token(input);
self
}
/// Optional. When you request lists of resources, you can specify whether they are sorted in ASCENDING or DESCENDING order. Default varies by resource.
pub fn order(mut self, input: crate::model::Order) -> Self {
self.inner = self.inner.order(input);
self
}
/// Optional. When you request lists of resources, you can specify whether they are sorted in ASCENDING or DESCENDING order. Default varies by resource.
pub fn set_order(mut self, input: std::option::Option<crate::model::Order>) -> Self {
self.inner = self.inner.set_order(input);
self
}
}
/// Fluent builder constructing a request to `ListPresets`.
///
/// Retrieve a JSON array of up to twenty of your presets. This will return the presets themselves, not just a list of them. To retrieve the next twenty presets, use the nextToken string returned with the array.
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ListPresets {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::list_presets_input::Builder,
}
impl ListPresets {
/// Creates a new `ListPresets`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::ListPresetsOutput,
aws_smithy_http::result::SdkError<crate::error::ListPresetsError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// Create a paginator for this request
///
/// Paginators are used by calling [`send().await`](crate::paginator::ListPresetsPaginator::send) which returns a [`Stream`](tokio_stream::Stream).
pub fn into_paginator(self) -> crate::paginator::ListPresetsPaginator {
crate::paginator::ListPresetsPaginator::new(self.handle, self.inner)
}
/// Optionally, specify a preset category to limit responses to only presets from that category.
pub fn category(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.category(input.into());
self
}
/// Optionally, specify a preset category to limit responses to only presets from that category.
pub fn set_category(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_category(input);
self
}
/// Optional. When you request a list of presets, you can choose to list them alphabetically by NAME or chronologically by CREATION_DATE. If you don't specify, the service will list them by name.
pub fn list_by(mut self, input: crate::model::PresetListBy) -> Self {
self.inner = self.inner.list_by(input);
self
}
/// Optional. When you request a list of presets, you can choose to list them alphabetically by NAME or chronologically by CREATION_DATE. If you don't specify, the service will list them by name.
pub fn set_list_by(
mut self,
input: std::option::Option<crate::model::PresetListBy>,
) -> Self {
self.inner = self.inner.set_list_by(input);
self
}
/// Optional. Number of presets, up to twenty, that will be returned at one time
pub fn max_results(mut self, input: i32) -> Self {
self.inner = self.inner.max_results(input);
self
}
/// Optional. Number of presets, up to twenty, that will be returned at one time
pub fn set_max_results(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_max_results(input);
self
}
/// Use this string, provided with the response to a previous request, to request the next batch of presets.
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.next_token(input.into());
self
}
/// Use this string, provided with the response to a previous request, to request the next batch of presets.
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_next_token(input);
self
}
/// Optional. When you request lists of resources, you can specify whether they are sorted in ASCENDING or DESCENDING order. Default varies by resource.
pub fn order(mut self, input: crate::model::Order) -> Self {
self.inner = self.inner.order(input);
self
}
/// Optional. When you request lists of resources, you can specify whether they are sorted in ASCENDING or DESCENDING order. Default varies by resource.
pub fn set_order(mut self, input: std::option::Option<crate::model::Order>) -> Self {
self.inner = self.inner.set_order(input);
self
}
}
/// Fluent builder constructing a request to `ListQueues`.
///
/// Retrieve a JSON array of up to twenty of your queues. This will return the queues themselves, not just a list of them. To retrieve the next twenty queues, use the nextToken string returned with the array.
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ListQueues {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::list_queues_input::Builder,
}
impl ListQueues {
/// Creates a new `ListQueues`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::ListQueuesOutput,
aws_smithy_http::result::SdkError<crate::error::ListQueuesError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// Create a paginator for this request
///
/// Paginators are used by calling [`send().await`](crate::paginator::ListQueuesPaginator::send) which returns a [`Stream`](tokio_stream::Stream).
pub fn into_paginator(self) -> crate::paginator::ListQueuesPaginator {
crate::paginator::ListQueuesPaginator::new(self.handle, self.inner)
}
/// Optional. When you request a list of queues, you can choose to list them alphabetically by NAME or chronologically by CREATION_DATE. If you don't specify, the service will list them by creation date.
pub fn list_by(mut self, input: crate::model::QueueListBy) -> Self {
self.inner = self.inner.list_by(input);
self
}
/// Optional. When you request a list of queues, you can choose to list them alphabetically by NAME or chronologically by CREATION_DATE. If you don't specify, the service will list them by creation date.
pub fn set_list_by(
mut self,
input: std::option::Option<crate::model::QueueListBy>,
) -> Self {
self.inner = self.inner.set_list_by(input);
self
}
/// Optional. Number of queues, up to twenty, that will be returned at one time.
pub fn max_results(mut self, input: i32) -> Self {
self.inner = self.inner.max_results(input);
self
}
/// Optional. Number of queues, up to twenty, that will be returned at one time.
pub fn set_max_results(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_max_results(input);
self
}
/// Use this string, provided with the response to a previous request, to request the next batch of queues.
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.next_token(input.into());
self
}
/// Use this string, provided with the response to a previous request, to request the next batch of queues.
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_next_token(input);
self
}
/// Optional. When you request lists of resources, you can specify whether they are sorted in ASCENDING or DESCENDING order. Default varies by resource.
pub fn order(mut self, input: crate::model::Order) -> Self {
self.inner = self.inner.order(input);
self
}
/// Optional. When you request lists of resources, you can specify whether they are sorted in ASCENDING or DESCENDING order. Default varies by resource.
pub fn set_order(mut self, input: std::option::Option<crate::model::Order>) -> Self {
self.inner = self.inner.set_order(input);
self
}
}
/// Fluent builder constructing a request to `ListTagsForResource`.
///
/// Retrieve the tags for a MediaConvert resource.
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ListTagsForResource {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::list_tags_for_resource_input::Builder,
}
impl ListTagsForResource {
/// Creates a new `ListTagsForResource`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::ListTagsForResourceOutput,
aws_smithy_http::result::SdkError<crate::error::ListTagsForResourceError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// The Amazon Resource Name (ARN) of the resource that you want to list tags for. To get the ARN, send a GET request with the resource name.
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.arn(input.into());
self
}
/// The Amazon Resource Name (ARN) of the resource that you want to list tags for. To get the ARN, send a GET request with the resource name.
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_arn(input);
self
}
}
/// Fluent builder constructing a request to `PutPolicy`.
///
/// Create or change your policy. For more information about policies, see the user guide at http://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct PutPolicy {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::put_policy_input::Builder,
}
impl PutPolicy {
/// Creates a new `PutPolicy`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::PutPolicyOutput,
aws_smithy_http::result::SdkError<crate::error::PutPolicyError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// A policy configures behavior that you allow or disallow for your account. For information about MediaConvert policies, see the user guide at http://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html
pub fn policy(mut self, input: crate::model::Policy) -> Self {
self.inner = self.inner.policy(input);
self
}
/// A policy configures behavior that you allow or disallow for your account. For information about MediaConvert policies, see the user guide at http://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html
pub fn set_policy(mut self, input: std::option::Option<crate::model::Policy>) -> Self {
self.inner = self.inner.set_policy(input);
self
}
}
/// Fluent builder constructing a request to `TagResource`.
///
/// Add tags to a MediaConvert queue, preset, or job template. For information about tagging, see the User Guide at https://docs.aws.amazon.com/mediaconvert/latest/ug/tagging-resources.html
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct TagResource {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::tag_resource_input::Builder,
}
impl TagResource {
/// Creates a new `TagResource`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::TagResourceOutput,
aws_smithy_http::result::SdkError<crate::error::TagResourceError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// The Amazon Resource Name (ARN) of the resource that you want to tag. To get the ARN, send a GET request with the resource name.
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.arn(input.into());
self
}
/// The Amazon Resource Name (ARN) of the resource that you want to tag. To get the ARN, send a GET request with the resource name.
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_arn(input);
self
}
/// Adds a key-value pair to `Tags`.
///
/// To override the contents of this collection use [`set_tags`](Self::set_tags).
///
/// The tags that you want to add to the resource. You can tag resources with a key-value pair or with only a key.
pub fn tags(
mut self,
k: impl Into<std::string::String>,
v: impl Into<std::string::String>,
) -> Self {
self.inner = self.inner.tags(k.into(), v.into());
self
}
/// The tags that you want to add to the resource. You can tag resources with a key-value pair or with only a key.
pub fn set_tags(
mut self,
input: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
) -> Self {
self.inner = self.inner.set_tags(input);
self
}
}
/// Fluent builder constructing a request to `UntagResource`.
///
/// Remove tags from a MediaConvert queue, preset, or job template. For information about tagging, see the User Guide at https://docs.aws.amazon.com/mediaconvert/latest/ug/tagging-resources.html
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct UntagResource {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::untag_resource_input::Builder,
}
impl UntagResource {
/// Creates a new `UntagResource`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::UntagResourceOutput,
aws_smithy_http::result::SdkError<crate::error::UntagResourceError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// The Amazon Resource Name (ARN) of the resource that you want to remove tags from. To get the ARN, send a GET request with the resource name.
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.arn(input.into());
self
}
/// The Amazon Resource Name (ARN) of the resource that you want to remove tags from. To get the ARN, send a GET request with the resource name.
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_arn(input);
self
}
/// Appends an item to `TagKeys`.
///
/// To override the contents of this collection use [`set_tag_keys`](Self::set_tag_keys).
///
/// The keys of the tags that you want to remove from the resource.
pub fn tag_keys(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.tag_keys(input.into());
self
}
/// The keys of the tags that you want to remove from the resource.
pub fn set_tag_keys(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.inner = self.inner.set_tag_keys(input);
self
}
}
/// Fluent builder constructing a request to `UpdateJobTemplate`.
///
/// Modify one of your existing job templates.
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct UpdateJobTemplate {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::update_job_template_input::Builder,
}
impl UpdateJobTemplate {
/// Creates a new `UpdateJobTemplate`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::UpdateJobTemplateOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateJobTemplateError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// 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.
pub fn acceleration_settings(mut self, input: crate::model::AccelerationSettings) -> Self {
self.inner = self.inner.acceleration_settings(input);
self
}
/// 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.
pub fn set_acceleration_settings(
mut self,
input: std::option::Option<crate::model::AccelerationSettings>,
) -> Self {
self.inner = self.inner.set_acceleration_settings(input);
self
}
/// The new category for the job template, if you are changing it.
pub fn category(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.category(input.into());
self
}
/// The new category for the job template, if you are changing it.
pub fn set_category(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_category(input);
self
}
/// The new description for the job template, if you are changing it.
pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.description(input.into());
self
}
/// The new description for the job template, if you are changing it.
pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_description(input);
self
}
/// Appends an item to `HopDestinations`.
///
/// To override the contents of this collection use [`set_hop_destinations`](Self::set_hop_destinations).
///
/// Optional list of hop destinations.
pub fn hop_destinations(mut self, input: crate::model::HopDestination) -> Self {
self.inner = self.inner.hop_destinations(input);
self
}
/// Optional list of hop destinations.
pub fn set_hop_destinations(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::HopDestination>>,
) -> Self {
self.inner = self.inner.set_hop_destinations(input);
self
}
/// The name of the job template you are modifying
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.name(input.into());
self
}
/// The name of the job template you are modifying
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_name(input);
self
}
/// 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.
pub fn priority(mut self, input: i32) -> Self {
self.inner = self.inner.priority(input);
self
}
/// 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.
pub fn set_priority(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_priority(input);
self
}
/// The new queue for the job template, if you are changing it.
pub fn queue(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.queue(input.into());
self
}
/// The new queue for the job template, if you are changing it.
pub fn set_queue(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_queue(input);
self
}
/// JobTemplateSettings contains all the transcode settings saved in the template that will be applied to jobs created from it.
pub fn settings(mut self, input: crate::model::JobTemplateSettings) -> Self {
self.inner = self.inner.settings(input);
self
}
/// JobTemplateSettings contains all the transcode settings saved in the template that will be applied to jobs created from it.
pub fn set_settings(
mut self,
input: std::option::Option<crate::model::JobTemplateSettings>,
) -> Self {
self.inner = self.inner.set_settings(input);
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.
pub fn status_update_interval(mut self, input: crate::model::StatusUpdateInterval) -> Self {
self.inner = self.inner.status_update_interval(input);
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.
pub fn set_status_update_interval(
mut self,
input: std::option::Option<crate::model::StatusUpdateInterval>,
) -> Self {
self.inner = self.inner.set_status_update_interval(input);
self
}
}
/// Fluent builder constructing a request to `UpdatePreset`.
///
/// Modify one of your existing presets.
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct UpdatePreset {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::update_preset_input::Builder,
}
impl UpdatePreset {
/// Creates a new `UpdatePreset`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::UpdatePresetOutput,
aws_smithy_http::result::SdkError<crate::error::UpdatePresetError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// The new category for the preset, if you are changing it.
pub fn category(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.category(input.into());
self
}
/// The new category for the preset, if you are changing it.
pub fn set_category(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_category(input);
self
}
/// The new description for the preset, if you are changing it.
pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.description(input.into());
self
}
/// The new description for the preset, if you are changing it.
pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_description(input);
self
}
/// The name of the preset you are modifying.
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.name(input.into());
self
}
/// The name of the preset you are modifying.
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_name(input);
self
}
/// Settings for preset
pub fn settings(mut self, input: crate::model::PresetSettings) -> Self {
self.inner = self.inner.settings(input);
self
}
/// Settings for preset
pub fn set_settings(
mut self,
input: std::option::Option<crate::model::PresetSettings>,
) -> Self {
self.inner = self.inner.set_settings(input);
self
}
}
/// Fluent builder constructing a request to `UpdateQueue`.
///
/// Modify one of your existing queues.
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct UpdateQueue {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::update_queue_input::Builder,
}
impl UpdateQueue {
/// Creates a new `UpdateQueue`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::UpdateQueueOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateQueueError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// The new description for the queue, if you are changing it.
pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.description(input.into());
self
}
/// The new description for the queue, if you are changing it.
pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_description(input);
self
}
/// The name of the queue that you are modifying.
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.name(input.into());
self
}
/// The name of the queue that you are modifying.
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_name(input);
self
}
/// The new details of your pricing plan for your reserved queue. When you set up a new pricing plan to replace an expired one, you enter into another 12-month commitment. When you add capacity to your queue by increasing the number of RTS, you extend the term of your commitment to 12 months from when you add capacity. After you make these commitments, you can't cancel them.
pub fn reservation_plan_settings(
mut self,
input: crate::model::ReservationPlanSettings,
) -> Self {
self.inner = self.inner.reservation_plan_settings(input);
self
}
/// The new details of your pricing plan for your reserved queue. When you set up a new pricing plan to replace an expired one, you enter into another 12-month commitment. When you add capacity to your queue by increasing the number of RTS, you extend the term of your commitment to 12 months from when you add capacity. After you make these commitments, you can't cancel them.
pub fn set_reservation_plan_settings(
mut self,
input: std::option::Option<crate::model::ReservationPlanSettings>,
) -> Self {
self.inner = self.inner.set_reservation_plan_settings(input);
self
}
/// Pause or activate a queue by changing its status between ACTIVE and PAUSED. If you pause a queue, jobs in that queue won't begin. Jobs that are running when you pause the queue continue to run until they finish or result in an error.
pub fn status(mut self, input: crate::model::QueueStatus) -> Self {
self.inner = self.inner.status(input);
self
}
/// Pause or activate a queue by changing its status between ACTIVE and PAUSED. If you pause a queue, jobs in that queue won't begin. Jobs that are running when you pause the queue continue to run until they finish or result in an error.
pub fn set_status(mut self, input: std::option::Option<crate::model::QueueStatus>) -> Self {
self.inner = self.inner.set_status(input);
self
}
}
}
impl Client {
/// Creates a client with the given service config and connector override.
pub fn from_conf_conn<C, E>(conf: crate::Config, conn: C) -> Self
where
C: aws_smithy_client::bounds::SmithyConnector<Error = E> + Send + 'static,
E: Into<aws_smithy_http::result::ConnectorError>,
{
let retry_config = conf.retry_config.as_ref().cloned().unwrap_or_default();
let timeout_config = conf.timeout_config.as_ref().cloned().unwrap_or_default();
let sleep_impl = conf.sleep_impl.clone();
let mut builder = aws_smithy_client::Builder::new()
.connector(aws_smithy_client::erase::DynConnector::new(conn))
.middleware(aws_smithy_client::erase::DynMiddleware::new(
crate::middleware::DefaultMiddleware::new(),
));
builder.set_retry_config(retry_config.into());
builder.set_timeout_config(timeout_config);
if let Some(sleep_impl) = sleep_impl {
builder.set_sleep_impl(Some(sleep_impl));
}
let client = builder.build();
Self {
handle: std::sync::Arc::new(Handle { client, conf }),
}
}
/// Creates a new client from a shared config.
#[cfg(any(feature = "rustls", feature = "native-tls"))]
pub fn new(sdk_config: &aws_types::sdk_config::SdkConfig) -> Self {
Self::from_conf(sdk_config.into())
}
/// Creates a new client from the service [`Config`](crate::Config).
#[cfg(any(feature = "rustls", feature = "native-tls"))]
pub fn from_conf(conf: crate::Config) -> Self {
let retry_config = conf.retry_config.as_ref().cloned().unwrap_or_default();
let timeout_config = conf.timeout_config.as_ref().cloned().unwrap_or_default();
let sleep_impl = conf.sleep_impl.clone();
let mut builder = aws_smithy_client::Builder::dyn_https().middleware(
aws_smithy_client::erase::DynMiddleware::new(
crate::middleware::DefaultMiddleware::new(),
),
);
builder.set_retry_config(retry_config.into());
builder.set_timeout_config(timeout_config);
// the builder maintains a try-state. To avoid suppressing the warning when sleep is unset,
// only set it if we actually have a sleep impl.
if let Some(sleep_impl) = sleep_impl {
builder.set_sleep_impl(Some(sleep_impl));
}
let client = builder.build();
Self {
handle: std::sync::Arc::new(Handle { client, conf }),
}
}
}