public GetResourceMetricsRequest withServiceType(ServiceType serviceType) {
        this.serviceType = serviceType.toString();
        return this;
    }
<p>
The Amazon Web Services service for which Performance Insights returns metrics. Valid values are as follows:
</p>
<ul>
<li>
<p>
<code>RDS</code>
</p>
</li>
<li>
<p>
<code>DOCDB</code>
</p>
</li>
</ul>

@param serviceType
       The Amazon Web Services service for which Performance Insights returns metrics. Valid values are as
       follows:</p>
       <ul>
       <li>
       <p>
       <code>RDS</code>
       </p>
       </li>
       <li>
       <p>
       <code>DOCDB</code>
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
@see ServiceType
aws-java-sdk-pi/src/main/java/com/amazonaws/services/pi/model/GetResourceMetricsRequest.java