@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) |
String |
getAuthenticationToken()
Amazon WorkDocs authentication token.
|
List<SharePrincipal> |
getPrincipals()
The users, groups, or organization being granted permission.
|
String |
getResourceId()
The ID of the resource.
|
int |
hashCode() |
void |
setAuthenticationToken(String authenticationToken)
Amazon WorkDocs authentication token.
|
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 |
withAuthenticationToken(String authenticationToken)
Amazon WorkDocs authentication token.
|
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, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setAuthenticationToken(String authenticationToken)
Amazon WorkDocs authentication token. This field should not be set when using administrative API actions, as in accessing the API using AWS credentials.
authenticationToken
- Amazon WorkDocs authentication token. This field should not be set when using administrative API actions,
as in accessing the API using AWS credentials.public String getAuthenticationToken()
Amazon WorkDocs authentication token. This field should not be set when using administrative API actions, as in accessing the API using AWS credentials.
public AddResourcePermissionsRequest withAuthenticationToken(String authenticationToken)
Amazon WorkDocs authentication token. This field should not be set when using administrative API actions, as in accessing the API using AWS credentials.
authenticationToken
- Amazon WorkDocs authentication token. This field should not be set when using administrative API actions,
as in accessing the API using AWS credentials.public 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 Object
Object.toString()
public AddResourcePermissionsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.