public GetResourceMetadataRequest withServiceType(ServiceType serviceType) {
        this.serviceType = serviceType.toString();
        return this;
    }
<p>
The Amazon Web Services service for which Performance Insights returns metrics.
</p>

@param serviceType
       The Amazon Web Services service for which Performance Insights returns metrics.
@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/GetResourceMetadataRequest.java