RestoreParametersBase Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. RestoreParametersBase
- com.
Implements
public class RestoreParametersBase
implements JsonSerializable<RestoreParametersBase>
Parameters to indicate the information about the restore.
Constructor Summary
Constructor | Description |
---|---|
RestoreParametersBase() |
Creates an instance of Restore |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Restore |
fromJson(JsonReader jsonReader)
Reads an instance of Restore |
String |
restoreSource()
Get the restore |
Offset |
restoreTimestampInUtc()
Get the restore |
Boolean |
restoreWithTtlDisabled()
Get the restore |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Restore |
withRestoreSource(String restoreSource)
Set the restore |
Restore |
withRestoreTimestampInUtc(OffsetDateTime restoreTimestampInUtc)
Set the restore |
Restore |
withRestoreWithTtlDisabled(Boolean restoreWithTtlDisabled)
Set the restore |
Methods inherited from java.lang.Object
Constructor Details
RestoreParametersBase
public RestoreParametersBase()
Creates an instance of RestoreParametersBase class.
Method Details
fromJson
public static RestoreParametersBase fromJson(JsonReader jsonReader)
Reads an instance of RestoreParametersBase from the JsonReader.
Parameters:
Returns:
Throws:
restoreSource
public String restoreSource()
Get the restoreSource property: The id of the restorable database account from which the restore has to be initiated. For example: /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{restorableDatabaseAccountName}.
Returns:
restoreTimestampInUtc
public OffsetDateTime restoreTimestampInUtc()
Get the restoreTimestampInUtc property: Time to which the account has to be restored (ISO-8601 format).
Returns:
restoreWithTtlDisabled
public Boolean restoreWithTtlDisabled()
Get the restoreWithTtlDisabled property: Specifies whether the restored account will have Time-To-Live disabled upon the successful restore.
Returns:
toJson
validate
public void validate()
Validates the instance.
withRestoreSource
public RestoreParametersBase withRestoreSource(String restoreSource)
Set the restoreSource property: The id of the restorable database account from which the restore has to be initiated. For example: /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{restorableDatabaseAccountName}.
Parameters:
Returns:
withRestoreTimestampInUtc
public RestoreParametersBase withRestoreTimestampInUtc(OffsetDateTime restoreTimestampInUtc)
Set the restoreTimestampInUtc property: Time to which the account has to be restored (ISO-8601 format).
Parameters:
Returns:
withRestoreWithTtlDisabled
public RestoreParametersBase withRestoreWithTtlDisabled(Boolean restoreWithTtlDisabled)
Set the restoreWithTtlDisabled property: Specifies whether the restored account will have Time-To-Live disabled upon the successful restore.
Parameters:
Returns:
Applies to
Azure SDK for Java