ShareProtocols Class

  • java.lang.Object
    • com.azure.storage.file.share.models.ShareProtocols

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.

ShareProtocols setNfsEnabled(boolean nfs)

Sets whether NFS is enabled.

ShareProtocols setSmbEnabled(boolean smb)

Sets whether SMB is enabled.

String toString()

Converts the given protocols to a String.

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:

Enable NFS

isSmbEnabled

public boolean isSmbEnabled()

Whether SMB is enabled.

Returns:

Enable SMB

setNfsEnabled

public ShareProtocols setNfsEnabled(boolean nfs)

Sets whether NFS is enabled.

Parameters:

nfs - Enable NFS

Returns:

The updated object

setSmbEnabled

public ShareProtocols setSmbEnabled(boolean smb)

Sets whether SMB is enabled.

Parameters:

smb - Enable SMB

Returns:

The updated object

toString

public String toString()

Converts the given protocols to a String.

Overrides:

ShareProtocols.toString()

Returns:

A String which represents the enabled protocols.

Applies to