Class AzureWorkloadAutoProtectionIntent
- java.lang.Object
-
- com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionIntent
-
- com.azure.resourcemanager.recoveryservicesbackup.models.AzureRecoveryServiceVaultProtectionIntent
-
- com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadAutoProtectionIntent
-
- Direct Known Subclasses:
AzureWorkloadSqlAutoProtectionIntent
public class AzureWorkloadAutoProtectionIntent extends AzureRecoveryServiceVaultProtectionIntent
Azure Recovery Services Vault specific protection intent item.
-
-
Constructor Summary
Constructors Constructor Description AzureWorkloadAutoProtectionIntent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
validate()
Validates the instance.AzureWorkloadAutoProtectionIntent
withBackupManagementType(BackupManagementType backupManagementType)
Set the backupManagementType property: Type of backup management for the backed up item.AzureWorkloadAutoProtectionIntent
withItemId(String itemId)
Set the itemId property: ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId.AzureWorkloadAutoProtectionIntent
withPolicyId(String policyId)
Set the policyId property: ID of the backup policy with which this item is backed up.AzureWorkloadAutoProtectionIntent
withProtectionState(ProtectionStatus protectionState)
Set the protectionState property: Backup state of this backup item.AzureWorkloadAutoProtectionIntent
withSourceResourceId(String sourceResourceId)
Set the sourceResourceId property: ARM ID of the resource to be backed up.-
Methods inherited from class com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionIntent
backupManagementType, itemId, policyId, protectionState, sourceResourceId
-
-
-
-
Method Detail
-
withBackupManagementType
public AzureWorkloadAutoProtectionIntent withBackupManagementType(BackupManagementType backupManagementType)
Set the backupManagementType property: Type of backup management for the backed up item.- Overrides:
withBackupManagementType
in classAzureRecoveryServiceVaultProtectionIntent
- Parameters:
backupManagementType
- the backupManagementType value to set.- Returns:
- the ProtectionIntent object itself.
-
withSourceResourceId
public AzureWorkloadAutoProtectionIntent withSourceResourceId(String sourceResourceId)
Set the sourceResourceId property: ARM ID of the resource to be backed up.- Overrides:
withSourceResourceId
in classAzureRecoveryServiceVaultProtectionIntent
- Parameters:
sourceResourceId
- the sourceResourceId value to set.- Returns:
- the ProtectionIntent object itself.
-
withItemId
public AzureWorkloadAutoProtectionIntent withItemId(String itemId)
Set the itemId property: ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId.- Overrides:
withItemId
in classAzureRecoveryServiceVaultProtectionIntent
- Parameters:
itemId
- the itemId value to set.- Returns:
- the ProtectionIntent object itself.
-
withPolicyId
public AzureWorkloadAutoProtectionIntent withPolicyId(String policyId)
Set the policyId property: ID of the backup policy with which this item is backed up.- Overrides:
withPolicyId
in classAzureRecoveryServiceVaultProtectionIntent
- Parameters:
policyId
- the policyId value to set.- Returns:
- the ProtectionIntent object itself.
-
withProtectionState
public AzureWorkloadAutoProtectionIntent withProtectionState(ProtectionStatus protectionState)
Set the protectionState property: Backup state of this backup item.- Overrides:
withProtectionState
in classAzureRecoveryServiceVaultProtectionIntent
- Parameters:
protectionState
- the protectionState value to set.- Returns:
- the ProtectionIntent object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classAzureRecoveryServiceVaultProtectionIntent
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-