Class ExportPolicyRule
- java.lang.Object
-
- com.azure.resourcemanager.netapp.models.ExportPolicyRule
-
public final class ExportPolicyRule extends Object
Volume Export Policy Rule.
-
-
Constructor Summary
Constructors Constructor Description ExportPolicyRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
allowedClients()
Get the allowedClients property: Client ingress specification as comma separated string with IPv4 CIDRs, IPv4 host addresses and host names.ChownMode
chownMode()
Get the chownMode property: This parameter specifies who is authorized to change the ownership of a file.Boolean
cifs()
Get the cifs property: Allows CIFS protocol.Boolean
hasRootAccess()
Get the hasRootAccess property: Has root access to volume.Boolean
kerberos5IReadOnly()
Get the kerberos5IReadOnly property: Kerberos5i Read only access.Boolean
kerberos5IReadWrite()
Get the kerberos5IReadWrite property: Kerberos5i Read and write access.Boolean
kerberos5PReadOnly()
Get the kerberos5PReadOnly property: Kerberos5p Read only access.Boolean
kerberos5PReadWrite()
Get the kerberos5PReadWrite property: Kerberos5p Read and write access.Boolean
kerberos5ReadOnly()
Get the kerberos5ReadOnly property: Kerberos5 Read only access.Boolean
kerberos5ReadWrite()
Get the kerberos5ReadWrite property: Kerberos5 Read and write access.Boolean
nfsv3()
Get the nfsv3 property: Allows NFSv3 protocol.Boolean
nfsv41()
Get the nfsv41 property: Allows NFSv4.1 protocol.Integer
ruleIndex()
Get the ruleIndex property: Order index.Boolean
unixReadOnly()
Get the unixReadOnly property: Read only access.Boolean
unixReadWrite()
Get the unixReadWrite property: Read and write access.void
validate()
Validates the instance.ExportPolicyRule
withAllowedClients(String allowedClients)
Set the allowedClients property: Client ingress specification as comma separated string with IPv4 CIDRs, IPv4 host addresses and host names.ExportPolicyRule
withChownMode(ChownMode chownMode)
Set the chownMode property: This parameter specifies who is authorized to change the ownership of a file.ExportPolicyRule
withCifs(Boolean cifs)
Set the cifs property: Allows CIFS protocol.ExportPolicyRule
withHasRootAccess(Boolean hasRootAccess)
Set the hasRootAccess property: Has root access to volume.ExportPolicyRule
withKerberos5IReadOnly(Boolean kerberos5IReadOnly)
Set the kerberos5IReadOnly property: Kerberos5i Read only access.ExportPolicyRule
withKerberos5IReadWrite(Boolean kerberos5IReadWrite)
Set the kerberos5IReadWrite property: Kerberos5i Read and write access.ExportPolicyRule
withKerberos5PReadOnly(Boolean kerberos5PReadOnly)
Set the kerberos5PReadOnly property: Kerberos5p Read only access.ExportPolicyRule
withKerberos5PReadWrite(Boolean kerberos5PReadWrite)
Set the kerberos5PReadWrite property: Kerberos5p Read and write access.ExportPolicyRule
withKerberos5ReadOnly(Boolean kerberos5ReadOnly)
Set the kerberos5ReadOnly property: Kerberos5 Read only access.ExportPolicyRule
withKerberos5ReadWrite(Boolean kerberos5ReadWrite)
Set the kerberos5ReadWrite property: Kerberos5 Read and write access.ExportPolicyRule
withNfsv3(Boolean nfsv3)
Set the nfsv3 property: Allows NFSv3 protocol.ExportPolicyRule
withNfsv41(Boolean nfsv41)
Set the nfsv41 property: Allows NFSv4.1 protocol.ExportPolicyRule
withRuleIndex(Integer ruleIndex)
Set the ruleIndex property: Order index.ExportPolicyRule
withUnixReadOnly(Boolean unixReadOnly)
Set the unixReadOnly property: Read only access.ExportPolicyRule
withUnixReadWrite(Boolean unixReadWrite)
Set the unixReadWrite property: Read and write access.
-
-
-
Method Detail
-
ruleIndex
public Integer ruleIndex()
Get the ruleIndex property: Order index.- Returns:
- the ruleIndex value.
-
withRuleIndex
public ExportPolicyRule withRuleIndex(Integer ruleIndex)
Set the ruleIndex property: Order index.- Parameters:
ruleIndex
- the ruleIndex value to set.- Returns:
- the ExportPolicyRule object itself.
-
unixReadOnly
public Boolean unixReadOnly()
Get the unixReadOnly property: Read only access.- Returns:
- the unixReadOnly value.
-
withUnixReadOnly
public ExportPolicyRule withUnixReadOnly(Boolean unixReadOnly)
Set the unixReadOnly property: Read only access.- Parameters:
unixReadOnly
- the unixReadOnly value to set.- Returns:
- the ExportPolicyRule object itself.
-
unixReadWrite
public Boolean unixReadWrite()
Get the unixReadWrite property: Read and write access.- Returns:
- the unixReadWrite value.
-
withUnixReadWrite
public ExportPolicyRule withUnixReadWrite(Boolean unixReadWrite)
Set the unixReadWrite property: Read and write access.- Parameters:
unixReadWrite
- the unixReadWrite value to set.- Returns:
- the ExportPolicyRule object itself.
-
kerberos5ReadOnly
public Boolean 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
public ExportPolicyRule withKerberos5ReadOnly(Boolean kerberos5ReadOnly)
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
public Boolean 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
public ExportPolicyRule withKerberos5ReadWrite(Boolean kerberos5ReadWrite)
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
public Boolean 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
public ExportPolicyRule withKerberos5IReadOnly(Boolean kerberos5IReadOnly)
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
public Boolean 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
public ExportPolicyRule withKerberos5IReadWrite(Boolean kerberos5IReadWrite)
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
public Boolean 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
public ExportPolicyRule withKerberos5PReadOnly(Boolean kerberos5PReadOnly)
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
public Boolean 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
public ExportPolicyRule withKerberos5PReadWrite(Boolean kerberos5PReadWrite)
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
public Boolean cifs()
Get the cifs property: Allows CIFS protocol.- Returns:
- the cifs value.
-
withCifs
public ExportPolicyRule withCifs(Boolean cifs)
Set the cifs property: Allows CIFS protocol.- Parameters:
cifs
- the cifs value to set.- Returns:
- the ExportPolicyRule object itself.
-
nfsv3
public Boolean nfsv3()
Get the nfsv3 property: Allows NFSv3 protocol. Enable only for NFSv3 type volumes.- Returns:
- the nfsv3 value.
-
withNfsv3
public ExportPolicyRule withNfsv3(Boolean nfsv3)
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
public Boolean nfsv41()
Get the nfsv41 property: Allows NFSv4.1 protocol. Enable only for NFSv4.1 type volumes.- Returns:
- the nfsv41 value.
-
withNfsv41
public ExportPolicyRule withNfsv41(Boolean nfsv41)
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
public String 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
public ExportPolicyRule withAllowedClients(String allowedClients)
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
public Boolean hasRootAccess()
Get the hasRootAccess property: Has root access to volume.- Returns:
- the hasRootAccess value.
-
withHasRootAccess
public ExportPolicyRule withHasRootAccess(Boolean hasRootAccess)
Set the hasRootAccess property: Has root access to volume.- Parameters:
hasRootAccess
- the hasRootAccess value to set.- Returns:
- the ExportPolicyRule object itself.
-
chownMode
public ChownMode 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
public ExportPolicyRule withChownMode(ChownMode chownMode)
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.
-
-