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 booleanisNfsEnabled()booleanisSmbEnabled()ShareProtocolssetNfsEnabled(boolean nfs)ShareProtocolssetSmbEnabled(boolean smb)StringtoString()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:
toStringin classObject- Returns:
- A
Stringwhich represents the enabled protocols. - Throws:
IllegalArgumentException- If both SMB and NFS are set.
-
-