@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ModifyDocumentPermissionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
ModifyDocumentPermissionRequest() |
| Modifier and Type | Method and Description |
|---|---|
ModifyDocumentPermissionRequest |
clone() |
boolean |
equals(Object obj) |
List<String> |
getAccountIdsToAdd()
The AWS user accounts that should have access to the document.
|
List<String> |
getAccountIdsToRemove()
The AWS user accounts that should no longer have access to the document.
|
String |
getName()
The name of the document that you want to share.
|
String |
getPermissionType()
The permission type for the document.
|
String |
getSharedDocumentVersion()
(Optional) The version of the document to share.
|
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 |
setName(String name)
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.
|
void |
setSharedDocumentVersion(String sharedDocumentVersion)
(Optional) The version of the document to share.
|
String |
toString()
Returns a string representation of this object.
|
ModifyDocumentPermissionRequest |
withAccountIdsToAdd(Collection<String> accountIdsToAdd)
The AWS user accounts that should have access to the document.
|
ModifyDocumentPermissionRequest |
withAccountIdsToAdd(String... accountIdsToAdd)
The AWS user accounts that should have access to the document.
|
ModifyDocumentPermissionRequest |
withAccountIdsToRemove(Collection<String> accountIdsToRemove)
The AWS user accounts that should no longer have access to the document.
|
ModifyDocumentPermissionRequest |
withAccountIdsToRemove(String... accountIdsToRemove)
The AWS user accounts that should no longer have access to the document.
|
ModifyDocumentPermissionRequest |
withName(String name)
The name of the document that you want to share.
|
ModifyDocumentPermissionRequest |
withPermissionType(DocumentPermissionType permissionType)
The permission type for the document.
|
ModifyDocumentPermissionRequest |
withPermissionType(String permissionType)
The permission type for the document.
|
ModifyDocumentPermissionRequest |
withSharedDocumentVersion(String sharedDocumentVersion)
(Optional) The version of the document to share.
|
addHandlerContext, copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic void setName(String name)
The name of the document that you want to share.
name - The name of the document that you want to share.public String getName()
The name of the document that you want to share.
public ModifyDocumentPermissionRequest withName(String name)
The name of the document that you want to share.
name - The name of the document that you want to share.public void setPermissionType(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.DocumentPermissionTypepublic String getPermissionType()
The permission type for the document. The permission type can be Share.
DocumentPermissionTypepublic ModifyDocumentPermissionRequest withPermissionType(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.DocumentPermissionTypepublic void setPermissionType(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.DocumentPermissionTypepublic ModifyDocumentPermissionRequest withPermissionType(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.DocumentPermissionTypepublic List<String> 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.
public void setAccountIdsToAdd(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.public ModifyDocumentPermissionRequest withAccountIdsToAdd(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.public ModifyDocumentPermissionRequest withAccountIdsToAdd(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.public List<String> 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.
public void setAccountIdsToRemove(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.public ModifyDocumentPermissionRequest withAccountIdsToRemove(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.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.
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.public void setSharedDocumentVersion(String sharedDocumentVersion)
(Optional) The version of the document to share. If it's not specified, the system choose the
Default version to share.
sharedDocumentVersion - (Optional) The version of the document to share. If it's not specified, the system choose the
Default version to share.public String getSharedDocumentVersion()
(Optional) The version of the document to share. If it's not specified, the system choose the
Default version to share.
Default version to share.public ModifyDocumentPermissionRequest withSharedDocumentVersion(String sharedDocumentVersion)
(Optional) The version of the document to share. If it's not specified, the system choose the
Default version to share.
sharedDocumentVersion - (Optional) The version of the document to share. If it's not specified, the system choose the
Default version to share.public String toString()
toString in class ObjectObject.toString()public ModifyDocumentPermissionRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2020. All rights reserved.