Class RestoreParametersBase
java.lang.Object
com.azure.resourcemanager.cosmos.models.RestoreParametersBase
- Direct Known Subclasses:
ResourceRestoreParameters,RestoreParameters
Parameters to indicate the information about the restore.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the restoreSource property: The id of the restorable database account from which the restore has to be initiated.Get the restoreTimestampInUtc property: Time to which the account has to be restored (ISO-8601 format).voidvalidate()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).
-
Constructor Details
-
RestoreParametersBase
public RestoreParametersBase()Creates an instance of RestoreParametersBase class.
-
-
Method Details
-
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:
- the restoreSource value.
-
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}.- Parameters:
restoreSource- the restoreSource value to set.- Returns:
- the RestoreParametersBase object itself.
-
restoreTimestampInUtc
Get the restoreTimestampInUtc property: Time to which the account has to be restored (ISO-8601 format).- Returns:
- the restoreTimestampInUtc value.
-
withRestoreTimestampInUtc
Set the restoreTimestampInUtc property: Time to which the account has to be restored (ISO-8601 format).- Parameters:
restoreTimestampInUtc- the restoreTimestampInUtc value to set.- Returns:
- the RestoreParametersBase object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-