ResourceRestoreParameters Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. RestoreParametersBase - com.
azure. resourcemanager. cosmos. models. ResourceRestoreParameters
- com.
- com.
public final class ResourceRestoreParameters
extends RestoreParametersBase
Parameters to indicate the information about the restore.
Constructor Summary
Constructor | Description |
---|---|
ResourceRestoreParameters() |
Creates an instance of Resource |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Resource |
fromJson(JsonReader jsonReader)
Reads an instance of Resource |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Resource |
withRestoreSource(String restoreSource)
Set the restore |
Resource |
withRestoreTimestampInUtc(OffsetDateTime restoreTimestampInUtc)
Set the restore |
Resource |
withRestoreWithTtlDisabled(Boolean restoreWithTtlDisabled)
Set the restore |
Methods inherited from RestoreParametersBase
Methods inherited from java.lang.Object
Constructor Details
ResourceRestoreParameters
public ResourceRestoreParameters()
Creates an instance of ResourceRestoreParameters class.
Method Details
fromJson
public static ResourceRestoreParameters fromJson(JsonReader jsonReader)
Reads an instance of ResourceRestoreParameters from the JsonReader.
Parameters:
Returns:
Throws:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
ResourceRestoreParameters.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
Overrides:
ResourceRestoreParameters.validate()withRestoreSource
public ResourceRestoreParameters 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}.
Overrides:
ResourceRestoreParameters.withRestoreSource(String restoreSource)Parameters:
withRestoreTimestampInUtc
public ResourceRestoreParameters withRestoreTimestampInUtc(OffsetDateTime restoreTimestampInUtc)
Set the restoreTimestampInUtc property: Time to which the account has to be restored (ISO-8601 format).
Overrides:
ResourceRestoreParameters.withRestoreTimestampInUtc(OffsetDateTime restoreTimestampInUtc)Parameters:
withRestoreWithTtlDisabled
public ResourceRestoreParameters withRestoreWithTtlDisabled(Boolean restoreWithTtlDisabled)
Set the restoreWithTtlDisabled property: Specifies whether the restored account will have Time-To-Live disabled upon the successful restore.
Overrides:
ResourceRestoreParameters.withRestoreWithTtlDisabled(Boolean restoreWithTtlDisabled)Parameters:
Applies to
Azure SDK for Java