Class RestorableTimeRange
- java.lang.Object
-
- com.azure.resourcemanager.dataprotection.models.RestorableTimeRange
-
public final class RestorableTimeRange extends Object
The RestorableTimeRange model.
-
-
Constructor Summary
Constructors Constructor Description RestorableTimeRange()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
endTime()
Get the endTime property: End time for the available restore range.String
objectType()
Get the objectType property: The objectType property.String
startTime()
Get the startTime property: Start time for the available restore range.void
validate()
Validates the instance.RestorableTimeRange
withEndTime(String endTime)
Set the endTime property: End time for the available restore range.RestorableTimeRange
withObjectType(String objectType)
Set the objectType property: The objectType property.RestorableTimeRange
withStartTime(String startTime)
Set the startTime property: Start time for the available restore range.
-
-
-
Method Detail
-
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.
-
-