Class AzureIaaSvmProtectionPolicy
java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionPolicy
com.azure.resourcemanager.recoveryservicesbackup.models.AzureIaaSvmProtectionPolicy
IaaS VM workload-specific backup policy.
-
Constructor Summary
ConstructorDescriptionCreates an instance of AzureIaaSvmProtectionPolicy class. -
Method Summary
Modifier and TypeMethodDescriptionGet the instantRPDetails property: The instantRPDetails property.Get the instantRpRetentionRangeInDays property: Instant RP retention policy range in days.Get the policyType property: The policyType property.Get 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.Get the tieringPolicy property: Tiering policy to automatically move RPs to another tier Key is Target Tier, defined in RecoveryPointTierType enum.timeZone()
Get the timeZone property: TimeZone optional input as string.void
validate()
Validates the instance.withInstantRPDetails
(InstantRPAdditionalDetails instantRPDetails) Set the instantRPDetails property: The instantRPDetails property.withInstantRpRetentionRangeInDays
(Integer instantRpRetentionRangeInDays) Set the instantRpRetentionRangeInDays property: Instant RP retention policy range in days.withPolicyType
(IaasvmPolicyType policyType) Set the policyType property: The policyType property.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.withTieringPolicy
(Map<String, TieringPolicy> tieringPolicy) Set the tieringPolicy property: Tiering policy to automatically move RPs to another tier Key is Target Tier, defined in RecoveryPointTierType enum.withTimeZone
(String timeZone) Set the timeZone property: TimeZone optional input as string.Methods inherited from class com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionPolicy
protectedItemsCount, resourceGuardOperationRequests
-
Constructor Details
-
AzureIaaSvmProtectionPolicy
public AzureIaaSvmProtectionPolicy()Creates an instance of AzureIaaSvmProtectionPolicy class.
-
-
Method Details
-
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
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 AzureIaaSvmProtectionPolicy 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 AzureIaaSvmProtectionPolicy object itself.
-
tieringPolicy
Get the tieringPolicy property: Tiering policy to automatically move RPs to another tier Key is Target Tier, defined in RecoveryPointTierType enum. Tiering policy specifies the criteria to move RP to the target tier.- Returns:
- the tieringPolicy value.
-
withTieringPolicy
Set the tieringPolicy property: Tiering policy to automatically move RPs to another tier Key is Target Tier, defined in RecoveryPointTierType enum. Tiering policy specifies the criteria to move RP to the target tier.- Parameters:
tieringPolicy
- the tieringPolicy value to set.- Returns:
- the AzureIaaSvmProtectionPolicy object itself.
-
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
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 AzureIaaSvmProtectionPolicy object itself.
-
policyType
Get the policyType property: The policyType property.- Returns:
- the policyType value.
-
withPolicyType
Set the policyType property: The policyType property.- Parameters:
policyType
- the policyType value to set.- Returns:
- the AzureIaaSvmProtectionPolicy 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 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.
-