Class ResourceRestoreParameters
java.lang.Object
com.azure.resourcemanager.cosmos.models.RestoreParametersBase
com.azure.resourcemanager.cosmos.models.ResourceRestoreParameters
Parameters to indicate the information about the restore.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ResourceRestoreParameters class. -
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate()Validates the instance.withRestoreSource(String restoreSource) Set the restoreSource property: The id of the restorable database account from which the restore has to be initiated.withRestoreTimestampInUtc(OffsetDateTime restoreTimestampInUtc) Set the restoreTimestampInUtc property: Time to which the account has to be restored (ISO-8601 format).Methods inherited from class com.azure.resourcemanager.cosmos.models.RestoreParametersBase
restoreSource, restoreTimestampInUtc
-
Constructor Details
-
ResourceRestoreParameters
public ResourceRestoreParameters()Creates an instance of ResourceRestoreParameters class.
-
-
Method Details
-
withRestoreSource
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:
withRestoreSourcein classRestoreParametersBase- Parameters:
restoreSource- the restoreSource value to set.- Returns:
- the RestoreParametersBase object itself.
-
withRestoreTimestampInUtc
Set the restoreTimestampInUtc property: Time to which the account has to be restored (ISO-8601 format).- Overrides:
withRestoreTimestampInUtcin classRestoreParametersBase- Parameters:
restoreTimestampInUtc- the restoreTimestampInUtc value to set.- Returns:
- the RestoreParametersBase object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classRestoreParametersBase- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-