Class GenericProtectionPolicy
java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionPolicy
com.azure.resourcemanager.recoveryservicesbackup.models.GenericProtectionPolicy
Azure VM (Mercury) workload-specific backup policy.
-
Constructor Summary
ConstructorDescriptionCreates an instance of GenericProtectionPolicy class. -
Method Summary
Modifier and TypeMethodDescriptionGet the fabricName property: Name of this policy's fabric.Get the subProtectionPolicy property: List of sub-protection policies which includes schedule and retention.timeZone()
Get the timeZone property: TimeZone optional input as string.void
validate()
Validates the instance.withFabricName
(String fabricName) Set the fabricName property: Name of this policy's fabric.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.withSubProtectionPolicy
(List<SubProtectionPolicy> subProtectionPolicy) Set the subProtectionPolicy property: List of sub-protection policies which includes schedule and retention.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
-
GenericProtectionPolicy
public GenericProtectionPolicy()Creates an instance of GenericProtectionPolicy class.
-
-
Method Details
-
subProtectionPolicy
Get the subProtectionPolicy property: List of sub-protection policies which includes schedule and retention.- Returns:
- the subProtectionPolicy value.
-
withSubProtectionPolicy
public GenericProtectionPolicy withSubProtectionPolicy(List<SubProtectionPolicy> subProtectionPolicy) Set the subProtectionPolicy property: List of sub-protection policies which includes schedule and retention.- Parameters:
subProtectionPolicy
- the subProtectionPolicy value to set.- Returns:
- the GenericProtectionPolicy 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 GenericProtectionPolicy object itself.
-
fabricName
Get the fabricName property: Name of this policy's fabric.- Returns:
- the fabricName value.
-
withFabricName
Set the fabricName property: Name of this policy's fabric.- Parameters:
fabricName
- the fabricName value to set.- Returns:
- the GenericProtectionPolicy 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 GenericProtectionPolicy 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.
-