public ReportGroup withType(String type) {
        setType(type);
        return this;
    }
<p>
The type of the <code>ReportGroup</code>. This can be one of the following values:
</p>
<dl>
<dt>CODE_COVERAGE</dt>
<dd>
<p>
The report group contains code coverage reports.
</p>
</dd>
<dt>TEST</dt>
<dd>
<p>
The report group contains test reports.
</p>
</dd>
</dl>

@param type
       The type of the <code>ReportGroup</code>. This can be one of the following values:</p>
       <dl>
       <dt>CODE_COVERAGE</dt>
       <dd>
       <p>
       The report group contains code coverage reports.
       </p>
       </dd>
       <dt>TEST</dt>
       <dd>
       <p>
       The report group contains test reports.
       </p>
       </dd>
@return Returns a reference to this object so that method calls can be chained together.
@see ReportType
aws-java-sdk-codebuild/src/main/java/com/amazonaws/services/codebuild/model/ReportGroup.java