Class AddPermissionRequest
- All Implemented Interfaces:
ReadLimitInfo, Serializable, Cloneable
- See Also:
-
Field Summary
Fields inherited from class AmazonWebServiceRequest
NOOP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a shallow clone of this request.booleanThe action you want to allow for the specified principal(s).The AWS account IDs of the users (principals) who will be given access to the specified actions.getLabel()A unique identifier for the new policy statement.The ARN of the topic whose access control policy you wish to modify.inthashCode()voidsetActionNames(Collection<String> actionNames) The action you want to allow for the specified principal(s).voidsetAWSAccountIds(Collection<String> aWSAccountIds) The AWS account IDs of the users (principals) who will be given access to the specified actions.voidA unique identifier for the new policy statement.voidsetTopicArn(String topicArn) The ARN of the topic whose access control policy you wish to modify.toString()Returns a string representation of this object; useful for testing and debugging.withActionNames(String... actionNames) The action you want to allow for the specified principal(s).withActionNames(Collection<String> actionNames) The action you want to allow for the specified principal(s).withAWSAccountIds(String... aWSAccountIds) The AWS account IDs of the users (principals) who will be given access to the specified actions.withAWSAccountIds(Collection<String> aWSAccountIds) The AWS account IDs of the users (principals) who will be given access to the specified actions.A unique identifier for the new policy statement.withTopicArn(String topicArn) The ARN of the topic whose access control policy you wish to modify.Methods inherited from class 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
-
Constructor Details
-
AddPermissionRequest
public AddPermissionRequest()Default constructor for AddPermissionRequest object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it. -
AddPermissionRequest
public AddPermissionRequest(String topicArn, String label, List<String> aWSAccountIds, List<String> actionNames) Constructs a new AddPermissionRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
topicArn- The ARN of the topic whose access control policy you wish to modify.label- A unique identifier for the new policy statement.aWSAccountIds- The AWS account IDs of the users (principals) who will be given access to the specified actions. The users must have AWS accounts, but do not need to be signed up for this service.actionNames- The action you want to allow for the specified principal(s).Valid values: any Amazon SNS action name.
-
-
Method Details
-
setTopicArn
The ARN of the topic whose access control policy you wish to modify.
- Parameters:
topicArn- The ARN of the topic whose access control policy you wish to modify.
-
getTopicArn
The ARN of the topic whose access control policy you wish to modify.
- Returns:
- The ARN of the topic whose access control policy you wish to modify.
-
withTopicArn
The ARN of the topic whose access control policy you wish to modify.
- Parameters:
topicArn- The ARN of the topic whose access control policy you wish to modify.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLabel
A unique identifier for the new policy statement.
- Parameters:
label- A unique identifier for the new policy statement.
-
getLabel
A unique identifier for the new policy statement.
- Returns:
- A unique identifier for the new policy statement.
-
withLabel
A unique identifier for the new policy statement.
- Parameters:
label- A unique identifier for the new policy statement.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getAWSAccountIds
The AWS account IDs of the users (principals) who will be given access to the specified actions. The users must have AWS accounts, but do not need to be signed up for this service.
- Returns:
- The AWS account IDs of the users (principals) who will be given access to the specified actions. The users must have AWS accounts, but do not need to be signed up for this service.
-
setAWSAccountIds
The AWS account IDs of the users (principals) who will be given access to the specified actions. The users must have AWS accounts, but do not need to be signed up for this service.
- Parameters:
aWSAccountIds- The AWS account IDs of the users (principals) who will be given access to the specified actions. The users must have AWS accounts, but do not need to be signed up for this service.
-
withAWSAccountIds
The AWS account IDs of the users (principals) who will be given access to the specified actions. The users must have AWS accounts, but do not need to be signed up for this service.
NOTE: This method appends the values to the existing list (if any). Use
setAWSAccountIds(java.util.Collection)orwithAWSAccountIds(java.util.Collection)if you want to override the existing values.- Parameters:
aWSAccountIds- The AWS account IDs of the users (principals) who will be given access to the specified actions. The users must have AWS accounts, but do not need to be signed up for this service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withAWSAccountIds
The AWS account IDs of the users (principals) who will be given access to the specified actions. The users must have AWS accounts, but do not need to be signed up for this service.
- Parameters:
aWSAccountIds- The AWS account IDs of the users (principals) who will be given access to the specified actions. The users must have AWS accounts, but do not need to be signed up for this service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getActionNames
-
setActionNames
The action you want to allow for the specified principal(s).
Valid values: any Amazon SNS action name.
- Parameters:
actionNames- The action you want to allow for the specified principal(s).Valid values: any Amazon SNS action name.
-
withActionNames
The action you want to allow for the specified principal(s).
Valid values: any Amazon SNS action name.
NOTE: This method appends the values to the existing list (if any). Use
setActionNames(java.util.Collection)orwithActionNames(java.util.Collection)if you want to override the existing values.- Parameters:
actionNames- The action you want to allow for the specified principal(s).Valid values: any Amazon SNS action name.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withActionNames
The action you want to allow for the specified principal(s).
Valid values: any Amazon SNS action name.
- Parameters:
actionNames- The action you want to allow for the specified principal(s).Valid values: any Amazon SNS action name.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
-
equals
-
hashCode
-
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:
-