// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.recoveryservicesbackup.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
import java.util.List;

/** The DailySchedule model. */
@Fluent
public final class DailySchedule {
    /*
     * List of times of day this schedule has to be run.
     */
    @JsonProperty(value = "scheduleRunTimes")
    private List<OffsetDateTime> scheduleRunTimes;

    /** Creates an instance of DailySchedule class. */
    public DailySchedule() {
    }

    /**
     * Get the scheduleRunTimes property: List of times of day this schedule has to be run.
     *
     * @return the scheduleRunTimes value.
     */
    public List<OffsetDateTime> scheduleRunTimes() {
        return this.scheduleRunTimes;
    }

    /**
     * Set the scheduleRunTimes property: List of times of day this schedule has to be run.
     *
     * @param scheduleRunTimes the scheduleRunTimes value to set.
     * @return the DailySchedule object itself.
     */
    public DailySchedule withScheduleRunTimes(List<OffsetDateTime> scheduleRunTimes) {
        this.scheduleRunTimes = scheduleRunTimes;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
    }
}
