public CreatePipelineRequest withRole(String role) {
        setRole(role);
        return this;
    }
<p>
The IAM Amazon Resource Name (ARN) for the role that you want Elastic Transcoder to use to create the pipeline.
</p>

@param role
       The IAM Amazon Resource Name (ARN) for the role that you want Elastic Transcoder to use to create the
       pipeline.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-elastictranscoder/src/main/java/com/amazonaws/services/elastictranscoder/model/CreatePipelineRequest.java