Class ModifyDocumentPermissionRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.simplesystemsmanagement.model.ModifyDocumentPermissionRequest
-
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
public class ModifyDocumentPermissionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description ModifyDocumentPermissionRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModifyDocumentPermissionRequestclone()Creates a shallow clone of this request.booleanequals(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.StringgetName()The name of the document that you want to share.StringgetPermissionType()The permission type for the document.inthashCode()voidsetAccountIdsToAdd(Collection<String> accountIdsToAdd)The AWS user accounts that should have access to the document.voidsetAccountIdsToRemove(Collection<String> accountIdsToRemove)The AWS user accounts that should no longer have access to the document.voidsetName(String name)The name of the document that you want to share.voidsetPermissionType(DocumentPermissionType permissionType)The permission type for the document.voidsetPermissionType(String permissionType)The permission type for the document.StringtoString()Returns a string representation of this object; useful for testing and debugging.ModifyDocumentPermissionRequestwithAccountIdsToAdd(String... accountIdsToAdd)The AWS user accounts that should have access to the document.ModifyDocumentPermissionRequestwithAccountIdsToAdd(Collection<String> accountIdsToAdd)The AWS user accounts that should have access to the document.ModifyDocumentPermissionRequestwithAccountIdsToRemove(String... accountIdsToRemove)The AWS user accounts that should no longer have access to the document.ModifyDocumentPermissionRequestwithAccountIdsToRemove(Collection<String> accountIdsToRemove)The AWS user accounts that should no longer have access to the document.ModifyDocumentPermissionRequestwithName(String name)The name of the document that you want to share.ModifyDocumentPermissionRequestwithPermissionType(DocumentPermissionType permissionType)The permission type for the document.ModifyDocumentPermissionRequestwithPermissionType(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
-
-
-
-
Method Detail
-
setName
public void setName(String name)
The name of the document that you want to share.
- Parameters:
name- The name of the document that you want to share.
-
getName
public String getName()
The name of the document that you want to share.
- Returns:
- The name of the document that you want to share.
-
withName
public ModifyDocumentPermissionRequest withName(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.
-
setPermissionType
public void setPermissionType(String permissionType)
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:
DocumentPermissionType
-
getPermissionType
public String 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:
DocumentPermissionType
-
withPermissionType
public ModifyDocumentPermissionRequest withPermissionType(String permissionType)
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:
DocumentPermissionType
-
setPermissionType
public void setPermissionType(DocumentPermissionType permissionType)
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:
DocumentPermissionType
-
withPermissionType
public ModifyDocumentPermissionRequest withPermissionType(DocumentPermissionType permissionType)
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:
DocumentPermissionType
-
getAccountIdsToAdd
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.
- 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
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.
- 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
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)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
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.
- 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
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.
- 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
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.
- 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
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)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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ModifyDocumentPermissionRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-