你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ShareProtocols Class
- java.
lang. Object - com.
azure. storage. file. share. models. ShareProtocols
- com.
public class ShareProtocols
Represents protocols that can be set on a share.
Constructor Summary
Constructor | Description |
---|---|
ShareProtocols() |
Creates a new instance of ShareProtocols. |
Method Summary
Modifier and Type | Method and Description |
---|---|
boolean |
isNfsEnabled()
Whether NFS is enabled. |
boolean |
isSmbEnabled()
Whether SMB is enabled. |
Share |
setNfsEnabled(boolean nfs)
Sets whether NFS is enabled. |
Share |
setSmbEnabled(boolean smb)
Sets whether SMB is enabled. |
String |
toString()
Converts the given protocols to a |
Methods inherited from java.lang.Object
Constructor Details
ShareProtocols
public ShareProtocols()
Creates a new instance of ShareProtocols.
Method Details
isNfsEnabled
public boolean isNfsEnabled()
Whether NFS is enabled.
Returns:
isSmbEnabled
public boolean isSmbEnabled()
Whether SMB is enabled.
Returns:
setNfsEnabled
public ShareProtocols setNfsEnabled(boolean nfs)
Sets whether NFS is enabled.
Parameters:
Returns:
setSmbEnabled
public ShareProtocols setSmbEnabled(boolean smb)
Sets whether SMB is enabled.
Parameters:
Returns:
toString
public String toString()
Converts the given protocols to a String
.
Overrides:
ShareProtocols.toString()Returns:
String
which represents the enabled protocols.