@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()
Creates a shallow clone of this object for all fields except the handler context.
|
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.
|
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.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
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.
|
addHandlerContext, 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, withSdkRequestTimeout
public 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.DocumentPermissionType
public String getPermissionType()
The permission type for the document. The permission type can be Share.
DocumentPermissionType
public 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.DocumentPermissionType
public 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.DocumentPermissionType
public 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.DocumentPermissionType
public 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 String toString()
toString
in class Object
Object.toString()
public ModifyDocumentPermissionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.