Class SyncBackupInstanceRequest
java.lang.Object
com.azure.resourcemanager.dataprotection.models.SyncBackupInstanceRequest
Sync BackupInstance Request.
-
Constructor Summary
ConstructorDescriptionCreates an instance of SyncBackupInstanceRequest class. -
Method Summary
Modifier and TypeMethodDescriptionsyncType()
Get the syncType property: Field indicating sync type e.g.void
validate()
Validates the instance.withSyncType
(SyncType syncType) Set the syncType property: Field indicating sync type e.g.
-
Constructor Details
-
SyncBackupInstanceRequest
public SyncBackupInstanceRequest()Creates an instance of SyncBackupInstanceRequest class.
-
-
Method Details
-
syncType
Get the syncType property: Field indicating sync type e.g. to sync only in case of failure or in all cases.- Returns:
- the syncType value.
-
withSyncType
Set the syncType property: Field indicating sync type e.g. to sync only in case of failure or in all cases.- Parameters:
syncType
- the syncType value to set.- Returns:
- the SyncBackupInstanceRequest object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-