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 Details

    • BlobRestoreParameters

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

    • timeToRestore

      public OffsetDateTime timeToRestore()
      Get the timeToRestore property: Restore blob to the specified time.
      Returns:
      the timeToRestore value.
    • withTimeToRestore

      public BlobRestoreParameters withTimeToRestore(OffsetDateTime timeToRestore)
      Set the timeToRestore property: Restore blob to the specified time.
      Parameters:
      timeToRestore - the timeToRestore value to set.
      Returns:
      the BlobRestoreParameters object itself.
    • blobRanges

      public List<BlobRestoreRange> blobRanges()
      Get the blobRanges property: Blob ranges to restore.
      Returns:
      the blobRanges value.
    • withBlobRanges

      public BlobRestoreParameters withBlobRanges(List<BlobRestoreRange> blobRanges)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.