// 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 com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/** Log policy schedule. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "schedulePolicyType")
@JsonTypeName("LogSchedulePolicy")
@Fluent
public final class LogSchedulePolicy extends SchedulePolicy {
    /*
     * Frequency of the log schedule operation of this policy in minutes.
     */
    @JsonProperty(value = "scheduleFrequencyInMins")
    private Integer scheduleFrequencyInMins;

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

    /**
     * Get the scheduleFrequencyInMins property: Frequency of the log schedule operation of this policy in minutes.
     *
     * @return the scheduleFrequencyInMins value.
     */
    public Integer scheduleFrequencyInMins() {
        return this.scheduleFrequencyInMins;
    }

    /**
     * Set the scheduleFrequencyInMins property: Frequency of the log schedule operation of this policy in minutes.
     *
     * @param scheduleFrequencyInMins the scheduleFrequencyInMins value to set.
     * @return the LogSchedulePolicy object itself.
     */
    public LogSchedulePolicy withScheduleFrequencyInMins(Integer scheduleFrequencyInMins) {
        this.scheduleFrequencyInMins = scheduleFrequencyInMins;
        return this;
    }

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