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 ContinuousModeBackupPolicyfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ContinuousModeBackupPolicy from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Describes the mode of backups.voidvalidate()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 BackupPolicy
migrationStateMethods 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
-
ContinuousModeBackupPolicy
public ContinuousModeBackupPolicy()Creates an instance of ContinuousModeBackupPolicy class.
-
-
Method Details
-
type
Get the type property: Describes the mode of backups.- Overrides:
typein 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:
withMigrationStatein classBackupPolicy- Parameters:
migrationState- the migrationState value to set.- Returns:
- the BackupPolicy object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classBackupPolicy- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<BackupPolicy>- Overrides:
toJsonin 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.
-