public java.util.List<String> getOwningAccounts() {
        if (owningAccounts == null) {
            owningAccounts = new com.amazonaws.internal.SdkInternalList<String>();
        }
        return owningAccounts;
    }
<p>
If you are using this operation in a monitoring account, this array contains the account IDs of the source
accounts where the metrics in the returned data are from.
</p>
<p>
This field is a 1:1 mapping between each metric that is returned and the ID of the owning account.
</p>

@return If you are using this operation in a monitoring account, this array contains the account IDs of the
        source accounts where the metrics in the returned data are from.</p>
        <p>
        This field is a 1:1 mapping between each metric that is returned and the ID of the owning account.
aws-java-sdk-cloudwatch/src/main/java/com/amazonaws/services/cloudwatch/model/ListMetricsResult.java