@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.
|
NotificationOptions |
getNotificationOptions()
The notification options.
|
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 |
setNotificationOptions(NotificationOptions notificationOptions)
The notification options.
|
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.
|
AddResourcePermissionsRequest |
withAuthenticationToken(String authenticationToken)
Amazon WorkDocs authentication token.
|
AddResourcePermissionsRequest |
withNotificationOptions(NotificationOptions notificationOptions)
The notification options.
|
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. Not required when using Amazon Web Services administrator credentials to access the API.
authenticationToken
- Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator
credentials to access the API.public String getAuthenticationToken()
Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API.
public AddResourcePermissionsRequest withAuthenticationToken(String authenticationToken)
Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API.
authenticationToken
- Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator
credentials to access the API.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 void setNotificationOptions(NotificationOptions notificationOptions)
The notification options.
notificationOptions
- The notification options.public NotificationOptions getNotificationOptions()
The notification options.
public AddResourcePermissionsRequest withNotificationOptions(NotificationOptions notificationOptions)
The notification options.
notificationOptions
- The notification options.public String toString()
toString
in class Object
Object.toString()
public AddResourcePermissionsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()