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

package com.azure.resourcemanager.machinelearning.models;

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

/** Auto pause properties. */
@Fluent
public final class AutoPauseProperties {
    /*
     * The delayInMinutes property.
     */
    @JsonProperty(value = "delayInMinutes")
    private Integer delayInMinutes;

    /*
     * The enabled property.
     */
    @JsonProperty(value = "enabled")
    private Boolean enabled;

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

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

    /**
     * Set the delayInMinutes property: The delayInMinutes property.
     *
     * @param delayInMinutes the delayInMinutes value to set.
     * @return the AutoPauseProperties object itself.
     */
    public AutoPauseProperties withDelayInMinutes(Integer delayInMinutes) {
        this.delayInMinutes = delayInMinutes;
        return this;
    }

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

    /**
     * Set the enabled property: The enabled property.
     *
     * @param enabled the enabled value to set.
     * @return the AutoPauseProperties object itself.
     */
    public AutoPauseProperties withEnabled(Boolean enabled) {
        this.enabled = enabled;
        return this;
    }

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