List of usage examples for com.amazonaws.services.elastictranscoder.model CreateJobOutput withPresetId
public CreateJobOutput withPresetId(String presetId)
The Id
of the preset to use for this job.
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 }