@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AddResourcePermissionsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description | 
|---|
AddResourcePermissionsRequest()  | 
| Modifier and Type | Method and Description | 
|---|---|
AddResourcePermissionsRequest | 
clone()
Creates a shallow clone of this object for all fields except the handler context. 
 | 
boolean | 
equals(Object obj)  | 
List<SharePrincipal> | 
getPrincipals()
 The users, groups, or organization being granted permission. 
 | 
String | 
getResourceId()
 The ID of the resource. 
 | 
int | 
hashCode()  | 
void | 
setPrincipals(Collection<SharePrincipal> principals)
 The users, groups, or organization being granted permission. 
 | 
void | 
setResourceId(String resourceId)
 The ID of the resource. 
 | 
String | 
toString()
Returns a string representation of this object; useful for testing and debugging. 
 | 
AddResourcePermissionsRequest | 
withPrincipals(Collection<SharePrincipal> principals)
 The users, groups, or organization being granted permission. 
 | 
AddResourcePermissionsRequest | 
withPrincipals(SharePrincipal... principals)
 The users, groups, or organization being granted permission. 
 | 
AddResourcePermissionsRequest | 
withResourceId(String resourceId)
 The ID of the resource. 
 | 
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic void setResourceId(String resourceId)
The ID of the resource.
resourceId - The ID of the resource.public String getResourceId()
The ID of the resource.
public AddResourcePermissionsRequest withResourceId(String resourceId)
The ID of the resource.
resourceId - The ID of the resource.public List<SharePrincipal> getPrincipals()
The users, groups, or organization being granted permission.
public void setPrincipals(Collection<SharePrincipal> principals)
The users, groups, or organization being granted permission.
principals - The users, groups, or organization being granted permission.public AddResourcePermissionsRequest withPrincipals(SharePrincipal... principals)
The users, groups, or organization being granted permission.
 NOTE: This method appends the values to the existing list (if any). Use
 setPrincipals(java.util.Collection) or withPrincipals(java.util.Collection) if you want to
 override the existing values.
 
principals - The users, groups, or organization being granted permission.public AddResourcePermissionsRequest withPrincipals(Collection<SharePrincipal> principals)
The users, groups, or organization being granted permission.
principals - The users, groups, or organization being granted permission.public String toString()
toString in class ObjectObject.toString()public AddResourcePermissionsRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.