Class ShareProtocols
java.lang.Object
com.azure.storage.file.share.models.ShareProtocols
Represents protocols that can be set on a share.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Whether NFS is enabled.boolean
Whether SMB is enabled.setNfsEnabled
(boolean nfs) Sets whether NFS is enabled.setSmbEnabled
(boolean smb) Sets whether SMB is enabled.toString()
Converts the given protocols to aString
.
-
Constructor Details
-
ShareProtocols
public ShareProtocols()Creates a new instance ofShareProtocols
.
-
-
Method Details
-
isSmbEnabled
public boolean isSmbEnabled()Whether SMB is enabled.- Returns:
- Enable SMB
-
isNfsEnabled
public boolean isNfsEnabled()Whether NFS is enabled.- Returns:
- Enable NFS
-
setSmbEnabled
Sets whether SMB is enabled.- Parameters:
smb
- Enable SMB- Returns:
- The updated object
-
setNfsEnabled
Sets whether NFS is enabled.- Parameters:
nfs
- Enable NFS- Returns:
- The updated object
-
toString
Converts the given protocols to aString
.- Overrides:
toString
in classObject
- Returns:
- A
String
which represents the enabled protocols. - Throws:
IllegalArgumentException
- If both SMB and NFS are set.
-