public DescribeSnapshotsRequest withOwnerIds(String... ownerIds) {
        if (this.ownerIds == null) {
            setOwnerIds(new com.amazonaws.internal.SdkInternalList<String>(ownerIds.length));
        }
        for (String ele : ownerIds) {
            this.ownerIds.add(ele);
        }
        return this;
    }
<p>
Scopes the results to snapshots with the specified owners. You can specify a combination of Amazon Web Services
account IDs, <code>self</code>, and <code>amazon</code>.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setOwnerIds(java.util.Collection)} or {@link #withOwnerIds(java.util.Collection)} if you want to override
the existing values.
</p>

@param ownerIds
       Scopes the results to snapshots with the specified owners. You can specify a combination of Amazon Web
       Services account IDs, <code>self</code>, and <code>amazon</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/DescribeSnapshotsRequest.java