Class Share.ShareToOneGroupBuilder

  • Enclosing class:
    Share

    public static class Share.ShareToOneGroupBuilder
    extends java.lang.Object
    A convenience class for creating a Share with the necessary fields for sharing the sheet to one Group.
    • Constructor Detail

      • ShareToOneGroupBuilder

        public ShareToOneGroupBuilder()
    • Method Detail

      • setAccessLevel

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

        public Share.ShareToOneGroupBuilder setGroupId​(java.lang.Long groupId)
        Group Id for this share.
        Parameters:
        groupId - the group Id.
        Returns:
        the share to one 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