RestoreParameters Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. RestoreParametersBase - com.
azure. resourcemanager. cosmos. models. RestoreParameters
- com.
- com.
public final class RestoreParameters
extends RestoreParametersBase
Parameters to indicate the information about the restore.
Constructor Summary
Constructor | Description |
---|---|
RestoreParameters() |
Creates an instance of Restore |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<Database |
databasesToRestore()
Get the databases |
static
Restore |
fromJson(JsonReader jsonReader)
Reads an instance of Restore |
List<Gremlin |
gremlinDatabasesToRestore()
Get the gremlin |
Restore |
restoreMode()
Get the restore |
List<String> |
tablesToRestore()
Get the tables |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Restore |
withDatabasesToRestore(List<DatabaseRestoreResource> databasesToRestore)
Set the databases |
Restore |
withGremlinDatabasesToRestore(List<GremlinDatabaseRestoreResource> gremlinDatabasesToRestore)
Set the gremlin |
Restore |
withRestoreMode(RestoreMode restoreMode)
Set the restore |
Restore |
withRestoreSource(String restoreSource)
Set the restore |
Restore |
withRestoreTimestampInUtc(OffsetDateTime restoreTimestampInUtc)
Set the restore |
Restore |
withRestoreWithTtlDisabled(Boolean restoreWithTtlDisabled)
Set the restore |
Restore |
withTablesToRestore(List<String> tablesToRestore)
Set the tables |
Methods inherited from RestoreParametersBase
Methods inherited from java.lang.Object
Constructor Details
RestoreParameters
public RestoreParameters()
Creates an instance of RestoreParameters class.
Method Details
databasesToRestore
public List
Get the databasesToRestore property: List of specific databases available for restore.
Returns:
fromJson
public static RestoreParameters fromJson(JsonReader jsonReader)
Reads an instance of RestoreParameters from the JsonReader.
Parameters:
Returns:
Throws:
gremlinDatabasesToRestore
public List
Get the gremlinDatabasesToRestore property: List of specific gremlin databases available for restore.
Returns:
restoreMode
public RestoreMode restoreMode()
Get the restoreMode property: Describes the mode of the restore.
Returns:
tablesToRestore
public List
Get the tablesToRestore property: List of specific tables available for restore.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
RestoreParameters.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
Overrides:
RestoreParameters.validate()withDatabasesToRestore
public RestoreParameters withDatabasesToRestore(List
Set the databasesToRestore property: List of specific databases available for restore.
Parameters:
Returns:
withGremlinDatabasesToRestore
public RestoreParameters withGremlinDatabasesToRestore(List
Set the gremlinDatabasesToRestore property: List of specific gremlin databases available for restore.
Parameters:
Returns:
withRestoreMode
public RestoreParameters withRestoreMode(RestoreMode restoreMode)
Set the restoreMode property: Describes the mode of the restore.
Parameters:
Returns:
withRestoreSource
public RestoreParameters 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:
RestoreParameters.withRestoreSource(String restoreSource)Parameters:
withRestoreTimestampInUtc
public RestoreParameters withRestoreTimestampInUtc(OffsetDateTime restoreTimestampInUtc)
Set the restoreTimestampInUtc property: Time to which the account has to be restored (ISO-8601 format).
Overrides:
RestoreParameters.withRestoreTimestampInUtc(OffsetDateTime restoreTimestampInUtc)Parameters:
withRestoreWithTtlDisabled
public RestoreParameters withRestoreWithTtlDisabled(Boolean restoreWithTtlDisabled)
Set the restoreWithTtlDisabled property: Specifies whether the restored account will have Time-To-Live disabled upon the successful restore.
Overrides:
RestoreParameters.withRestoreWithTtlDisabled(Boolean restoreWithTtlDisabled)Parameters:
withTablesToRestore
public RestoreParameters withTablesToRestore(List
Set the tablesToRestore property: List of specific tables available for restore.
Parameters:
Returns:
Applies to
Azure SDK for Java