Class RestorePointProperties
java.lang.Object
com.azure.resourcemanager.sql.fluent.models.RestorePointProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RestorePointProperties>
public final class RestorePointProperties
extends Object
implements com.azure.json.JsonSerializable<RestorePointProperties>
Properties of a database restore point.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of RestorePointProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the earliestRestoreDate property: The earliest time to which this database can be restored.static RestorePointPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RestorePointProperties from the JsonReader.Get the restorePointCreationDate property: The time the backup was taken.Get the restorePointLabel property: The label of restore point for backup request by user.Get the restorePointType property: The type of restore point.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) 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
-
RestorePointProperties
public RestorePointProperties()Creates an instance of RestorePointProperties class.
-
-
Method Details
-
restorePointType
Get the restorePointType property: The type of restore point.- Returns:
- the restorePointType value.
-
earliestRestoreDate
Get the earliestRestoreDate property: The earliest time to which this database can be restored.- Returns:
- the earliestRestoreDate value.
-
restorePointCreationDate
Get the restorePointCreationDate property: The time the backup was taken.- Returns:
- the restorePointCreationDate value.
-
restorePointLabel
Get the restorePointLabel property: The label of restore point for backup request by user.- Returns:
- the restorePointLabel 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<RestorePointProperties>- Throws:
IOException
-
fromJson
public static RestorePointProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of RestorePointProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RestorePointProperties 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 RestorePointProperties.
-