public DataLakeSource withSourceStatuses(DataLakeSourceStatus... sourceStatuses) {
        if (this.sourceStatuses == null) {
            setSourceStatuses(new java.util.ArrayList<DataLakeSourceStatus>(sourceStatuses.length));
        }
        for (DataLakeSourceStatus ele : sourceStatuses) {
            this.sourceStatuses.add(ele);
        }
        return this;
    }
<p>
The log status for the Security Lake account.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setSourceStatuses(java.util.Collection)} or {@link #withSourceStatuses(java.util.Collection)} if you want
to override the existing values.
</p>

@param sourceStatuses
       The log status for the Security Lake account.
@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/DataLakeSource.java