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

package com.azure.analytics.synapse.artifacts.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/** The recurrence schedule. */
@Fluent
public final class RecurrenceSchedule {
    /*
     * The minutes.
     */
    @JsonProperty(value = "minutes")
    private List<Integer> minutes;

    /*
     * The hours.
     */
    @JsonProperty(value = "hours")
    private List<Integer> hours;

    /*
     * The days of the week.
     */
    @JsonProperty(value = "weekDays")
    private List<DayOfWeek> weekDays;

    /*
     * The month days.
     */
    @JsonProperty(value = "monthDays")
    private List<Integer> monthDays;

    /*
     * The monthly occurrences.
     */
    @JsonProperty(value = "monthlyOccurrences")
    private List<RecurrenceScheduleOccurrence> monthlyOccurrences;

    /*
     * The recurrence schedule.
     */
    @JsonIgnore private Map<String, Object> additionalProperties;

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

    /**
     * Get the minutes property: The minutes.
     *
     * @return the minutes value.
     */
    public List<Integer> getMinutes() {
        return this.minutes;
    }

    /**
     * Set the minutes property: The minutes.
     *
     * @param minutes the minutes value to set.
     * @return the RecurrenceSchedule object itself.
     */
    public RecurrenceSchedule setMinutes(List<Integer> minutes) {
        this.minutes = minutes;
        return this;
    }

    /**
     * Get the hours property: The hours.
     *
     * @return the hours value.
     */
    public List<Integer> getHours() {
        return this.hours;
    }

    /**
     * Set the hours property: The hours.
     *
     * @param hours the hours value to set.
     * @return the RecurrenceSchedule object itself.
     */
    public RecurrenceSchedule setHours(List<Integer> hours) {
        this.hours = hours;
        return this;
    }

    /**
     * Get the weekDays property: The days of the week.
     *
     * @return the weekDays value.
     */
    public List<DayOfWeek> getWeekDays() {
        return this.weekDays;
    }

    /**
     * Set the weekDays property: The days of the week.
     *
     * @param weekDays the weekDays value to set.
     * @return the RecurrenceSchedule object itself.
     */
    public RecurrenceSchedule setWeekDays(List<DayOfWeek> weekDays) {
        this.weekDays = weekDays;
        return this;
    }

    /**
     * Get the monthDays property: The month days.
     *
     * @return the monthDays value.
     */
    public List<Integer> getMonthDays() {
        return this.monthDays;
    }

    /**
     * Set the monthDays property: The month days.
     *
     * @param monthDays the monthDays value to set.
     * @return the RecurrenceSchedule object itself.
     */
    public RecurrenceSchedule setMonthDays(List<Integer> monthDays) {
        this.monthDays = monthDays;
        return this;
    }

    /**
     * Get the monthlyOccurrences property: The monthly occurrences.
     *
     * @return the monthlyOccurrences value.
     */
    public List<RecurrenceScheduleOccurrence> getMonthlyOccurrences() {
        return this.monthlyOccurrences;
    }

    /**
     * Set the monthlyOccurrences property: The monthly occurrences.
     *
     * @param monthlyOccurrences the monthlyOccurrences value to set.
     * @return the RecurrenceSchedule object itself.
     */
    public RecurrenceSchedule setMonthlyOccurrences(List<RecurrenceScheduleOccurrence> monthlyOccurrences) {
        this.monthlyOccurrences = monthlyOccurrences;
        return this;
    }

    /**
     * Get the additionalProperties property: The recurrence schedule.
     *
     * @return the additionalProperties value.
     */
    @JsonAnyGetter
    public Map<String, Object> getAdditionalProperties() {
        return this.additionalProperties;
    }

    /**
     * Set the additionalProperties property: The recurrence schedule.
     *
     * @param additionalProperties the additionalProperties value to set.
     * @return the RecurrenceSchedule object itself.
     */
    public RecurrenceSchedule setAdditionalProperties(Map<String, Object> additionalProperties) {
        this.additionalProperties = additionalProperties;
        return this;
    }

    @JsonAnySetter
    void setAdditionalProperties(String key, Object value) {
        if (additionalProperties == null) {
            additionalProperties = new HashMap<>();
        }
        additionalProperties.put(key, value);
    }
}
