Class AzureFileShareProtectionPolicy
- java.lang.Object
-
- com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionPolicy
-
- com.azure.resourcemanager.recoveryservicesbackup.models.AzureFileShareProtectionPolicy
-
public final class AzureFileShareProtectionPolicy extends ProtectionPolicy
AzureStorage backup policy.
-
-
Constructor Summary
Constructors Constructor Description AzureFileShareProtectionPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RetentionPolicy
retentionPolicy()
Get the retentionPolicy property: Retention policy with the details on backup copy retention ranges.SchedulePolicy
schedulePolicy()
Get the schedulePolicy property: Backup schedule specified as part of backup policy.String
timeZone()
Get the timeZone property: TimeZone optional input as string.void
validate()
Validates the instance.AzureFileShareProtectionPolicy
withProtectedItemsCount(Integer protectedItemsCount)
Set the protectedItemsCount property: Number of items associated with this policy.AzureFileShareProtectionPolicy
withResourceGuardOperationRequests(List<String> resourceGuardOperationRequests)
Set the resourceGuardOperationRequests property: ResourceGuard Operation Requests.AzureFileShareProtectionPolicy
withRetentionPolicy(RetentionPolicy retentionPolicy)
Set the retentionPolicy property: Retention policy with the details on backup copy retention ranges.AzureFileShareProtectionPolicy
withSchedulePolicy(SchedulePolicy schedulePolicy)
Set the schedulePolicy property: Backup schedule specified as part of backup policy.AzureFileShareProtectionPolicy
withTimeZone(String timeZone)
Set the timeZone property: TimeZone optional input as string.AzureFileShareProtectionPolicy
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 AzureFileShareProtectionPolicy withWorkLoadType(WorkloadType workLoadType)
Set the workLoadType property: Type of workload for the backup management.- Parameters:
workLoadType
- the workLoadType value to set.- Returns:
- the AzureFileShareProtectionPolicy object itself.
-
schedulePolicy
public SchedulePolicy schedulePolicy()
Get the schedulePolicy property: Backup schedule specified as part of backup policy.- Returns:
- the schedulePolicy value.
-
withSchedulePolicy
public AzureFileShareProtectionPolicy withSchedulePolicy(SchedulePolicy schedulePolicy)
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
public RetentionPolicy retentionPolicy()
Get the retentionPolicy property: Retention policy with the details on backup copy retention ranges.- Returns:
- the retentionPolicy value.
-
withRetentionPolicy
public AzureFileShareProtectionPolicy withRetentionPolicy(RetentionPolicy retentionPolicy)
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
public String timeZone()
Get the timeZone property: TimeZone optional input as string. For example: TimeZone = "Pacific Standard Time".- Returns:
- the timeZone value.
-
withTimeZone
public AzureFileShareProtectionPolicy withTimeZone(String timeZone)
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
public AzureFileShareProtectionPolicy 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 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.
-
-