Example usage for com.amazonaws.services.elastictranscoder.model ReadPipelineResult getPipeline

List of usage examples for com.amazonaws.services.elastictranscoder.model ReadPipelineResult getPipeline

Introduction

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

Prototype


public Pipeline getPipeline() 

Source Link

Document

A section of the response body that provides information about the pipeline.

Usage

From source file:org.alanwilliamson.amazon.transcoder.pipeline.Read.java

License:Open Source License

public cfData execute(cfSession _session, cfArgStructData argStruct) throws cfmRunTimeException {
    AmazonKey amazonKey = getAmazonKey(_session, argStruct);
    AmazonElasticTranscoder et = getAmazonElasticTranscoder(amazonKey);

    String pipelineid = getNamedStringParam(argStruct, "pipelineid", null);
    if (pipelineid == null)
        throwException(_session, "Please specify a pipelineid");

    try {/* w w  w  .  ja va  2s .c  om*/

        ReadPipelineResult rp = et.readPipeline(new ReadPipelineRequest().withId(pipelineid));
        return getPipeline(rp.getPipeline());

    } catch (Exception e) {
        throwException(_session, "AmazonElasticTranscoder: " + e.getMessage());
    }

    return cfBooleanData.TRUE;
}