Class ModifyDocumentPermissionRequest
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
The AWS user accounts that should have access to the document.The AWS user accounts that should no longer have access to the document.getName()
The name of the document that you want to share.The permission type for the document.int
hashCode()
void
setAccountIdsToAdd
(Collection<String> accountIdsToAdd) The AWS user accounts that should have access to the document.void
setAccountIdsToRemove
(Collection<String> accountIdsToRemove) The AWS user accounts that should no longer have access to the document.void
The name of the document that you want to share.void
setPermissionType
(DocumentPermissionType permissionType) The permission type for the document.void
setPermissionType
(String permissionType) The permission type for the document.toString()
Returns a string representation of this object; useful for testing and debugging.withAccountIdsToAdd
(String... accountIdsToAdd) The AWS user accounts that should have access to the document.withAccountIdsToAdd
(Collection<String> accountIdsToAdd) The AWS user accounts that should have access to the document.withAccountIdsToRemove
(String... accountIdsToRemove) The AWS user accounts that should no longer have access to the document.withAccountIdsToRemove
(Collection<String> accountIdsToRemove) The AWS user accounts that should no longer have access to the document.The name of the document that you want to share.withPermissionType
(DocumentPermissionType permissionType) The permission type for the document.withPermissionType
(String permissionType) The permission type for the document.Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
Constructor Details
-
ModifyDocumentPermissionRequest
public ModifyDocumentPermissionRequest()
-
-
Method Details
-
setName
The name of the document that you want to share.
- Parameters:
name
- The name of the document that you want to share.
-
getName
The name of the document that you want to share.
- Returns:
- The name of the document that you want to share.
-
withName
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.
-
setPermissionType
The permission type for the document. The permission type can be Share.
- Parameters:
permissionType
- The permission type for the document. The permission type can be Share.- See Also:
-
getPermissionType
The permission type for the document. The permission type can be Share.
- Returns:
- The permission type for the document. The permission type can be Share.
- See Also:
-
withPermissionType
The permission type for the document. The permission type can be Share.
- Parameters:
permissionType
- The permission type for the document. The permission type can be Share.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setPermissionType
The permission type for the document. The permission type can be Share.
- Parameters:
permissionType
- The permission type for the document. The permission type can be Share.- See Also:
-
withPermissionType
The permission type for the document. The permission type can be Share.
- Parameters:
permissionType
- The permission type for the document. The permission type can be Share.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
getAccountIdsToAdd
The AWS user accounts that should have access to the document. The account IDs can either be a group of account IDs or All.
- Returns:
- The AWS user accounts that should have access to the document. The account IDs can either be a group of account IDs or All.
-
setAccountIdsToAdd
The AWS user accounts that should have access to the document. The account IDs can either be a group of account IDs or All.
- Parameters:
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.
-
withAccountIdsToAdd
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)
orwithAccountIdsToAdd(java.util.Collection)
if you want to override the existing values.- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withAccountIdsToAdd
The AWS user accounts that should have access to the document. The account IDs can either be a group of account IDs or All.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getAccountIdsToRemove
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.
- Returns:
- 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.
-
setAccountIdsToRemove
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.
- Parameters:
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.
-
withAccountIdsToRemove
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)
orwithAccountIdsToRemove(java.util.Collection)
if you want to override the existing values.- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withAccountIdsToRemove
public ModifyDocumentPermissionRequest withAccountIdsToRemove(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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
-