AutoPauseProperties.java
// 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.JsonProperty;
/** Spark pool auto-pausing properties Auto-pausing properties of a Big Data pool powered by Apache Spark. */
@Fluent
public final class AutoPauseProperties {
/*
* Number of minutes of idle time before the Big Data pool is automatically
* paused.
*/
@JsonProperty(value = "delayInMinutes")
private Integer delayInMinutes;
/*
* Whether auto-pausing is enabled for the Big Data pool.
*/
@JsonProperty(value = "enabled")
private Boolean enabled;
/**
* Get the delayInMinutes property: Number of minutes of idle time before the Big Data pool is automatically paused.
*
* @return the delayInMinutes value.
*/
public Integer getDelayInMinutes() {
return this.delayInMinutes;
}
/**
* Set the delayInMinutes property: Number of minutes of idle time before the Big Data pool is automatically paused.
*
* @param delayInMinutes the delayInMinutes value to set.
* @return the AutoPauseProperties object itself.
*/
public AutoPauseProperties setDelayInMinutes(Integer delayInMinutes) {
this.delayInMinutes = delayInMinutes;
return this;
}
/**
* Get the enabled property: Whether auto-pausing is enabled for the Big Data pool.
*
* @return the enabled value.
*/
public Boolean isEnabled() {
return this.enabled;
}
/**
* Set the enabled property: Whether auto-pausing is enabled for the Big Data pool.
*
* @param enabled the enabled value to set.
* @return the AutoPauseProperties object itself.
*/
public AutoPauseProperties setEnabled(Boolean enabled) {
this.enabled = enabled;
return this;
}
}