public class AddPermissionRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<java.lang.String> |
actionNames
The action you want to allow for the specified principal(s).
|
private SdkInternalList<java.lang.String> |
aWSAccountIds
The AWS account IDs of the users (principals) who will be given access to
the specified actions.
|
private java.lang.String |
label
A unique identifier for the new policy statement.
|
private java.lang.String |
topicArn
The ARN of the topic whose access control policy you wish to modify.
|
NOOP
Constructor and Description |
---|
AddPermissionRequest()
Default constructor for AddPermissionRequest object.
|
AddPermissionRequest(java.lang.String topicArn,
java.lang.String label,
java.util.List<java.lang.String> aWSAccountIds,
java.util.List<java.lang.String> actionNames)
Constructs a new AddPermissionRequest object.
|
Modifier and Type | Method and Description |
---|---|
AddPermissionRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
getActionNames()
The action you want to allow for the specified principal(s).
|
java.util.List<java.lang.String> |
getAWSAccountIds()
The AWS account IDs of the users (principals) who will be given access to
the specified actions.
|
java.lang.String |
getLabel()
A unique identifier for the new policy statement.
|
java.lang.String |
getTopicArn()
The ARN of the topic whose access control policy you wish to modify.
|
int |
hashCode() |
void |
setActionNames(java.util.Collection<java.lang.String> actionNames)
The action you want to allow for the specified principal(s).
|
void |
setAWSAccountIds(java.util.Collection<java.lang.String> aWSAccountIds)
The AWS account IDs of the users (principals) who will be given access to
the specified actions.
|
void |
setLabel(java.lang.String label)
A unique identifier for the new policy statement.
|
void |
setTopicArn(java.lang.String topicArn)
The ARN of the topic whose access control policy you wish to modify.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AddPermissionRequest |
withActionNames(java.util.Collection<java.lang.String> actionNames)
The action you want to allow for the specified principal(s).
|
AddPermissionRequest |
withActionNames(java.lang.String... actionNames)
The action you want to allow for the specified principal(s).
|
AddPermissionRequest |
withAWSAccountIds(java.util.Collection<java.lang.String> aWSAccountIds)
The AWS account IDs of the users (principals) who will be given access to
the specified actions.
|
AddPermissionRequest |
withAWSAccountIds(java.lang.String... aWSAccountIds)
The AWS account IDs of the users (principals) who will be given access to
the specified actions.
|
AddPermissionRequest |
withLabel(java.lang.String label)
A unique identifier for the new policy statement.
|
AddPermissionRequest |
withTopicArn(java.lang.String topicArn)
The ARN of the topic whose access control policy you wish to modify.
|
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
private java.lang.String topicArn
The ARN of the topic whose access control policy you wish to modify.
private java.lang.String label
A unique identifier for the new policy statement.
private SdkInternalList<java.lang.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.
private SdkInternalList<java.lang.String> actionNames
The action you want to allow for the specified principal(s).
Valid values: any Amazon SNS action name.
public AddPermissionRequest()
public AddPermissionRequest(java.lang.String topicArn, java.lang.String label, java.util.List<java.lang.String> aWSAccountIds, java.util.List<java.lang.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(java.lang.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 java.lang.String getTopicArn()
The ARN of the topic whose access control policy you wish to modify.
public AddPermissionRequest withTopicArn(java.lang.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(java.lang.String label)
A unique identifier for the new policy statement.
label
- A unique identifier for the new policy statement.public java.lang.String getLabel()
A unique identifier for the new policy statement.
public AddPermissionRequest withLabel(java.lang.String label)
A unique identifier for the new policy statement.
label
- A unique identifier for the new policy statement.public java.util.List<java.lang.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(java.util.Collection<java.lang.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(java.lang.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(java.util.Collection<java.lang.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 java.util.List<java.lang.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(java.util.Collection<java.lang.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(java.lang.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(java.util.Collection<java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public AddPermissionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()