Interface ModifyDocumentPermissionRequest.Builder

    • Method Detail

      • name

        ModifyDocumentPermissionRequest.Builder name​(String name)

        The name of the document that you want to share.

        Parameters:
        name - The name of the document that you want to share.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • accountIdsToAdd

        ModifyDocumentPermissionRequest.Builder accountIdsToAdd​(Collection<String> accountIdsToAdd)

        The Amazon Web Services users that should have access to the document. The account IDs can either be a group of account IDs or All.

        Parameters:
        accountIdsToAdd - The Amazon Web Services users that should have access to the document. The account IDs can either be a group of account IDs or All.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • accountIdsToAdd

        ModifyDocumentPermissionRequest.Builder accountIdsToAdd​(String... accountIdsToAdd)

        The Amazon Web Services users that should have access to the document. The account IDs can either be a group of account IDs or All.

        Parameters:
        accountIdsToAdd - The Amazon Web Services users that should have access to the document. The account IDs can either be a group of account IDs or All.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • accountIdsToRemove

        ModifyDocumentPermissionRequest.Builder accountIdsToRemove​(Collection<String> accountIdsToRemove)

        The Amazon Web Services users that should no longer have access to the document. The Amazon Web Services user can either be a group of account IDs or All. This action has a higher priority than AccountIdsToAdd. If you specify an ID to add and the same ID to remove, the system removes access to the document.

        Parameters:
        accountIdsToRemove - The Amazon Web Services users that should no longer have access to the document. The Amazon Web Services user can either be a group of account IDs or All. This action has a higher priority than AccountIdsToAdd. If you specify an ID to add and the same ID to remove, the system removes access to the document.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • accountIdsToRemove

        ModifyDocumentPermissionRequest.Builder accountIdsToRemove​(String... accountIdsToRemove)

        The Amazon Web Services users that should no longer have access to the document. The Amazon Web Services user can either be a group of account IDs or All. This action has a higher priority than AccountIdsToAdd. If you specify an ID to add and the same ID to remove, the system removes access to the document.

        Parameters:
        accountIdsToRemove - The Amazon Web Services users that should no longer have access to the document. The Amazon Web Services user can either be a group of account IDs or All. This action has a higher priority than AccountIdsToAdd. If you specify an ID to add and the same ID to remove, the system removes access to the document.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • sharedDocumentVersion

        ModifyDocumentPermissionRequest.Builder sharedDocumentVersion​(String sharedDocumentVersion)

        (Optional) The version of the document to share. If it isn't specified, the system choose the Default version to share.

        Parameters:
        sharedDocumentVersion - (Optional) The version of the document to share. If it isn't specified, the system choose the Default version to share.
        Returns:
        Returns a reference to this object so that method calls can be chained together.