public CreateImagePipelineRequest withWorkflows(WorkflowConfiguration... workflows) {
        if (this.workflows == null) {
            setWorkflows(new java.util.ArrayList<WorkflowConfiguration>(workflows.length));
        }
        for (WorkflowConfiguration ele : workflows) {
            this.workflows.add(ele);
        }
        return this;
    }
<p>
Contains an array of workflow configuration objects.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setWorkflows(java.util.Collection)} or {@link #withWorkflows(java.util.Collection)} if you want to
override the existing values.
</p>

@param workflows
       Contains an array of workflow configuration objects.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-imagebuilder/src/main/java/com/amazonaws/services/imagebuilder/model/CreateImagePipelineRequest.java