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 TypeMethodDescriptionbooleanbooleansetNfsEnabled(boolean nfs) setSmbEnabled(boolean smb) toString()Converts the given protocols to aString.
-
Constructor Details
-
ShareProtocols
public ShareProtocols()
-
-
Method Details
-
isSmbEnabled
public boolean isSmbEnabled()- Returns:
- Enable SMB
-
isNfsEnabled
public boolean isNfsEnabled()- Returns:
- Enable NFS
-
setSmbEnabled
- Parameters:
smb- Enable SMB- Returns:
- The updated object
-
setNfsEnabled
- Parameters:
nfs- Enable NFS- Returns:
- The updated object
-
toString
Converts the given protocols to aString.- Overrides:
toStringin classObject- Returns:
- A
Stringwhich represents the enabled protocols. - Throws:
IllegalArgumentException- If both SMB and NFS are set.
-