Udostępnij przez


BlobRestoreParameters Class

  • java.lang.Object
    • com.azure.resourcemanager.storage.models.BlobRestoreParameters

Implements

public final class BlobRestoreParameters
implements JsonSerializable<BlobRestoreParameters>

Blob restore parameters.

Constructor Summary

Constructor Description
BlobRestoreParameters()

Creates an instance of BlobRestoreParameters class.

Method Summary

Modifier and Type Method and Description
List<BlobRestoreRange> blobRanges()

Get the blobRanges property: Blob ranges to restore.

static BlobRestoreParameters fromJson(JsonReader jsonReader)

Reads an instance of BlobRestoreParameters from the JsonReader.

OffsetDateTime timeToRestore()

Get the timeToRestore property: Restore blob to the specified time.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

BlobRestoreParameters withBlobRanges(List<BlobRestoreRange> blobRanges)

Set the blobRanges property: Blob ranges to restore.

BlobRestoreParameters withTimeToRestore(OffsetDateTime timeToRestore)

Set the timeToRestore property: Restore blob to the specified time.

Methods inherited from java.lang.Object

Constructor Details

BlobRestoreParameters

public BlobRestoreParameters()

Creates an instance of BlobRestoreParameters class.

Method Details

blobRanges

public List<BlobRestoreRange> blobRanges()

Get the blobRanges property: Blob ranges to restore.

Returns:

the blobRanges value.

fromJson

public static BlobRestoreParameters fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

timeToRestore

public OffsetDateTime timeToRestore()

Get the timeToRestore property: Restore blob to the specified time.

Returns:

the timeToRestore value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

Applies to