public CreatePipelineRequest withPipeline(PipelineDeclaration pipeline) {
        setPipeline(pipeline);
        return this;
    }
<p>
Represents the structure of actions and stages to be performed in the pipeline.
</p>

@param pipeline
       Represents the structure of actions and stages to be performed in the pipeline.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-codepipeline/src/main/java/com/amazonaws/services/codepipeline/model/CreatePipelineRequest.java