Class NfsAccessPolicy


  • public final class NfsAccessPolicy
    extends Object
    A set of rules describing access policies applied to NFSv3 clients of the cache.
    • Constructor Detail

      • NfsAccessPolicy

        public NfsAccessPolicy()
    • Method Detail

      • name

        public String name()
        Get the name property: Name identifying this policy. Access Policy names are not case sensitive.
        Returns:
        the name value.
      • withName

        public NfsAccessPolicy withName​(String name)
        Set the name property: Name identifying this policy. Access Policy names are not case sensitive.
        Parameters:
        name - the name value to set.
        Returns:
        the NfsAccessPolicy object itself.
      • accessRules

        public List<NfsAccessRule> accessRules()
        Get the accessRules property: The set of rules describing client accesses allowed under this policy.
        Returns:
        the accessRules value.
      • withAccessRules

        public NfsAccessPolicy withAccessRules​(List<NfsAccessRule> accessRules)
        Set the accessRules property: The set of rules describing client accesses allowed under this policy.
        Parameters:
        accessRules - the accessRules value to set.
        Returns:
        the NfsAccessPolicy object itself.
      • validate

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