public MetricSource withProviderArn(String providerArn) {
        setProviderArn(providerArn);
        return this;
    }
<p>
The ARN of the metric source provider.
</p>

@param providerArn
       The ARN of the metric source provider.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-computeoptimizer/src/main/java/com/amazonaws/services/computeoptimizer/model/MetricSource.java