Class RestoreParameters
java.lang.Object
com.azure.resourcemanager.cosmos.models.RestoreParametersBase
com.azure.resourcemanager.cosmos.models.RestoreParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RestoreParametersBase>
Parameters to indicate the information about the restore.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the databasesToRestore property: List of specific databases available for restore.static RestoreParametersfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RestoreParameters from the JsonReader.Get the gremlinDatabasesToRestore property: List of specific gremlin databases available for restore.Get the restoreMode property: Describes the mode of the restore.Get the sourceBackupLocation property: The source backup location for restore.Get the tablesToRestore property: List of specific tables available for restore.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDatabasesToRestore(List<DatabaseRestoreResource> databasesToRestore) Set the databasesToRestore property: List of specific databases available for restore.withGremlinDatabasesToRestore(List<GremlinDatabaseRestoreResource> gremlinDatabasesToRestore) Set the gremlinDatabasesToRestore property: List of specific gremlin databases available for restore.withRestoreMode(RestoreMode restoreMode) Set the restoreMode property: Describes the mode of the restore.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).withRestoreWithTtlDisabled(Boolean restoreWithTtlDisabled) Set the restoreWithTtlDisabled property: Specifies whether the restored account will have Time-To-Live disabled upon the successful restore.withSourceBackupLocation(String sourceBackupLocation) Set the sourceBackupLocation property: The source backup location for restore.withTablesToRestore(List<String> tablesToRestore) Set the tablesToRestore property: List of specific tables available for restore.Methods inherited from class RestoreParametersBase
restoreSource, restoreTimestampInUtc, restoreWithTtlDisabledMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
RestoreParameters
public RestoreParameters()Creates an instance of RestoreParameters class.
-
-
Method Details
-
restoreMode
Get the restoreMode property: Describes the mode of the restore.- Returns:
- the restoreMode value.
-
withRestoreMode
Set the restoreMode property: Describes the mode of the restore.- Parameters:
restoreMode- the restoreMode value to set.- Returns:
- the RestoreParameters object itself.
-
databasesToRestore
Get the databasesToRestore property: List of specific databases available for restore.- Returns:
- the databasesToRestore value.
-
withDatabasesToRestore
Set the databasesToRestore property: List of specific databases available for restore.- Parameters:
databasesToRestore- the databasesToRestore value to set.- Returns:
- the RestoreParameters object itself.
-
gremlinDatabasesToRestore
Get the gremlinDatabasesToRestore property: List of specific gremlin databases available for restore.- Returns:
- the gremlinDatabasesToRestore value.
-
withGremlinDatabasesToRestore
public RestoreParameters withGremlinDatabasesToRestore(List<GremlinDatabaseRestoreResource> gremlinDatabasesToRestore) Set the gremlinDatabasesToRestore property: List of specific gremlin databases available for restore.- Parameters:
gremlinDatabasesToRestore- the gremlinDatabasesToRestore value to set.- Returns:
- the RestoreParameters object itself.
-
tablesToRestore
-
withTablesToRestore
Set the tablesToRestore property: List of specific tables available for restore.- Parameters:
tablesToRestore- the tablesToRestore value to set.- Returns:
- the RestoreParameters object itself.
-
sourceBackupLocation
Get the sourceBackupLocation property: The source backup location for restore.- Returns:
- the sourceBackupLocation value.
-
withSourceBackupLocation
Set the sourceBackupLocation property: The source backup location for restore.- Parameters:
sourceBackupLocation- the sourceBackupLocation value to set.- Returns:
- the RestoreParameters object itself.
-
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.
-
withRestoreWithTtlDisabled
Set the restoreWithTtlDisabled property: Specifies whether the restored account will have Time-To-Live disabled upon the successful restore.- Overrides:
withRestoreWithTtlDisabledin classRestoreParametersBase- Parameters:
restoreWithTtlDisabled- the restoreWithTtlDisabled 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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<RestoreParametersBase>- Overrides:
toJsonin classRestoreParametersBase- Throws:
IOException
-
fromJson
Reads an instance of RestoreParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RestoreParameters 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 RestoreParameters.
-