Class Share.CreateGroupShareBuilder

  • Enclosing class:
    Share

    public static class Share.CreateGroupShareBuilder
    extends java.lang.Object
    A convenience class for creating a Share with the necessary fields to create a ShareType.GROUP Share. You must set groupId
    • Constructor Detail

      • CreateGroupShareBuilder

        public CreateGroupShareBuilder()
    • Method Detail

      • setAccessLevel

        public Share.CreateGroupShareBuilder setAccessLevel​(AccessLevel accessLevel)
        Access level for this specific share.
        Parameters:
        accessLevel - the access level
        Returns:
        the group share builder
      • setGroupId

        public Share.CreateGroupShareBuilder setGroupId​(java.lang.Long groupId)
        Group Id for this share.
        Parameters:
        groupId - the group Id.
        Returns:
        the group share builder
      • getAccessLevel

        public AccessLevel getAccessLevel()
        Gets the access level.
        Returns:
        the access level
      • getGroupId

        public java.lang.Long getGroupId()
        Gets the group Id.
        Returns:
        the group Id
      • build

        public Share build()
        Builds the Share object.
        Returns:
        the share