Example usage for com.amazonaws.services.elastictranscoder.model CreateJobOutput withPresetId

List of usage examples for com.amazonaws.services.elastictranscoder.model CreateJobOutput withPresetId

Introduction

In this page you can find the example usage for com.amazonaws.services.elastictranscoder.model CreateJobOutput withPresetId.

Prototype


public CreateJobOutput withPresetId(String presetId) 

Source Link

Document

The Id of the preset to use for this job.

Usage

From source file:org.nuxeo.aws.elastictranscoder.AWSElasticTranscoder.java

License:Open Source License

protected void createElasticTranscoderJob() {
    // (using code from the AWS code sample in
    // JobStatusNotificationsSample.java)

    // Setup the job input
    JobInput jobInput = new JobInput().withKey(inputKey);

    // We create just one job here. Look at the code sample in
    // JobStatusNotificationsSample.java to see how to create several jobs
    // in one call.
    CreateJobOutput output = new CreateJobOutput().withKey(outputKey);
    output.withPresetId(presetId);
    // Create a job on the specified pipeline and get the job ID
    CreateJobRequest createJobRequest = new CreateJobRequest();
    createJobRequest.withPipelineId(pipelineId);
    createJobRequest.withInput(jobInput);
    createJobRequest.withOutput(output);

    CreateJobResult cjr = genericAwsClient.getElasticTranscoder().createJob(createJobRequest);
    awsJobId = cjr.getJob().getId();//from   w  w  w  .ja  v a2  s. c o m

}