@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AddPermissionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
AddPermissionRequest()
Default constructor for AddPermissionRequest object.
|
AddPermissionRequest(String topicArn,
String label,
List<String> aWSAccountIds,
List<String> actionNames)
Constructs a new AddPermissionRequest object.
|
Modifier and Type | Method and Description |
---|---|
AddPermissionRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
List<String> |
getActionNames()
The action you want to allow for the specified principal(s).
|
List<String> |
getAWSAccountIds()
The AWS account IDs of the users (principals) who will be given access to the specified actions.
|
String |
getLabel()
A unique identifier for the new policy statement.
|
String |
getTopicArn()
The ARN of the topic whose access control policy you wish to modify.
|
int |
hashCode() |
void |
setActionNames(Collection<String> actionNames)
The action you want to allow for the specified principal(s).
|
void |
setAWSAccountIds(Collection<String> aWSAccountIds)
The AWS account IDs of the users (principals) who will be given access to the specified actions.
|
void |
setLabel(String label)
A unique identifier for the new policy statement.
|
void |
setTopicArn(String topicArn)
The ARN of the topic whose access control policy you wish to modify.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
AddPermissionRequest |
withActionNames(Collection<String> actionNames)
The action you want to allow for the specified principal(s).
|
AddPermissionRequest |
withActionNames(String... actionNames)
The action you want to allow for the specified principal(s).
|
AddPermissionRequest |
withAWSAccountIds(Collection<String> aWSAccountIds)
The AWS account IDs of the users (principals) who will be given access to the specified actions.
|
AddPermissionRequest |
withAWSAccountIds(String... aWSAccountIds)
The AWS account IDs of the users (principals) who will be given access to the specified actions.
|
AddPermissionRequest |
withLabel(String label)
A unique identifier for the new policy statement.
|
AddPermissionRequest |
withTopicArn(String topicArn)
The ARN of the topic whose access control policy you wish to modify.
|
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 AddPermissionRequest()
public AddPermissionRequest(String topicArn, String label, List<String> aWSAccountIds, List<String> actionNames)
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.
public void setTopicArn(String topicArn)
The ARN of the topic whose access control policy you wish to modify.
topicArn
- The ARN of the topic whose access control policy you wish to modify.public String getTopicArn()
The ARN of the topic whose access control policy you wish to modify.
public AddPermissionRequest withTopicArn(String topicArn)
The ARN of the topic whose access control policy you wish to modify.
topicArn
- The ARN of the topic whose access control policy you wish to modify.public void setLabel(String label)
A unique identifier for the new policy statement.
label
- A unique identifier for the new policy statement.public String getLabel()
A unique identifier for the new policy statement.
public AddPermissionRequest withLabel(String label)
A unique identifier for the new policy statement.
label
- A unique identifier for the new policy statement.public List<String> 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.
public void setAWSAccountIds(Collection<String> 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.
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.public AddPermissionRequest withAWSAccountIds(String... 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.
NOTE: This method appends the values to the existing list (if any). Use
setAWSAccountIds(java.util.Collection)
or withAWSAccountIds(java.util.Collection)
if you want
to override the existing values.
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.public AddPermissionRequest withAWSAccountIds(Collection<String> 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.
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.public List<String> getActionNames()
The action you want to allow for the specified principal(s).
Valid values: any Amazon SNS action name.
Valid values: any Amazon SNS action name.
public void setActionNames(Collection<String> actionNames)
The action you want to allow for the specified principal(s).
Valid values: any Amazon SNS action name.
actionNames
- The action you want to allow for the specified principal(s).
Valid values: any Amazon SNS action name.
public AddPermissionRequest withActionNames(String... actionNames)
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)
or withActionNames(java.util.Collection)
if you want to
override the existing values.
actionNames
- The action you want to allow for the specified principal(s).
Valid values: any Amazon SNS action name.
public AddPermissionRequest withActionNames(Collection<String> actionNames)
The action you want to allow for the specified principal(s).
Valid values: any Amazon SNS action name.
actionNames
- The action you want to allow for the specified principal(s).
Valid values: any Amazon SNS action name.
public String toString()
toString
in class Object
Object.toString()
public AddPermissionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.