public ScheduledAuditMetadata withDayOfWeek(DayOfWeek dayOfWeek) {
        this.dayOfWeek = dayOfWeek.toString();
        return this;
    }
<p>
The day of the week on which the scheduled audit is run (if the <code>frequency</code> is "WEEKLY" or
"BIWEEKLY").
</p>

@param dayOfWeek
       The day of the week on which the scheduled audit is run (if the <code>frequency</code> is "WEEKLY" or
       "BIWEEKLY").
@return Returns a reference to this object so that method calls can be chained together.
@see DayOfWeek
aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/ScheduledAuditMetadata.java