Class AzureVmWorkloadProtectionPolicy
java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionPolicy
com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadProtectionPolicy
Azure VM (Mercury) workload-specific backup policy.
-
Constructor Summary
ConstructorDescriptionCreates an instance of AzureVmWorkloadProtectionPolicy class. -
Method Summary
Modifier and TypeMethodDescriptionGet the makePolicyConsistent property: Fix the policy inconsistency.settings()
Get the settings property: Common settings for the backup management.Get the subProtectionPolicy property: List of sub-protection policies which includes schedule and retention.void
validate()
Validates the instance.withMakePolicyConsistent
(Boolean makePolicyConsistent) Set the makePolicyConsistent property: Fix the policy inconsistency.withProtectedItemsCount
(Integer protectedItemsCount) Set the protectedItemsCount property: Number of items associated with this policy.withResourceGuardOperationRequests
(List<String> resourceGuardOperationRequests) Set the resourceGuardOperationRequests property: ResourceGuard Operation Requests.withSettings
(Settings settings) Set the settings property: Common settings for the backup management.withSubProtectionPolicy
(List<SubProtectionPolicy> subProtectionPolicy) Set the subProtectionPolicy property: List of sub-protection policies which includes schedule and retention.withWorkLoadType
(WorkloadType workLoadType) Set the workLoadType property: Type of workload for the backup management.Get the workLoadType property: Type of workload for the backup management.Methods inherited from class com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionPolicy
protectedItemsCount, resourceGuardOperationRequests
-
Constructor Details
-
AzureVmWorkloadProtectionPolicy
public AzureVmWorkloadProtectionPolicy()Creates an instance of AzureVmWorkloadProtectionPolicy class.
-
-
Method Details
-
workLoadType
Get the workLoadType property: Type of workload for the backup management.- Returns:
- the workLoadType value.
-
withWorkLoadType
Set the workLoadType property: Type of workload for the backup management.- Parameters:
workLoadType
- the workLoadType value to set.- Returns:
- the AzureVmWorkloadProtectionPolicy object itself.
-
settings
Get the settings property: Common settings for the backup management.- Returns:
- the settings value.
-
withSettings
Set the settings property: Common settings for the backup management.- Parameters:
settings
- the settings value to set.- Returns:
- the AzureVmWorkloadProtectionPolicy object itself.
-
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
Get the makePolicyConsistent property: Fix the policy inconsistency.- Returns:
- the makePolicyConsistent value.
-
withMakePolicyConsistent
Set the makePolicyConsistent property: Fix the policy inconsistency.- Parameters:
makePolicyConsistent
- the makePolicyConsistent value to set.- Returns:
- the AzureVmWorkloadProtectionPolicy object itself.
-
withProtectedItemsCount
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.
-