Class AzureFileShareProtectionPolicy
java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionPolicy
com.azure.resourcemanager.recoveryservicesbackup.models.AzureFileShareProtectionPolicy
AzureStorage backup policy.
-
Constructor Summary
ConstructorDescriptionCreates an instance of AzureFileShareProtectionPolicy class. -
Method Summary
Modifier and TypeMethodDescriptionGet the retentionPolicy property: Retention policy with the details on backup copy retention ranges.Get the schedulePolicy property: Backup schedule specified as part of backup policy.timeZone()
Get the timeZone property: TimeZone optional input as string.void
validate()
Validates the instance.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.withRetentionPolicy
(RetentionPolicy retentionPolicy) Set the retentionPolicy property: Retention policy with the details on backup copy retention ranges.withSchedulePolicy
(SchedulePolicy schedulePolicy) Set the schedulePolicy property: Backup schedule specified as part of backup policy.withTimeZone
(String timeZone) Set the timeZone property: TimeZone optional input as string.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
-
AzureFileShareProtectionPolicy
public AzureFileShareProtectionPolicy()Creates an instance of AzureFileShareProtectionPolicy 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 AzureFileShareProtectionPolicy object itself.
-
schedulePolicy
Get the schedulePolicy property: Backup schedule specified as part of backup policy.- Returns:
- the schedulePolicy value.
-
withSchedulePolicy
Set the schedulePolicy property: Backup schedule specified as part of backup policy.- Parameters:
schedulePolicy
- the schedulePolicy value to set.- Returns:
- the AzureFileShareProtectionPolicy object itself.
-
retentionPolicy
Get the retentionPolicy property: Retention policy with the details on backup copy retention ranges.- Returns:
- the retentionPolicy value.
-
withRetentionPolicy
Set the retentionPolicy property: Retention policy with the details on backup copy retention ranges.- Parameters:
retentionPolicy
- the retentionPolicy value to set.- Returns:
- the AzureFileShareProtectionPolicy object itself.
-
timeZone
Get the timeZone property: TimeZone optional input as string. For example: TimeZone = "Pacific Standard Time".- Returns:
- the timeZone value.
-
withTimeZone
Set the timeZone property: TimeZone optional input as string. For example: TimeZone = "Pacific Standard Time".- Parameters:
timeZone
- the timeZone value to set.- Returns:
- the AzureFileShareProtectionPolicy 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 AzureFileShareProtectionPolicy 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.
-