Class ExportPolicyRule
java.lang.Object
com.azure.resourcemanager.netapp.models.ExportPolicyRule
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ExportPolicyRule>
public final class ExportPolicyRule
extends Object
implements com.azure.json.JsonSerializable<ExportPolicyRule>
Volume Export Policy Rule.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the allowedClients property: Client ingress specification as comma separated string with IPv4 CIDRs, IPv4 host addresses and host names.Get the chownMode property: This parameter specifies who is authorized to change the ownership of a file.cifs()Get the cifs property: Allows CIFS protocol.static ExportPolicyRulefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ExportPolicyRule from the JsonReader.Get the hasRootAccess property: Has root access to volume.Get the kerberos5IReadOnly property: Kerberos5i Read only access.Get the kerberos5IReadWrite property: Kerberos5i Read and write access.Get the kerberos5PReadOnly property: Kerberos5p Read only access.Get the kerberos5PReadWrite property: Kerberos5p Read and write access.Get the kerberos5ReadOnly property: Kerberos5 Read only access.Get the kerberos5ReadWrite property: Kerberos5 Read and write access.nfsv3()Get the nfsv3 property: Allows NFSv3 protocol.nfsv41()Get the nfsv41 property: Allows NFSv4.1 protocol.Get the ruleIndex property: Order index.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the unixReadOnly property: Read only access.Get the unixReadWrite property: Read and write access.voidvalidate()Validates the instance.withAllowedClients(String allowedClients) Set the allowedClients property: Client ingress specification as comma separated string with IPv4 CIDRs, IPv4 host addresses and host names.withChownMode(ChownMode chownMode) Set the chownMode property: This parameter specifies who is authorized to change the ownership of a file.Set the cifs property: Allows CIFS protocol.withHasRootAccess(Boolean hasRootAccess) Set the hasRootAccess property: Has root access to volume.withKerberos5IReadOnly(Boolean kerberos5IReadOnly) Set the kerberos5IReadOnly property: Kerberos5i Read only access.withKerberos5IReadWrite(Boolean kerberos5IReadWrite) Set the kerberos5IReadWrite property: Kerberos5i Read and write access.withKerberos5PReadOnly(Boolean kerberos5PReadOnly) Set the kerberos5PReadOnly property: Kerberos5p Read only access.withKerberos5PReadWrite(Boolean kerberos5PReadWrite) Set the kerberos5PReadWrite property: Kerberos5p Read and write access.withKerberos5ReadOnly(Boolean kerberos5ReadOnly) Set the kerberos5ReadOnly property: Kerberos5 Read only access.withKerberos5ReadWrite(Boolean kerberos5ReadWrite) Set the kerberos5ReadWrite property: Kerberos5 Read and write access.Set the nfsv3 property: Allows NFSv3 protocol.withNfsv41(Boolean nfsv41) Set the nfsv41 property: Allows NFSv4.1 protocol.withRuleIndex(Integer ruleIndex) Set the ruleIndex property: Order index.withUnixReadOnly(Boolean unixReadOnly) Set the unixReadOnly property: Read only access.withUnixReadWrite(Boolean unixReadWrite) Set the unixReadWrite property: Read and write access.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ExportPolicyRule
public ExportPolicyRule()Creates an instance of ExportPolicyRule class.
-
-
Method Details
-
ruleIndex
Get the ruleIndex property: Order index.- Returns:
- the ruleIndex value.
-
withRuleIndex
Set the ruleIndex property: Order index.- Parameters:
ruleIndex- the ruleIndex value to set.- Returns:
- the ExportPolicyRule object itself.
-
unixReadOnly
Get the unixReadOnly property: Read only access.- Returns:
- the unixReadOnly value.
-
withUnixReadOnly
Set the unixReadOnly property: Read only access.- Parameters:
unixReadOnly- the unixReadOnly value to set.- Returns:
- the ExportPolicyRule object itself.
-
unixReadWrite
Get the unixReadWrite property: Read and write access.- Returns:
- the unixReadWrite value.
-
withUnixReadWrite
Set the unixReadWrite property: Read and write access.- Parameters:
unixReadWrite- the unixReadWrite value to set.- Returns:
- the ExportPolicyRule object itself.
-
kerberos5ReadOnly
Get the kerberos5ReadOnly property: Kerberos5 Read only access. To be use with swagger version 2020-05-01 or later.- Returns:
- the kerberos5ReadOnly value.
-
withKerberos5ReadOnly
Set the kerberos5ReadOnly property: Kerberos5 Read only access. To be use with swagger version 2020-05-01 or later.- Parameters:
kerberos5ReadOnly- the kerberos5ReadOnly value to set.- Returns:
- the ExportPolicyRule object itself.
-
kerberos5ReadWrite
Get the kerberos5ReadWrite property: Kerberos5 Read and write access. To be use with swagger version 2020-05-01 or later.- Returns:
- the kerberos5ReadWrite value.
-
withKerberos5ReadWrite
Set the kerberos5ReadWrite property: Kerberos5 Read and write access. To be use with swagger version 2020-05-01 or later.- Parameters:
kerberos5ReadWrite- the kerberos5ReadWrite value to set.- Returns:
- the ExportPolicyRule object itself.
-
kerberos5IReadOnly
Get the kerberos5IReadOnly property: Kerberos5i Read only access. To be use with swagger version 2020-05-01 or later.- Returns:
- the kerberos5IReadOnly value.
-
withKerberos5IReadOnly
Set the kerberos5IReadOnly property: Kerberos5i Read only access. To be use with swagger version 2020-05-01 or later.- Parameters:
kerberos5IReadOnly- the kerberos5IReadOnly value to set.- Returns:
- the ExportPolicyRule object itself.
-
kerberos5IReadWrite
Get the kerberos5IReadWrite property: Kerberos5i Read and write access. To be use with swagger version 2020-05-01 or later.- Returns:
- the kerberos5IReadWrite value.
-
withKerberos5IReadWrite
Set the kerberos5IReadWrite property: Kerberos5i Read and write access. To be use with swagger version 2020-05-01 or later.- Parameters:
kerberos5IReadWrite- the kerberos5IReadWrite value to set.- Returns:
- the ExportPolicyRule object itself.
-
kerberos5PReadOnly
Get the kerberos5PReadOnly property: Kerberos5p Read only access. To be use with swagger version 2020-05-01 or later.- Returns:
- the kerberos5PReadOnly value.
-
withKerberos5PReadOnly
Set the kerberos5PReadOnly property: Kerberos5p Read only access. To be use with swagger version 2020-05-01 or later.- Parameters:
kerberos5PReadOnly- the kerberos5PReadOnly value to set.- Returns:
- the ExportPolicyRule object itself.
-
kerberos5PReadWrite
Get the kerberos5PReadWrite property: Kerberos5p Read and write access. To be use with swagger version 2020-05-01 or later.- Returns:
- the kerberos5PReadWrite value.
-
withKerberos5PReadWrite
Set the kerberos5PReadWrite property: Kerberos5p Read and write access. To be use with swagger version 2020-05-01 or later.- Parameters:
kerberos5PReadWrite- the kerberos5PReadWrite value to set.- Returns:
- the ExportPolicyRule object itself.
-
cifs
Get the cifs property: Allows CIFS protocol.- Returns:
- the cifs value.
-
withCifs
Set the cifs property: Allows CIFS protocol.- Parameters:
cifs- the cifs value to set.- Returns:
- the ExportPolicyRule object itself.
-
nfsv3
Get the nfsv3 property: Allows NFSv3 protocol. Enable only for NFSv3 type volumes.- Returns:
- the nfsv3 value.
-
withNfsv3
Set the nfsv3 property: Allows NFSv3 protocol. Enable only for NFSv3 type volumes.- Parameters:
nfsv3- the nfsv3 value to set.- Returns:
- the ExportPolicyRule object itself.
-
nfsv41
Get the nfsv41 property: Allows NFSv4.1 protocol. Enable only for NFSv4.1 type volumes.- Returns:
- the nfsv41 value.
-
withNfsv41
Set the nfsv41 property: Allows NFSv4.1 protocol. Enable only for NFSv4.1 type volumes.- Parameters:
nfsv41- the nfsv41 value to set.- Returns:
- the ExportPolicyRule object itself.
-
allowedClients
Get the allowedClients property: Client ingress specification as comma separated string with IPv4 CIDRs, IPv4 host addresses and host names.- Returns:
- the allowedClients value.
-
withAllowedClients
Set the allowedClients property: Client ingress specification as comma separated string with IPv4 CIDRs, IPv4 host addresses and host names.- Parameters:
allowedClients- the allowedClients value to set.- Returns:
- the ExportPolicyRule object itself.
-
hasRootAccess
Get the hasRootAccess property: Has root access to volume.- Returns:
- the hasRootAccess value.
-
withHasRootAccess
Set the hasRootAccess property: Has root access to volume.- Parameters:
hasRootAccess- the hasRootAccess value to set.- Returns:
- the ExportPolicyRule object itself.
-
chownMode
Get the chownMode property: This parameter specifies who is authorized to change the ownership of a file. restricted - Only root user can change the ownership of the file. unrestricted - Non-root users can change ownership of files that they own.- Returns:
- the chownMode value.
-
withChownMode
Set the chownMode property: This parameter specifies who is authorized to change the ownership of a file. restricted - Only root user can change the ownership of the file. unrestricted - Non-root users can change ownership of files that they own.- Parameters:
chownMode- the chownMode value to set.- Returns:
- the ExportPolicyRule object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ExportPolicyRule>- Throws:
IOException
-
fromJson
Reads an instance of ExportPolicyRule from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ExportPolicyRule if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the ExportPolicyRule.
-