Partager via


ContinuousBackupInformation Class

  • java.lang.Object
    • com.azure.resourcemanager.cosmos.models.ContinuousBackupInformation

Implements

public final class ContinuousBackupInformation
implements JsonSerializable<ContinuousBackupInformation>

Information about the status of continuous backups.

Constructor Summary

Constructor Description
ContinuousBackupInformation()

Creates an instance of ContinuousBackupInformation class.

Method Summary

Modifier and Type Method and Description
static ContinuousBackupInformation fromJson(JsonReader jsonReader)

Reads an instance of ContinuousBackupInformation from the JsonReader.

String latestRestorableTimestamp()

Get the latestRestorableTimestamp property: The latest restorable timestamp for a resource.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ContinuousBackupInformation withLatestRestorableTimestamp(String latestRestorableTimestamp)

Set the latestRestorableTimestamp property: The latest restorable timestamp for a resource.

Methods inherited from java.lang.Object

Constructor Details

ContinuousBackupInformation

public ContinuousBackupInformation()

Creates an instance of ContinuousBackupInformation class.

Method Details

fromJson

public static ContinuousBackupInformation fromJson(JsonReader jsonReader)

Reads an instance of ContinuousBackupInformation from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ContinuousBackupInformation 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 ContinuousBackupInformation.

latestRestorableTimestamp

public String latestRestorableTimestamp()

Get the latestRestorableTimestamp property: The latest restorable timestamp for a resource.

Returns:

the latestRestorableTimestamp value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withLatestRestorableTimestamp

public ContinuousBackupInformation withLatestRestorableTimestamp(String latestRestorableTimestamp)

Set the latestRestorableTimestamp property: The latest restorable timestamp for a resource.

Parameters:

latestRestorableTimestamp - the latestRestorableTimestamp value to set.

Returns:

the ContinuousBackupInformation object itself.

Applies to