public LogSource withSources(java.util.Collection<LogSourceResource> sources) {
        setSources(sources);
        return this;
    }
<p>
Specify the sources from which you want to collect logs.
</p>

@param sources
       Specify the sources from which you want to collect logs.
@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/LogSource.java