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

package com.azure.resourcemanager.devcenter.models;

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

/** Stop on disconnect configuration settings for Dev Boxes created in this pool. */
@Fluent
public final class StopOnDisconnectConfiguration {
    /*
     * Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled.
     */
    @JsonProperty(value = "status")
    private StopOnDisconnectEnableStatus status;

    /*
     * The specified time in minutes to wait before stopping a Dev Box once disconnect is detected.
     */
    @JsonProperty(value = "gracePeriodMinutes")
    private Integer gracePeriodMinutes;

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

    /**
     * Get the status property: Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed
     * is enabled.
     *
     * @return the status value.
     */
    public StopOnDisconnectEnableStatus status() {
        return this.status;
    }

    /**
     * Set the status property: Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed
     * is enabled.
     *
     * @param status the status value to set.
     * @return the StopOnDisconnectConfiguration object itself.
     */
    public StopOnDisconnectConfiguration withStatus(StopOnDisconnectEnableStatus status) {
        this.status = status;
        return this;
    }

    /**
     * Get the gracePeriodMinutes property: The specified time in minutes to wait before stopping a Dev Box once
     * disconnect is detected.
     *
     * @return the gracePeriodMinutes value.
     */
    public Integer gracePeriodMinutes() {
        return this.gracePeriodMinutes;
    }

    /**
     * Set the gracePeriodMinutes property: The specified time in minutes to wait before stopping a Dev Box once
     * disconnect is detected.
     *
     * @param gracePeriodMinutes the gracePeriodMinutes value to set.
     * @return the StopOnDisconnectConfiguration object itself.
     */
    public StopOnDisconnectConfiguration withGracePeriodMinutes(Integer gracePeriodMinutes) {
        this.gracePeriodMinutes = gracePeriodMinutes;
        return this;
    }

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