public void setMetrics(AWSRequestMetrics metrics) throws IOException {
        // make sure metricsIS is initialized.
        getInputStream();
        metricsIS.setMetrics(metrics);
    }
A wrapper to SSLSocket with metric feature to record socket read time.
aws-java-sdk-core/src/main/java/com/amazonaws/internal/SdkSSLMetricsSocket.java