Class ShareAccessRight

java.lang.Object
com.azure.resourcemanager.databoxedge.models.ShareAccessRight

public final class ShareAccessRight extends Object
Specifies the mapping between this particular user and the type of access he has on shares on this device.
  • Constructor Details

    • ShareAccessRight

      public ShareAccessRight()
      Creates an instance of ShareAccessRight class.
  • Method Details

    • shareId

      public String shareId()
      Get the shareId property: The share ID.
      Returns:
      the shareId value.
    • withShareId

      public ShareAccessRight withShareId(String shareId)
      Set the shareId property: The share ID.
      Parameters:
      shareId - the shareId value to set.
      Returns:
      the ShareAccessRight object itself.
    • accessType

      public ShareAccessType accessType()
      Get the accessType property: Type of access to be allowed on the share for this user.
      Returns:
      the accessType value.
    • withAccessType

      public ShareAccessRight withAccessType(ShareAccessType accessType)
      Set the accessType property: Type of access to be allowed on the share for this user.
      Parameters:
      accessType - the accessType value to set.
      Returns:
      the ShareAccessRight object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.