Class Share.ShareToOneUserBuilder

  • Enclosing class:
    Share

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

      • ShareToOneUserBuilder

        public ShareToOneUserBuilder()
    • Method Detail

      • setAccessLevel

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

        public Share.ShareToOneUserBuilder setEmail​(java.lang.String email)
        Email address for this specific share.
        Parameters:
        email - the email
        Returns:
        the share to one builder
      • getAccessLevel

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

        public java.lang.String getEmail()
        Gets the email.
        Returns:
        the email
      • build

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