Class UserAccessRight

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

public final class UserAccessRight extends Object
The mapping between a particular user and the access type on the SMB share.
  • Constructor Details

    • UserAccessRight

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

    • userId

      public String userId()
      Get the userId property: User ID (already existing in the device).
      Returns:
      the userId value.
    • withUserId

      public UserAccessRight withUserId(String userId)
      Set the userId property: User ID (already existing in the device).
      Parameters:
      userId - the userId value to set.
      Returns:
      the UserAccessRight object itself.
    • accessType

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

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

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