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

    Constructors
    Constructor
    Description
    Creates an instance of AutoPauseDelayTimeRange class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get 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).
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of AutoPauseDelayTimeRange from the JsonReader.
    Get the maxValue property: Maximum value.
    Get the minValue property: Minimum value.
    Get the stepSize property: Step value for discrete values between the minimum value and the maximum value.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    Get the unit property: Unit of time that delay is expressed in.
    void
    Validates the instance.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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

      public Integer minValue()
      Get the minValue property: Minimum value.
      Returns:
      the minValue value.
    • maxValue

      public Integer maxValue()
      Get the maxValue property: Maximum value.
      Returns:
      the maxValue 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.
    • defaultProperty

      public Integer defaultProperty()
      Get the defaultProperty property: Default value is no value is provided.
      Returns:
      the defaultProperty value.
    • unit

      public PauseDelayTimeUnit unit()
      Get the unit property: Unit of time that delay is expressed in.
      Returns:
      the unit value.
    • doNotPauseValue

      public Integer 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.