Class RestorableTimeRange

java.lang.Object
com.azure.resourcemanager.dataprotection.models.RestorableTimeRange

public final class RestorableTimeRange extends Object
The RestorableTimeRange model.
  • Constructor Details

    • RestorableTimeRange

      public RestorableTimeRange()
      Creates an instance of RestorableTimeRange class.
  • Method Details

    • startTime

      public String startTime()
      Get the startTime property: Start time for the available restore range.
      Returns:
      the startTime value.
    • withStartTime

      public RestorableTimeRange withStartTime(String startTime)
      Set the startTime property: Start time for the available restore range.
      Parameters:
      startTime - the startTime value to set.
      Returns:
      the RestorableTimeRange object itself.
    • endTime

      public String endTime()
      Get the endTime property: End time for the available restore range.
      Returns:
      the endTime value.
    • withEndTime

      public RestorableTimeRange withEndTime(String endTime)
      Set the endTime property: End time for the available restore range.
      Parameters:
      endTime - the endTime value to set.
      Returns:
      the RestorableTimeRange object itself.
    • objectType

      public String objectType()
      Get the objectType property: The objectType property.
      Returns:
      the objectType value.
    • withObjectType

      public RestorableTimeRange withObjectType(String objectType)
      Set the objectType property: The objectType property.
      Parameters:
      objectType - the objectType value to set.
      Returns:
      the RestorableTimeRange object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.