Interface Permission.Builder

    • Method Detail

      • granteeId

        Permission.Builder granteeId​(String granteeId)

        The identifier of the user, group, or resource to which the permissions are granted.

        Parameters:
        granteeId - The identifier of the user, group, or resource to which the permissions are granted.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • granteeType

        Permission.Builder granteeType​(String granteeType)

        The type of user, group, or resource referred to in GranteeId.

        Parameters:
        granteeType - The type of user, group, or resource referred to in GranteeId.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        MemberType, MemberType
      • granteeType

        Permission.Builder granteeType​(MemberType granteeType)

        The type of user, group, or resource referred to in GranteeId.

        Parameters:
        granteeType - The type of user, group, or resource referred to in GranteeId.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        MemberType, MemberType
      • permissionValuesWithStrings

        Permission.Builder permissionValuesWithStrings​(Collection<String> permissionValues)

        The permissions granted to the grantee. SEND_AS allows the grantee to send email as the owner of the mailbox (the grantee is not mentioned on these emails). SEND_ON_BEHALF allows the grantee to send email on behalf of the owner of the mailbox (the grantee is not mentioned as the physical sender of these emails). FULL_ACCESS allows the grantee full access to the mailbox, irrespective of other folder-level permissions set on the mailbox.

        Parameters:
        permissionValues - The permissions granted to the grantee. SEND_AS allows the grantee to send email as the owner of the mailbox (the grantee is not mentioned on these emails). SEND_ON_BEHALF allows the grantee to send email on behalf of the owner of the mailbox (the grantee is not mentioned as the physical sender of these emails). FULL_ACCESS allows the grantee full access to the mailbox, irrespective of other folder-level permissions set on the mailbox.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • permissionValuesWithStrings

        Permission.Builder permissionValuesWithStrings​(String... permissionValues)

        The permissions granted to the grantee. SEND_AS allows the grantee to send email as the owner of the mailbox (the grantee is not mentioned on these emails). SEND_ON_BEHALF allows the grantee to send email on behalf of the owner of the mailbox (the grantee is not mentioned as the physical sender of these emails). FULL_ACCESS allows the grantee full access to the mailbox, irrespective of other folder-level permissions set on the mailbox.

        Parameters:
        permissionValues - The permissions granted to the grantee. SEND_AS allows the grantee to send email as the owner of the mailbox (the grantee is not mentioned on these emails). SEND_ON_BEHALF allows the grantee to send email on behalf of the owner of the mailbox (the grantee is not mentioned as the physical sender of these emails). FULL_ACCESS allows the grantee full access to the mailbox, irrespective of other folder-level permissions set on the mailbox.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • permissionValues

        Permission.Builder permissionValues​(Collection<PermissionType> permissionValues)

        The permissions granted to the grantee. SEND_AS allows the grantee to send email as the owner of the mailbox (the grantee is not mentioned on these emails). SEND_ON_BEHALF allows the grantee to send email on behalf of the owner of the mailbox (the grantee is not mentioned as the physical sender of these emails). FULL_ACCESS allows the grantee full access to the mailbox, irrespective of other folder-level permissions set on the mailbox.

        Parameters:
        permissionValues - The permissions granted to the grantee. SEND_AS allows the grantee to send email as the owner of the mailbox (the grantee is not mentioned on these emails). SEND_ON_BEHALF allows the grantee to send email on behalf of the owner of the mailbox (the grantee is not mentioned as the physical sender of these emails). FULL_ACCESS allows the grantee full access to the mailbox, irrespective of other folder-level permissions set on the mailbox.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • permissionValues

        Permission.Builder permissionValues​(PermissionType... permissionValues)

        The permissions granted to the grantee. SEND_AS allows the grantee to send email as the owner of the mailbox (the grantee is not mentioned on these emails). SEND_ON_BEHALF allows the grantee to send email on behalf of the owner of the mailbox (the grantee is not mentioned as the physical sender of these emails). FULL_ACCESS allows the grantee full access to the mailbox, irrespective of other folder-level permissions set on the mailbox.

        Parameters:
        permissionValues - The permissions granted to the grantee. SEND_AS allows the grantee to send email as the owner of the mailbox (the grantee is not mentioned on these emails). SEND_ON_BEHALF allows the grantee to send email on behalf of the owner of the mailbox (the grantee is not mentioned as the physical sender of these emails). FULL_ACCESS allows the grantee full access to the mailbox, irrespective of other folder-level permissions set on the mailbox.
        Returns:
        Returns a reference to this object so that method calls can be chained together.