Class NfsAccessPolicy
- java.lang.Object
-
- com.azure.resourcemanager.storagecache.models.NfsAccessPolicy
-
public final class NfsAccessPolicy extends Object
A set of rules describing access policies applied to NFSv3 clients of the cache.
-
-
Constructor Summary
Constructors Constructor Description NfsAccessPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<NfsAccessRule>
accessRules()
Get the accessRules property: The set of rules describing client accesses allowed under this policy.String
name()
Get the name property: Name identifying this policy.void
validate()
Validates the instance.NfsAccessPolicy
withAccessRules(List<NfsAccessRule> accessRules)
Set the accessRules property: The set of rules describing client accesses allowed under this policy.NfsAccessPolicy
withName(String name)
Set the name property: Name identifying this policy.
-
-
-
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.
-
-