public CreateWorkflowRequest withType(WorkflowType type) {
        this.type = type.toString();
        return this;
    }
<p>
The phase in the image build process for which the workflow resource is responsible.
</p>

@param type
       The phase in the image build process for which the workflow resource is responsible.
@return Returns a reference to this object so that method calls can be chained together.
@see WorkflowType
aws-java-sdk-imagebuilder/src/main/java/com/amazonaws/services/imagebuilder/model/CreateWorkflowRequest.java