CopyableBuilder<ModifyDocumentPermissionRequest.Builder,ModifyDocumentPermissionRequest>
, SdkBuilder<ModifyDocumentPermissionRequest.Builder,ModifyDocumentPermissionRequest>
public static interface ModifyDocumentPermissionRequest.Builder extends CopyableBuilder<ModifyDocumentPermissionRequest.Builder,ModifyDocumentPermissionRequest>
Modifier and Type | Method | Description |
---|---|---|
ModifyDocumentPermissionRequest.Builder |
accountIdsToAdd(String... accountIdsToAdd) |
The AWS user accounts that should have access to the document.
|
ModifyDocumentPermissionRequest.Builder |
accountIdsToAdd(Collection<String> accountIdsToAdd) |
The AWS user accounts that should have access to the document.
|
ModifyDocumentPermissionRequest.Builder |
accountIdsToRemove(String... accountIdsToRemove) |
The AWS user accounts that should no longer have access to the document.
|
ModifyDocumentPermissionRequest.Builder |
accountIdsToRemove(Collection<String> accountIdsToRemove) |
The AWS user accounts that should no longer have access to the document.
|
ModifyDocumentPermissionRequest.Builder |
name(String name) |
The name of the document that you want to share.
|
ModifyDocumentPermissionRequest.Builder |
permissionType(String permissionType) |
The permission type for the document.
|
ModifyDocumentPermissionRequest.Builder |
permissionType(DocumentPermissionType permissionType) |
The permission type for the document.
|
copy
apply, build
ModifyDocumentPermissionRequest.Builder name(String name)
The name of the document that you want to share.
name
- The name of the document that you want to share.ModifyDocumentPermissionRequest.Builder permissionType(String permissionType)
The permission type for the document. The permission type can be Share.
permissionType
- The permission type for the document. The permission type can be Share.DocumentPermissionType
ModifyDocumentPermissionRequest.Builder permissionType(DocumentPermissionType permissionType)
The permission type for the document. The permission type can be Share.
permissionType
- The permission type for the document. The permission type can be Share.DocumentPermissionType
ModifyDocumentPermissionRequest.Builder accountIdsToAdd(Collection<String> accountIdsToAdd)
The AWS user accounts that should have access to the document. The account IDs can either be a group of account IDs or All.
accountIdsToAdd
- The AWS user accounts that should have access to the document. The account IDs can either be a group
of account IDs or All.ModifyDocumentPermissionRequest.Builder accountIdsToAdd(String... accountIdsToAdd)
The AWS user accounts that should have access to the document. The account IDs can either be a group of account IDs or All.
NOTE: This method appends the values to the existing list (if any). Use
#setAccountIdsToAdd(java.util.Collection)
or #withAccountIdsToAdd(java.util.Collection)
if
you want to override the existing values.
accountIdsToAdd
- The AWS user accounts that should have access to the document. The account IDs can either be a group
of account IDs or All.ModifyDocumentPermissionRequest.Builder accountIdsToRemove(Collection<String> accountIdsToRemove)
The AWS user accounts that should no longer have access to the document. The AWS user account can either be a group of account IDs or All. This action has a higher priority than AccountIdsToAdd. If you specify an account ID to add and the same ID to remove, the system removes access to the document.
accountIdsToRemove
- The AWS user accounts that should no longer have access to the document. The AWS user account can
either be a group of account IDs or All. This action has a higher priority than
AccountIdsToAdd. If you specify an account ID to add and the same ID to remove, the system
removes access to the document.ModifyDocumentPermissionRequest.Builder accountIdsToRemove(String... accountIdsToRemove)
The AWS user accounts that should no longer have access to the document. The AWS user account can either be a group of account IDs or All. This action has a higher priority than AccountIdsToAdd. If you specify an account ID to add and the same ID to remove, the system removes access to the document.
NOTE: This method appends the values to the existing list (if any). Use
#setAccountIdsToRemove(java.util.Collection)
or #withAccountIdsToRemove(java.util.Collection)
if you want to override the existing values.
accountIdsToRemove
- The AWS user accounts that should no longer have access to the document. The AWS user account can
either be a group of account IDs or All. This action has a higher priority than
AccountIdsToAdd. If you specify an account ID to add and the same ID to remove, the system
removes access to the document.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.