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 Details

    • ShareProtocols

      public ShareProtocols()
  • Method Details

    • 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 a String.
      Overrides:
      toString in class Object
      Returns:
      A String which represents the enabled protocols.
      Throws:
      IllegalArgumentException - If both SMB and NFS are set.