public ListCrossAccountResourceAccountsResult withResourceOwnerAwsAccountIds(String... resourceOwnerAwsAccountIds) {
        if (this.resourceOwnerAwsAccountIds == null) {
            setResourceOwnerAwsAccountIds(new java.util.ArrayList<String>(resourceOwnerAwsAccountIds.length));
        }
        for (String ele : resourceOwnerAwsAccountIds) {
            this.resourceOwnerAwsAccountIds.add(ele);
        }
        return this;
    }
<p>
The account IDs of principals (resource owners) in a cross-account attachment who can work with resources listed
in the same attachment.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setResourceOwnerAwsAccountIds(java.util.Collection)} or
{@link #withResourceOwnerAwsAccountIds(java.util.Collection)} if you want to override the existing values.
</p>

@param resourceOwnerAwsAccountIds
       The account IDs of principals (resource owners) in a cross-account attachment who can work with resources
       listed in the same attachment.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-globalaccelerator/src/main/java/com/amazonaws/services/globalaccelerator/model/ListCrossAccountResourceAccountsResult.java