Class ContinuousModeBackupPolicy
java.lang.Object
com.azure.resourcemanager.cosmos.models.BackupPolicy
com.azure.resourcemanager.cosmos.models.ContinuousModeBackupPolicy
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BackupPolicy>
The object representing continuous mode backup policy.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ContinuousModeBackupPolicy class. -
Method Summary
Modifier and TypeMethodDescriptionGet the continuousModeProperties property: Configuration values for continuous mode backup.static ContinuousModeBackupPolicy
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ContinuousModeBackupPolicy from the JsonReader.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) type()
Get the type property: Describes the mode of backups.void
validate()
Validates the instance.withContinuousModeProperties
(ContinuousModeProperties continuousModeProperties) Set the continuousModeProperties property: Configuration values for continuous mode backup.withMigrationState
(BackupPolicyMigrationState migrationState) Set the migrationState property: The object representing the state of the migration between the backup policies.Methods inherited from class com.azure.resourcemanager.cosmos.models.BackupPolicy
migrationState
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ContinuousModeBackupPolicy
public ContinuousModeBackupPolicy()Creates an instance of ContinuousModeBackupPolicy class.
-
-
Method Details
-
type
Get the type property: Describes the mode of backups.- Overrides:
type
in classBackupPolicy
- Returns:
- the type value.
-
continuousModeProperties
Get the continuousModeProperties property: Configuration values for continuous mode backup.- Returns:
- the continuousModeProperties value.
-
withContinuousModeProperties
public ContinuousModeBackupPolicy withContinuousModeProperties(ContinuousModeProperties continuousModeProperties) Set the continuousModeProperties property: Configuration values for continuous mode backup.- Parameters:
continuousModeProperties
- the continuousModeProperties value to set.- Returns:
- the ContinuousModeBackupPolicy object itself.
-
withMigrationState
Set the migrationState property: The object representing the state of the migration between the backup policies.- Overrides:
withMigrationState
in classBackupPolicy
- Parameters:
migrationState
- the migrationState value to set.- Returns:
- the BackupPolicy object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classBackupPolicy
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<BackupPolicy>
- Overrides:
toJson
in classBackupPolicy
- Throws:
IOException
-
fromJson
public static ContinuousModeBackupPolicy fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ContinuousModeBackupPolicy from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of ContinuousModeBackupPolicy 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 ContinuousModeBackupPolicy.
-