Class PointInTimeRange
- java.lang.Object
-
- com.azure.resourcemanager.recoveryservicesbackup.models.PointInTimeRange
-
public final class PointInTimeRange extends Object
Provides details for log ranges.
-
-
Constructor Summary
Constructors Constructor Description PointInTimeRange()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OffsetDateTime
endTime()
Get the endTime property: End time of the time range for log recovery.OffsetDateTime
startTime()
Get the startTime property: Start time of the time range for log recovery.void
validate()
Validates the instance.PointInTimeRange
withEndTime(OffsetDateTime endTime)
Set the endTime property: End time of the time range for log recovery.PointInTimeRange
withStartTime(OffsetDateTime startTime)
Set the startTime property: Start time of the time range for log recovery.
-
-
-
Method Detail
-
startTime
public OffsetDateTime startTime()
Get the startTime property: Start time of the time range for log recovery.- Returns:
- the startTime value.
-
withStartTime
public PointInTimeRange withStartTime(OffsetDateTime startTime)
Set the startTime property: Start time of the time range for log recovery.- Parameters:
startTime
- the startTime value to set.- Returns:
- the PointInTimeRange object itself.
-
endTime
public OffsetDateTime endTime()
Get the endTime property: End time of the time range for log recovery.- Returns:
- the endTime value.
-
withEndTime
public PointInTimeRange withEndTime(OffsetDateTime endTime)
Set the endTime property: End time of the time range for log recovery.- Parameters:
endTime
- the endTime value to set.- Returns:
- the PointInTimeRange object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-