Class AzureWorkloadSqlAutoProtectionIntent
- java.lang.Object
-
- com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionIntent
-
- com.azure.resourcemanager.recoveryservicesbackup.models.AzureRecoveryServiceVaultProtectionIntent
-
- com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadAutoProtectionIntent
-
- com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadSqlAutoProtectionIntent
-
public final class AzureWorkloadSqlAutoProtectionIntent extends AzureWorkloadAutoProtectionIntent
Azure Workload SQL Auto Protection intent item.
-
-
Constructor Summary
Constructors Constructor Description AzureWorkloadSqlAutoProtectionIntent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
validate()
Validates the instance.AzureWorkloadSqlAutoProtectionIntent
withBackupManagementType(BackupManagementType backupManagementType)
Set the backupManagementType property: Type of backup management for the backed up item.AzureWorkloadSqlAutoProtectionIntent
withItemId(String itemId)
Set the itemId property: ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId.AzureWorkloadSqlAutoProtectionIntent
withPolicyId(String policyId)
Set the policyId property: ID of the backup policy with which this item is backed up.AzureWorkloadSqlAutoProtectionIntent
withProtectionState(ProtectionStatus protectionState)
Set the protectionState property: Backup state of this backup item.AzureWorkloadSqlAutoProtectionIntent
withSourceResourceId(String sourceResourceId)
Set the sourceResourceId property: ARM ID of the resource to be backed up.AzureWorkloadSqlAutoProtectionIntent
withWorkloadItemType(WorkloadItemType workloadItemType)
Set the workloadItemType property: Workload item type of the item for which intent is to be set.WorkloadItemType
workloadItemType()
Get the workloadItemType property: Workload item type of the item for which intent is to be set.-
Methods inherited from class com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionIntent
backupManagementType, itemId, policyId, protectionState, sourceResourceId
-
-
-
-
Method Detail
-
workloadItemType
public WorkloadItemType workloadItemType()
Get the workloadItemType property: Workload item type of the item for which intent is to be set.- Returns:
- the workloadItemType value.
-
withWorkloadItemType
public AzureWorkloadSqlAutoProtectionIntent withWorkloadItemType(WorkloadItemType workloadItemType)
Set the workloadItemType property: Workload item type of the item for which intent is to be set.- Parameters:
workloadItemType
- the workloadItemType value to set.- Returns:
- the AzureWorkloadSqlAutoProtectionIntent object itself.
-
withBackupManagementType
public AzureWorkloadSqlAutoProtectionIntent withBackupManagementType(BackupManagementType backupManagementType)
Set the backupManagementType property: Type of backup management for the backed up item.- Overrides:
withBackupManagementType
in classAzureWorkloadAutoProtectionIntent
- Parameters:
backupManagementType
- the backupManagementType value to set.- Returns:
- the ProtectionIntent object itself.
-
withSourceResourceId
public AzureWorkloadSqlAutoProtectionIntent withSourceResourceId(String sourceResourceId)
Set the sourceResourceId property: ARM ID of the resource to be backed up.- Overrides:
withSourceResourceId
in classAzureWorkloadAutoProtectionIntent
- Parameters:
sourceResourceId
- the sourceResourceId value to set.- Returns:
- the ProtectionIntent object itself.
-
withItemId
public AzureWorkloadSqlAutoProtectionIntent 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 classAzureWorkloadAutoProtectionIntent
- Parameters:
itemId
- the itemId value to set.- Returns:
- the ProtectionIntent object itself.
-
withPolicyId
public AzureWorkloadSqlAutoProtectionIntent withPolicyId(String policyId)
Set the policyId property: ID of the backup policy with which this item is backed up.- Overrides:
withPolicyId
in classAzureWorkloadAutoProtectionIntent
- Parameters:
policyId
- the policyId value to set.- Returns:
- the ProtectionIntent object itself.
-
withProtectionState
public AzureWorkloadSqlAutoProtectionIntent withProtectionState(ProtectionStatus protectionState)
Set the protectionState property: Backup state of this backup item.- Overrides:
withProtectionState
in classAzureWorkloadAutoProtectionIntent
- Parameters:
protectionState
- the protectionState value to set.- Returns:
- the ProtectionIntent object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classAzureWorkloadAutoProtectionIntent
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-