Class GenericProtectionPolicy
- java.lang.Object
-
- com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionPolicy
-
- com.azure.resourcemanager.recoveryservicesbackup.models.GenericProtectionPolicy
-
public final class GenericProtectionPolicy extends ProtectionPolicy
Azure VM (Mercury) workload-specific backup policy.
-
-
Constructor Summary
Constructors Constructor Description GenericProtectionPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
fabricName()
Get the fabricName property: Name of this policy's fabric.List<SubProtectionPolicy>
subProtectionPolicy()
Get the subProtectionPolicy property: List of sub-protection policies which includes schedule and retention.String
timeZone()
Get the timeZone property: TimeZone optional input as string.void
validate()
Validates the instance.GenericProtectionPolicy
withFabricName(String fabricName)
Set the fabricName property: Name of this policy's fabric.GenericProtectionPolicy
withProtectedItemsCount(Integer protectedItemsCount)
Set the protectedItemsCount property: Number of items associated with this policy.GenericProtectionPolicy
withResourceGuardOperationRequests(List<String> resourceGuardOperationRequests)
Set the resourceGuardOperationRequests property: ResourceGuard Operation Requests.GenericProtectionPolicy
withSubProtectionPolicy(List<SubProtectionPolicy> subProtectionPolicy)
Set the subProtectionPolicy property: List of sub-protection policies which includes schedule and retention.GenericProtectionPolicy
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
-
subProtectionPolicy
public List<SubProtectionPolicy> 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
public String timeZone()
Get the timeZone property: TimeZone optional input as string. For example: TimeZone = "Pacific Standard Time".- Returns:
- the timeZone value.
-
withTimeZone
public GenericProtectionPolicy 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 GenericProtectionPolicy object itself.
-
fabricName
public String fabricName()
Get the fabricName property: Name of this policy's fabric.- Returns:
- the fabricName value.
-
withFabricName
public GenericProtectionPolicy withFabricName(String fabricName)
Set the fabricName property: Name of this policy's fabric.- Parameters:
fabricName
- the fabricName value to set.- Returns:
- the GenericProtectionPolicy object itself.
-
withProtectedItemsCount
public GenericProtectionPolicy 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 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.
-
-