Class AzureIaaSvmProtectionPolicy
- java.lang.Object
-
- com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionPolicy
-
- com.azure.resourcemanager.recoveryservicesbackup.models.AzureIaaSvmProtectionPolicy
-
public final class AzureIaaSvmProtectionPolicy extends ProtectionPolicy
IaaS VM workload-specific backup policy.
-
-
Constructor Summary
Constructors Constructor Description AzureIaaSvmProtectionPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstantRPAdditionalDetails
instantRPDetails()
Get the instantRPDetails property: The instantRPDetails property.Integer
instantRpRetentionRangeInDays()
Get the instantRpRetentionRangeInDays property: Instant RP retention policy range in days.IaasvmPolicyType
policyType()
Get the policyType property: The policyType property.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.AzureIaaSvmProtectionPolicy
withInstantRPDetails(InstantRPAdditionalDetails instantRPDetails)
Set the instantRPDetails property: The instantRPDetails property.AzureIaaSvmProtectionPolicy
withInstantRpRetentionRangeInDays(Integer instantRpRetentionRangeInDays)
Set the instantRpRetentionRangeInDays property: Instant RP retention policy range in days.AzureIaaSvmProtectionPolicy
withPolicyType(IaasvmPolicyType policyType)
Set the policyType property: The policyType property.AzureIaaSvmProtectionPolicy
withProtectedItemsCount(Integer protectedItemsCount)
Set the protectedItemsCount property: Number of items associated with this policy.AzureIaaSvmProtectionPolicy
withResourceGuardOperationRequests(List<String> resourceGuardOperationRequests)
Set the resourceGuardOperationRequests property: ResourceGuard Operation Requests.AzureIaaSvmProtectionPolicy
withRetentionPolicy(RetentionPolicy retentionPolicy)
Set the retentionPolicy property: Retention policy with the details on backup copy retention ranges.AzureIaaSvmProtectionPolicy
withSchedulePolicy(SchedulePolicy schedulePolicy)
Set the schedulePolicy property: Backup schedule specified as part of backup policy.AzureIaaSvmProtectionPolicy
withTimeZone(String timeZone)
Set the timeZone property: TimeZone optional input as string.-
Methods inherited from class com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionPolicy
protectedItemsCount, resourceGuardOperationRequests
-
-
-
-
Method Detail
-
instantRPDetails
public InstantRPAdditionalDetails instantRPDetails()
Get the instantRPDetails property: The instantRPDetails property.- Returns:
- the instantRPDetails value.
-
withInstantRPDetails
public AzureIaaSvmProtectionPolicy withInstantRPDetails(InstantRPAdditionalDetails instantRPDetails)
Set the instantRPDetails property: The instantRPDetails property.- Parameters:
instantRPDetails
- the instantRPDetails value to set.- Returns:
- the AzureIaaSvmProtectionPolicy object itself.
-
schedulePolicy
public SchedulePolicy schedulePolicy()
Get the schedulePolicy property: Backup schedule specified as part of backup policy.- Returns:
- the schedulePolicy value.
-
withSchedulePolicy
public AzureIaaSvmProtectionPolicy withSchedulePolicy(SchedulePolicy schedulePolicy)
Set the schedulePolicy property: Backup schedule specified as part of backup policy.- Parameters:
schedulePolicy
- the schedulePolicy value to set.- Returns:
- the AzureIaaSvmProtectionPolicy 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 AzureIaaSvmProtectionPolicy 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 AzureIaaSvmProtectionPolicy object itself.
-
instantRpRetentionRangeInDays
public Integer instantRpRetentionRangeInDays()
Get the instantRpRetentionRangeInDays property: Instant RP retention policy range in days.- Returns:
- the instantRpRetentionRangeInDays value.
-
withInstantRpRetentionRangeInDays
public AzureIaaSvmProtectionPolicy withInstantRpRetentionRangeInDays(Integer instantRpRetentionRangeInDays)
Set the instantRpRetentionRangeInDays property: Instant RP retention policy range in days.- Parameters:
instantRpRetentionRangeInDays
- the instantRpRetentionRangeInDays value to set.- Returns:
- the AzureIaaSvmProtectionPolicy 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 AzureIaaSvmProtectionPolicy 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 AzureIaaSvmProtectionPolicy object itself.
-
policyType
public IaasvmPolicyType policyType()
Get the policyType property: The policyType property.- Returns:
- the policyType value.
-
withPolicyType
public AzureIaaSvmProtectionPolicy withPolicyType(IaasvmPolicyType policyType)
Set the policyType property: The policyType property.- Parameters:
policyType
- the policyType value to set.- Returns:
- the AzureIaaSvmProtectionPolicy object itself.
-
withProtectedItemsCount
public AzureIaaSvmProtectionPolicy 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 AzureIaaSvmProtectionPolicy 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.
-
-