PerDatabaseAutoPauseDelayTimeRange Class

  • java.lang.Object
    • com.azure.resourcemanager.sql.models.PerDatabaseAutoPauseDelayTimeRange

Implements

public final class PerDatabaseAutoPauseDelayTimeRange
implements JsonSerializable<PerDatabaseAutoPauseDelayTimeRange>

Supported auto pause delay time range.

Method Summary

Modifier and Type Method and Description
Integer defaultProperty()

Get the defaultProperty property: Default value if no value is provided.

Integer doNotPauseValue()

Get the doNotPauseValue property: Value that is used to not pause (infinite delay before pause).

static PerDatabaseAutoPauseDelayTimeRange fromJson(JsonReader jsonReader)

Reads an instance of PerDatabaseAutoPauseDelayTimeRange from the JsonReader.

Integer maxValue()

Get the maxValue property: Maximum value.

Integer minValue()

Get the minValue property: Minimum value.

Integer stepSize()

Get the stepSize property: Step value for discrete values between the minimum value and the maximum value.

JsonWriter toJson(JsonWriter jsonWriter)
PauseDelayTimeUnit unit()

Get the unit property: Unit of time that delay is expressed in.

void validate()

Validates the instance.

Methods inherited from java.lang.Object

Method Details

defaultProperty

public Integer defaultProperty()

Get the defaultProperty property: Default value if no value is provided.

Returns:

the defaultProperty value.

doNotPauseValue

public Integer doNotPauseValue()

Get the doNotPauseValue property: Value that is used to not pause (infinite delay before pause).

Returns:

the doNotPauseValue value.

fromJson

public static PerDatabaseAutoPauseDelayTimeRange fromJson(JsonReader jsonReader)

Reads an instance of PerDatabaseAutoPauseDelayTimeRange from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

maxValue

public Integer maxValue()

Get the maxValue property: Maximum value.

Returns:

the maxValue value.

minValue

public Integer minValue()

Get the minValue property: Minimum value.

Returns:

the minValue value.

stepSize

public Integer stepSize()

Get the stepSize property: Step value for discrete values between the minimum value and the maximum value.

Returns:

the stepSize value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

unit

public PauseDelayTimeUnit unit()

Get the unit property: Unit of time that delay is expressed in.

Returns:

the unit value.

validate

public void validate()

Validates the instance.

Applies to