Class BlobRestoreParameters
java.lang.Object
com.azure.resourcemanager.storage.models.BlobRestoreParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BlobRestoreParameters>
public final class BlobRestoreParameters
extends Object
implements com.azure.json.JsonSerializable<BlobRestoreParameters>
Blob restore parameters.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the blobRanges property: Blob ranges to restore.static BlobRestoreParametersfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BlobRestoreParameters from the JsonReader.Get the timeToRestore property: Restore blob to the specified time.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withBlobRanges(List<BlobRestoreRange> blobRanges) Set the blobRanges property: Blob ranges to restore.withTimeToRestore(OffsetDateTime timeToRestore) Set the timeToRestore property: Restore blob to the specified time.Methods inherited from class java.lang.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
-
BlobRestoreParameters
public BlobRestoreParameters()Creates an instance of BlobRestoreParameters class.
-
-
Method Details
-
timeToRestore
Get the timeToRestore property: Restore blob to the specified time.- Returns:
- the timeToRestore value.
-
withTimeToRestore
Set the timeToRestore property: Restore blob to the specified time.- Parameters:
timeToRestore- the timeToRestore value to set.- Returns:
- the BlobRestoreParameters object itself.
-
blobRanges
Get the blobRanges property: Blob ranges to restore.- Returns:
- the blobRanges value.
-
withBlobRanges
Set the blobRanges property: Blob ranges to restore.- Parameters:
blobRanges- the blobRanges value to set.- Returns:
- the BlobRestoreParameters object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<BlobRestoreParameters>- Throws:
IOException
-
fromJson
public static BlobRestoreParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of BlobRestoreParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of BlobRestoreParameters if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the BlobRestoreParameters.
-