Class ProtectionPolicy

    • Constructor Detail

      • ProtectionPolicy

        public ProtectionPolicy()
    • Method Detail

      • protectedItemsCount

        public Integer protectedItemsCount()
        Get the protectedItemsCount property: Number of items associated with this policy.
        Returns:
        the protectedItemsCount value.
      • withProtectedItemsCount

        public ProtectionPolicy withProtectedItemsCount​(Integer protectedItemsCount)
        Set the protectedItemsCount property: Number of items associated with this policy.
        Parameters:
        protectedItemsCount - the protectedItemsCount value to set.
        Returns:
        the ProtectionPolicy object itself.
      • resourceGuardOperationRequests

        public List<String> resourceGuardOperationRequests()
        Get the resourceGuardOperationRequests property: ResourceGuard Operation Requests.
        Returns:
        the resourceGuardOperationRequests value.
      • withResourceGuardOperationRequests

        public ProtectionPolicy withResourceGuardOperationRequests​(List<String> resourceGuardOperationRequests)
        Set the resourceGuardOperationRequests property: ResourceGuard Operation Requests.
        Parameters:
        resourceGuardOperationRequests - the resourceGuardOperationRequests value to set.
        Returns:
        the ProtectionPolicy object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.