Class BlobRestoreRange

java.lang.Object
com.azure.resourcemanager.storage.models.BlobRestoreRange
All Implemented Interfaces:
com.azure.json.JsonSerializable<BlobRestoreRange>

public final class BlobRestoreRange extends Object implements com.azure.json.JsonSerializable<BlobRestoreRange>
Blob range.
  • Constructor Details

    • BlobRestoreRange

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

    • startRange

      public String startRange()
      Get the startRange property: Blob start range. This is inclusive. Empty means account start.
      Returns:
      the startRange value.
    • withStartRange

      public BlobRestoreRange withStartRange(String startRange)
      Set the startRange property: Blob start range. This is inclusive. Empty means account start.
      Parameters:
      startRange - the startRange value to set.
      Returns:
      the BlobRestoreRange object itself.
    • endRange

      public String endRange()
      Get the endRange property: Blob end range. This is exclusive. Empty means account end.
      Returns:
      the endRange value.
    • withEndRange

      public BlobRestoreRange withEndRange(String endRange)
      Set the endRange property: Blob end range. This is exclusive. Empty means account end.
      Parameters:
      endRange - the endRange value to set.
      Returns:
      the BlobRestoreRange 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<BlobRestoreRange>
      Throws:
      IOException
    • fromJson

      public static BlobRestoreRange fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of BlobRestoreRange from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of BlobRestoreRange 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 BlobRestoreRange.