public DisassociateResourceShareRequest withSources(String... sources) {
        if (this.sources == null) {
            setSources(new java.util.ArrayList<String>(sources.length));
        }
        for (String ele : sources) {
            this.sources.add(ele);
        }
        return this;
    }
<p>
Specifies from which source accounts the service principal no longer has access to the resources in this resource
share.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setSources(java.util.Collection)} or {@link #withSources(java.util.Collection)} if you want to override
the existing values.
</p>

@param sources
       Specifies from which source accounts the service principal no longer has access to the resources in this
       resource share.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ram/src/main/java/com/amazonaws/services/ram/model/DisassociateResourceShareRequest.java