Class AzureSqlProtectionPolicy
- java.lang.Object
-
- com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionPolicy
-
- com.azure.resourcemanager.recoveryservicesbackup.models.AzureSqlProtectionPolicy
-
public final class AzureSqlProtectionPolicy extends ProtectionPolicy
Azure SQL workload-specific backup policy.
-
-
Constructor Summary
Constructors Constructor Description AzureSqlProtectionPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RetentionPolicy
retentionPolicy()
Get the retentionPolicy property: Retention policy details.void
validate()
Validates the instance.AzureSqlProtectionPolicy
withProtectedItemsCount(Integer protectedItemsCount)
Set the protectedItemsCount property: Number of items associated with this policy.AzureSqlProtectionPolicy
withResourceGuardOperationRequests(List<String> resourceGuardOperationRequests)
Set the resourceGuardOperationRequests property: ResourceGuard Operation Requests.AzureSqlProtectionPolicy
withRetentionPolicy(RetentionPolicy retentionPolicy)
Set the retentionPolicy property: Retention policy details.-
Methods inherited from class com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionPolicy
protectedItemsCount, resourceGuardOperationRequests
-
-
-
-
Method Detail
-
retentionPolicy
public RetentionPolicy retentionPolicy()
Get the retentionPolicy property: Retention policy details.- Returns:
- the retentionPolicy value.
-
withRetentionPolicy
public AzureSqlProtectionPolicy withRetentionPolicy(RetentionPolicy retentionPolicy)
Set the retentionPolicy property: Retention policy details.- Parameters:
retentionPolicy
- the retentionPolicy value to set.- Returns:
- the AzureSqlProtectionPolicy object itself.
-
withProtectedItemsCount
public AzureSqlProtectionPolicy 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 AzureSqlProtectionPolicy 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.
-
-