Class NfsAccessPolicy
java.lang.Object
com.azure.resourcemanager.storagecache.models.NfsAccessPolicy
A set of rules describing access policies applied to NFSv3 clients of the cache.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the accessRules property: The set of rules describing client accesses allowed under this policy.name()
Get the name property: Name identifying this policy.void
validate()
Validates the instance.withAccessRules
(List<NfsAccessRule> accessRules) Set the accessRules property: The set of rules describing client accesses allowed under this policy.Set the name property: Name identifying this policy.
-
Constructor Details
-
NfsAccessPolicy
public NfsAccessPolicy()
-
-
Method Details
-
name
Get the name property: Name identifying this policy. Access Policy names are not case sensitive.- Returns:
- the name value.
-
withName
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
Get the accessRules property: The set of rules describing client accesses allowed under this policy.- Returns:
- the accessRules value.
-
withAccessRules
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.
-