AutoScaleProperties Class

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

Implements

public final class AutoScaleProperties
implements JsonSerializable<AutoScaleProperties>

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

Constructor Summary

Constructor Description
AutoScaleProperties()

Creates an instance of AutoScaleProperties class.

Method Summary

Modifier and Type Method and Description
Boolean enabled()

Get the enabled property: Whether automatic scaling is enabled for the Big Data pool.

static AutoScaleProperties fromJson(JsonReader jsonReader)

Reads an instance of AutoScaleProperties from the JsonReader.

Integer maxNodeCount()

Get the maxNodeCount property: The maximum number of nodes the Big Data pool can support.

Integer minNodeCount()

Get the minNodeCount property: The minimum number of nodes the Big Data pool can support.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AutoScaleProperties withEnabled(Boolean enabled)

Set the enabled property: Whether automatic scaling is enabled for the Big Data pool.

AutoScaleProperties withMaxNodeCount(Integer maxNodeCount)

Set the maxNodeCount property: The maximum number of nodes the Big Data pool can support.

AutoScaleProperties withMinNodeCount(Integer minNodeCount)

Set the minNodeCount property: The minimum number of nodes the Big Data pool can support.

Methods inherited from java.lang.Object

Constructor Details

AutoScaleProperties

public AutoScaleProperties()

Creates an instance of AutoScaleProperties class.

Method Details

enabled

public Boolean enabled()

Get the enabled property: Whether automatic scaling is enabled for the Big Data pool.

Returns:

the enabled value.

fromJson

public static AutoScaleProperties fromJson(JsonReader jsonReader)

Reads an instance of AutoScaleProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AutoScaleProperties 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 AutoScaleProperties.

maxNodeCount

public Integer maxNodeCount()

Get the maxNodeCount property: The maximum number of nodes the Big Data pool can support.

Returns:

the maxNodeCount value.

minNodeCount

public Integer minNodeCount()

Get the minNodeCount property: The minimum number of nodes the Big Data pool can support.

Returns:

the minNodeCount value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEnabled

public AutoScaleProperties withEnabled(Boolean enabled)

Set the enabled property: Whether automatic scaling is enabled for the Big Data pool.

Parameters:

enabled - the enabled value to set.

Returns:

the AutoScaleProperties object itself.

withMaxNodeCount

public AutoScaleProperties withMaxNodeCount(Integer maxNodeCount)

Set the maxNodeCount property: The maximum number of nodes the Big Data pool can support.

Parameters:

maxNodeCount - the maxNodeCount value to set.

Returns:

the AutoScaleProperties object itself.

withMinNodeCount

public AutoScaleProperties withMinNodeCount(Integer minNodeCount)

Set the minNodeCount property: The minimum number of nodes the Big Data pool can support.

Parameters:

minNodeCount - the minNodeCount value to set.

Returns:

the AutoScaleProperties object itself.

Applies to