AutoPauseProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.synapse.models.AutoPauseProperties

Implements

public final class AutoPauseProperties
implements JsonSerializable<AutoPauseProperties>

Spark pool auto-pausing properties Auto-pausing properties of a Big Data pool powered by Apache Spark.

Constructor Summary

Constructor Description
AutoPauseProperties()

Creates an instance of AutoPauseProperties class.

Method Summary

Modifier and Type Method and Description
Integer delayInMinutes()

Get the delayInMinutes property: Number of minutes of idle time before the Big Data pool is automatically paused.

Boolean enabled()

Get the enabled property: Whether auto-pausing is enabled for the Big Data pool.

static AutoPauseProperties fromJson(JsonReader jsonReader)

Reads an instance of AutoPauseProperties from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AutoPauseProperties withDelayInMinutes(Integer delayInMinutes)

Set the delayInMinutes property: Number of minutes of idle time before the Big Data pool is automatically paused.

AutoPauseProperties withEnabled(Boolean enabled)

Set the enabled property: Whether auto-pausing is enabled for the Big Data pool.

Methods inherited from java.lang.Object

Constructor Details

AutoPauseProperties

public AutoPauseProperties()

Creates an instance of AutoPauseProperties class.

Method Details

delayInMinutes

public Integer delayInMinutes()

Get the delayInMinutes property: Number of minutes of idle time before the Big Data pool is automatically paused.

Returns:

the delayInMinutes value.

enabled

public Boolean enabled()

Get the enabled property: Whether auto-pausing is enabled for the Big Data pool.

Returns:

the enabled value.

fromJson

public static AutoPauseProperties fromJson(JsonReader jsonReader)

Reads an instance of AutoPauseProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AutoPauseProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the AutoPauseProperties.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDelayInMinutes

public AutoPauseProperties withDelayInMinutes(Integer delayInMinutes)

Set the delayInMinutes property: Number of minutes of idle time before the Big Data pool is automatically paused.

Parameters:

delayInMinutes - the delayInMinutes value to set.

Returns:

the AutoPauseProperties object itself.

withEnabled

public AutoPauseProperties withEnabled(Boolean enabled)

Set the enabled property: Whether auto-pausing is enabled for the Big Data pool.

Parameters:

enabled - the enabled value to set.

Returns:

the AutoPauseProperties object itself.

Applies to