public ListMetricsRequest withOwningAccount(String owningAccount) {
        setOwningAccount(owningAccount);
        return this;
    }
<p>
When you use this operation in a monitoring account, use this field to return metrics only from one source
account. To do so, specify that source account ID in this field, and also specify <code>true</code> for
<code>IncludeLinkedAccounts</code>.
</p>

@param owningAccount
       When you use this operation in a monitoring account, use this field to return metrics only from one source
       account. To do so, specify that source account ID in this field, and also specify <code>true</code> for
       <code>IncludeLinkedAccounts</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cloudwatch/src/main/java/com/amazonaws/services/cloudwatch/model/ListMetricsRequest.java