Class AutoPauseDelayTimeRange
java.lang.Object
com.azure.resourcemanager.sql.models.AutoPauseDelayTimeRange
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AutoPauseDelayTimeRange>
public final class AutoPauseDelayTimeRange
extends Object
implements com.azure.json.JsonSerializable<AutoPauseDelayTimeRange>
Supported auto pause delay time range.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AutoPauseDelayTimeRange class. -
Method Summary
Modifier and TypeMethodDescriptionGet the defaultProperty property: Default value is no value is provided.Get the doNotPauseValue property: Value that is used to not pause (infinite delay before pause).static AutoPauseDelayTimeRangefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AutoPauseDelayTimeRange from the JsonReader.maxValue()Get the maxValue property: Maximum value.minValue()Get the minValue property: Minimum value.stepSize()Get the stepSize property: Step value for discrete values between the minimum value and the maximum value.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) unit()Get the unit property: Unit of time that delay is expressed in.voidvalidate()Validates the instance.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
AutoPauseDelayTimeRange
public AutoPauseDelayTimeRange()Creates an instance of AutoPauseDelayTimeRange class.
-
-
Method Details
-
minValue
-
maxValue
-
stepSize
Get the stepSize property: Step value for discrete values between the minimum value and the maximum value.- Returns:
- the stepSize value.
-
defaultProperty
Get the defaultProperty property: Default value is no value is provided.- Returns:
- the defaultProperty value.
-
unit
Get the unit property: Unit of time that delay is expressed in.- Returns:
- the unit value.
-
doNotPauseValue
Get the doNotPauseValue property: Value that is used to not pause (infinite delay before pause).- Returns:
- the doNotPauseValue value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AutoPauseDelayTimeRange>- Throws:
IOException
-
fromJson
public static AutoPauseDelayTimeRange fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AutoPauseDelayTimeRange from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AutoPauseDelayTimeRange 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 AutoPauseDelayTimeRange.
-