Class AzureVmWorkloadProtectionPolicy
- java.lang.Object
-
- com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionPolicy
-
- com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadProtectionPolicy
-
public final class AzureVmWorkloadProtectionPolicy extends ProtectionPolicy
Azure VM (Mercury) workload-specific backup policy.
-
-
Constructor Summary
Constructors Constructor Description AzureVmWorkloadProtectionPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
makePolicyConsistent()
Get the makePolicyConsistent property: Fix the policy inconsistency.Settings
settings()
Get the settings property: Common settings for the backup management.List<SubProtectionPolicy>
subProtectionPolicy()
Get the subProtectionPolicy property: List of sub-protection policies which includes schedule and retention.void
validate()
Validates the instance.AzureVmWorkloadProtectionPolicy
withMakePolicyConsistent(Boolean makePolicyConsistent)
Set the makePolicyConsistent property: Fix the policy inconsistency.AzureVmWorkloadProtectionPolicy
withProtectedItemsCount(Integer protectedItemsCount)
Set the protectedItemsCount property: Number of items associated with this policy.AzureVmWorkloadProtectionPolicy
withResourceGuardOperationRequests(List<String> resourceGuardOperationRequests)
Set the resourceGuardOperationRequests property: ResourceGuard Operation Requests.AzureVmWorkloadProtectionPolicy
withSettings(Settings settings)
Set the settings property: Common settings for the backup management.AzureVmWorkloadProtectionPolicy
withSubProtectionPolicy(List<SubProtectionPolicy> subProtectionPolicy)
Set the subProtectionPolicy property: List of sub-protection policies which includes schedule and retention.AzureVmWorkloadProtectionPolicy
withWorkLoadType(WorkloadType workLoadType)
Set the workLoadType property: Type of workload for the backup management.WorkloadType
workLoadType()
Get the workLoadType property: Type of workload for the backup management.-
Methods inherited from class com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionPolicy
protectedItemsCount, resourceGuardOperationRequests
-
-
-
-
Method Detail
-
workLoadType
public WorkloadType workLoadType()
Get the workLoadType property: Type of workload for the backup management.- Returns:
- the workLoadType value.
-
withWorkLoadType
public AzureVmWorkloadProtectionPolicy withWorkLoadType(WorkloadType workLoadType)
Set the workLoadType property: Type of workload for the backup management.- Parameters:
workLoadType
- the workLoadType value to set.- Returns:
- the AzureVmWorkloadProtectionPolicy object itself.
-
settings
public Settings settings()
Get the settings property: Common settings for the backup management.- Returns:
- the settings value.
-
withSettings
public AzureVmWorkloadProtectionPolicy withSettings(Settings settings)
Set the settings property: Common settings for the backup management.- Parameters:
settings
- the settings value to set.- Returns:
- the AzureVmWorkloadProtectionPolicy object itself.
-
subProtectionPolicy
public List<SubProtectionPolicy> subProtectionPolicy()
Get the subProtectionPolicy property: List of sub-protection policies which includes schedule and retention.- Returns:
- the subProtectionPolicy value.
-
withSubProtectionPolicy
public AzureVmWorkloadProtectionPolicy withSubProtectionPolicy(List<SubProtectionPolicy> subProtectionPolicy)
Set the subProtectionPolicy property: List of sub-protection policies which includes schedule and retention.- Parameters:
subProtectionPolicy
- the subProtectionPolicy value to set.- Returns:
- the AzureVmWorkloadProtectionPolicy object itself.
-
makePolicyConsistent
public Boolean makePolicyConsistent()
Get the makePolicyConsistent property: Fix the policy inconsistency.- Returns:
- the makePolicyConsistent value.
-
withMakePolicyConsistent
public AzureVmWorkloadProtectionPolicy withMakePolicyConsistent(Boolean makePolicyConsistent)
Set the makePolicyConsistent property: Fix the policy inconsistency.- Parameters:
makePolicyConsistent
- the makePolicyConsistent value to set.- Returns:
- the AzureVmWorkloadProtectionPolicy object itself.
-
withProtectedItemsCount
public AzureVmWorkloadProtectionPolicy withProtectedItemsCount(Integer protectedItemsCount)
Set the protectedItemsCount property: Number of items associated with this policy.- Overrides:
withProtectedItemsCount
in classProtectionPolicy
- Parameters:
protectedItemsCount
- the protectedItemsCount value to set.- Returns:
- the ProtectionPolicy object itself.
-
withResourceGuardOperationRequests
public AzureVmWorkloadProtectionPolicy withResourceGuardOperationRequests(List<String> resourceGuardOperationRequests)
Set the resourceGuardOperationRequests property: ResourceGuard Operation Requests.- Overrides:
withResourceGuardOperationRequests
in classProtectionPolicy
- Parameters:
resourceGuardOperationRequests
- the resourceGuardOperationRequests value to set.- Returns:
- the ProtectionPolicy object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classProtectionPolicy
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-