Class ShareProtocols
- java.lang.Object
-
- com.azure.storage.file.share.models.ShareProtocols
-
public class ShareProtocols extends Object
Represents protocols that can be set on a share.
-
-
Constructor Summary
Constructors Constructor Description ShareProtocols()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isNfsEnabled()
boolean
isSmbEnabled()
ShareProtocols
setNfsEnabled(boolean nfs)
ShareProtocols
setSmbEnabled(boolean smb)
String
toString()
Converts the given protocols to aString
.
-
-
-
Method Detail
-
isSmbEnabled
public boolean isSmbEnabled()
- Returns:
- Enable SMB
-
isNfsEnabled
public boolean isNfsEnabled()
- Returns:
- Enable NFS
-
setSmbEnabled
public ShareProtocols setSmbEnabled(boolean smb)
- Parameters:
smb
- Enable SMB- Returns:
- The updated object
-
setNfsEnabled
public ShareProtocols setNfsEnabled(boolean nfs)
- Parameters:
nfs
- Enable NFS- Returns:
- The updated object
-
toString
public String 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.
-
-