Example usage for com.amazonaws.services.elastictranscoder.model CreateJobRequest withPipelineId

List of usage examples for com.amazonaws.services.elastictranscoder.model CreateJobRequest withPipelineId

Introduction

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

Prototype


public CreateJobRequest withPipelineId(String pipelineId) 

Source Link

Document

The Id of the pipeline that you want Elastic Transcoder to use for transcoding.

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);/*from w  w w . ja  v a  2  s .  c om*/
    // 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();

}