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

package com.azure.resourcemanager.desktopvirtualization.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** The time for a scaling action to occur. */
@Fluent
public final class Time {
    /*
     * The hour.
     */
    @JsonProperty(value = "hour", required = true)
    private int hour;

    /*
     * The minute.
     */
    @JsonProperty(value = "minute", required = true)
    private int minute;

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

    /**
     * Get the hour property: The hour.
     *
     * @return the hour value.
     */
    public int hour() {
        return this.hour;
    }

    /**
     * Set the hour property: The hour.
     *
     * @param hour the hour value to set.
     * @return the Time object itself.
     */
    public Time withHour(int hour) {
        this.hour = hour;
        return this;
    }

    /**
     * Get the minute property: The minute.
     *
     * @return the minute value.
     */
    public int minute() {
        return this.minute;
    }

    /**
     * Set the minute property: The minute.
     *
     * @param minute the minute value to set.
     * @return the Time object itself.
     */
    public Time withMinute(int minute) {
        this.minute = minute;
        return this;
    }

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