public UpdateSubscriberRequest withSources(java.util.Collection<LogSourceResource> sources) {
        setSources(sources);
        return this;
    }
<p>
The supported Amazon Web Services from which logs and events are collected. For the list of supported Amazon Web
Services, see the <a
href="https://docs.aws.amazon.com/security-lake/latest/userguide/internal-sources.html">Amazon Security Lake User
Guide</a>.
</p>

@param sources
       The supported Amazon Web Services from which logs and events are collected. For the list of supported
       Amazon Web Services, see the <a
       href="https://docs.aws.amazon.com/security-lake/latest/userguide/internal-sources.html">Amazon Security
       Lake User Guide</a>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-securitylake/src/main/java/com/amazonaws/services/securitylake/model/UpdateSubscriberRequest.java