Class ProtectionIntent
java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionIntent
- Direct Known Subclasses:
AzureRecoveryServiceVaultProtectionIntent
,AzureResourceProtectionIntent
,AzureWorkloadContainerAutoProtectionIntent
Base class for backup ProtectionIntent.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the backupManagementType property: Type of backup management for the backed up item.itemId()
Get the itemId property: ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId.policyId()
Get the policyId property: ID of the backup policy with which this item is backed up.Get the protectionState property: Backup state of this backup item.Get the sourceResourceId property: ARM ID of the resource to be backed up.void
validate()
Validates the instance.withBackupManagementType
(BackupManagementType backupManagementType) Set the backupManagementType property: Type of backup management for the backed up item.withItemId
(String itemId) Set the itemId property: ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId.withPolicyId
(String policyId) Set the policyId property: ID of the backup policy with which this item is backed up.withProtectionState
(ProtectionStatus protectionState) Set the protectionState property: Backup state of this backup item.withSourceResourceId
(String sourceResourceId) Set the sourceResourceId property: ARM ID of the resource to be backed up.
-
Constructor Details
-
ProtectionIntent
public ProtectionIntent()Creates an instance of ProtectionIntent class.
-
-
Method Details
-
backupManagementType
Get the backupManagementType property: Type of backup management for the backed up item.- Returns:
- the backupManagementType value.
-
withBackupManagementType
Set the backupManagementType property: Type of backup management for the backed up item.- Parameters:
backupManagementType
- the backupManagementType value to set.- Returns:
- the ProtectionIntent object itself.
-
sourceResourceId
Get the sourceResourceId property: ARM ID of the resource to be backed up.- Returns:
- the sourceResourceId value.
-
withSourceResourceId
Set the sourceResourceId property: ARM ID of the resource to be backed up.- Parameters:
sourceResourceId
- the sourceResourceId value to set.- Returns:
- the ProtectionIntent object itself.
-
itemId
Get the itemId property: ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId.- Returns:
- the itemId value.
-
withItemId
Set the itemId property: ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId.- Parameters:
itemId
- the itemId value to set.- Returns:
- the ProtectionIntent object itself.
-
policyId
Get the policyId property: ID of the backup policy with which this item is backed up.- Returns:
- the policyId value.
-
withPolicyId
Set the policyId property: ID of the backup policy with which this item is backed up.- Parameters:
policyId
- the policyId value to set.- Returns:
- the ProtectionIntent object itself.
-
protectionState
Get the protectionState property: Backup state of this backup item.- Returns:
- the protectionState value.
-
withProtectionState
Set the protectionState property: Backup state of this backup item.- Parameters:
protectionState
- the protectionState value to set.- Returns:
- the ProtectionIntent object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-