@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 queueUrl,
String label,
List<String> aWSAccountIds,
List<String> actions)
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> |
getActions()
The action the client wants to allow for the specified principal.
|
List<String> |
getAWSAccountIds()
The AWS account number of the principal who is given permission.
|
String |
getLabel()
The unique identification of the permission you're setting (for example,
AliceSendMessage ). |
String |
getQueueUrl()
The URL of the Amazon SQS queue to which permissions are added.
|
int |
hashCode() |
void |
setActions(Collection<String> actions)
The action the client wants to allow for the specified principal.
|
void |
setAWSAccountIds(Collection<String> aWSAccountIds)
The AWS account number of the principal who is given permission.
|
void |
setLabel(String label)
The unique identification of the permission you're setting (for example,
AliceSendMessage ). |
void |
setQueueUrl(String queueUrl)
The URL of the Amazon SQS queue to which permissions are added.
|
String |
toString()
Returns a string representation of this object.
|
AddPermissionRequest |
withActions(Collection<String> actions)
The action the client wants to allow for the specified principal.
|
AddPermissionRequest |
withActions(String... actions)
The action the client wants to allow for the specified principal.
|
AddPermissionRequest |
withAWSAccountIds(Collection<String> aWSAccountIds)
The AWS account number of the principal who is given permission.
|
AddPermissionRequest |
withAWSAccountIds(String... aWSAccountIds)
The AWS account number of the principal who is given permission.
|
AddPermissionRequest |
withLabel(String label)
The unique identification of the permission you're setting (for example,
AliceSendMessage ). |
AddPermissionRequest |
withQueueUrl(String queueUrl)
The URL of the Amazon SQS queue to which permissions are added.
|
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 queueUrl, String label, List<String> aWSAccountIds, List<String> actions)
queueUrl
- The URL of the Amazon SQS queue to which permissions are added.
Queue URLs and names are case-sensitive.
label
- The unique identification of the permission you're setting (for example, AliceSendMessage
).
Maximum 80 characters. Allowed characters include alphanumeric characters, hyphens (-
), and
underscores (_
).aWSAccountIds
- The AWS account number of the principal who is given
permission. The principal must have an AWS account, but does not need to be signed up for Amazon SQS. For
information about locating the AWS account identification, see Your AWS Identifiers in the Amazon Simple Queue Service Developer Guide.actions
- The action the client wants to allow for the specified principal. Valid values: the name of any action or
*
.
For more information about these actions, see Overview of Managing Access Permissions to Your Amazon Simple Queue Service Resource in the Amazon Simple Queue Service Developer Guide.
Specifying SendMessage
, DeleteMessage
, or ChangeMessageVisibility
for ActionName.n
also grants permissions for the corresponding batch versions of those
actions: SendMessageBatch
, DeleteMessageBatch
, and
ChangeMessageVisibilityBatch
.
public void setQueueUrl(String queueUrl)
The URL of the Amazon SQS queue to which permissions are added.
Queue URLs and names are case-sensitive.
queueUrl
- The URL of the Amazon SQS queue to which permissions are added.
Queue URLs and names are case-sensitive.
public String getQueueUrl()
The URL of the Amazon SQS queue to which permissions are added.
Queue URLs and names are case-sensitive.
Queue URLs and names are case-sensitive.
public AddPermissionRequest withQueueUrl(String queueUrl)
The URL of the Amazon SQS queue to which permissions are added.
Queue URLs and names are case-sensitive.
queueUrl
- The URL of the Amazon SQS queue to which permissions are added.
Queue URLs and names are case-sensitive.
public void setLabel(String label)
The unique identification of the permission you're setting (for example, AliceSendMessage
). Maximum
80 characters. Allowed characters include alphanumeric characters, hyphens (-
), and underscores (
_
).
label
- The unique identification of the permission you're setting (for example, AliceSendMessage
).
Maximum 80 characters. Allowed characters include alphanumeric characters, hyphens (-
), and
underscores (_
).public String getLabel()
The unique identification of the permission you're setting (for example, AliceSendMessage
). Maximum
80 characters. Allowed characters include alphanumeric characters, hyphens (-
), and underscores (
_
).
AliceSendMessage
).
Maximum 80 characters. Allowed characters include alphanumeric characters, hyphens (-
), and
underscores (_
).public AddPermissionRequest withLabel(String label)
The unique identification of the permission you're setting (for example, AliceSendMessage
). Maximum
80 characters. Allowed characters include alphanumeric characters, hyphens (-
), and underscores (
_
).
label
- The unique identification of the permission you're setting (for example, AliceSendMessage
).
Maximum 80 characters. Allowed characters include alphanumeric characters, hyphens (-
), and
underscores (_
).public List<String> getAWSAccountIds()
The AWS account number of the principal who is given permission. The principal must have an AWS account, but does not need to be signed up for Amazon SQS. For information about locating the AWS account identification, see Your AWS Identifiers in the Amazon Simple Queue Service Developer Guide.
public void setAWSAccountIds(Collection<String> aWSAccountIds)
The AWS account number of the principal who is given permission. The principal must have an AWS account, but does not need to be signed up for Amazon SQS. For information about locating the AWS account identification, see Your AWS Identifiers in the Amazon Simple Queue Service Developer Guide.
aWSAccountIds
- The AWS account number of the principal who is given
permission. The principal must have an AWS account, but does not need to be signed up for Amazon SQS. For
information about locating the AWS account identification, see Your AWS Identifiers in the Amazon Simple Queue Service Developer Guide.public AddPermissionRequest withAWSAccountIds(String... aWSAccountIds)
The AWS account number of the principal who is given permission. The principal must have an AWS account, but does not need to be signed up for Amazon SQS. For information about locating the AWS account identification, see Your AWS Identifiers in the Amazon Simple Queue Service Developer Guide.
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 number of the principal who is given
permission. The principal must have an AWS account, but does not need to be signed up for Amazon SQS. For
information about locating the AWS account identification, see Your AWS Identifiers in the Amazon Simple Queue Service Developer Guide.public AddPermissionRequest withAWSAccountIds(Collection<String> aWSAccountIds)
The AWS account number of the principal who is given permission. The principal must have an AWS account, but does not need to be signed up for Amazon SQS. For information about locating the AWS account identification, see Your AWS Identifiers in the Amazon Simple Queue Service Developer Guide.
aWSAccountIds
- The AWS account number of the principal who is given
permission. The principal must have an AWS account, but does not need to be signed up for Amazon SQS. For
information about locating the AWS account identification, see Your AWS Identifiers in the Amazon Simple Queue Service Developer Guide.public List<String> getActions()
The action the client wants to allow for the specified principal. Valid values: the name of any action or
*
.
For more information about these actions, see Overview of Managing Access Permissions to Your Amazon Simple Queue Service Resource in the Amazon Simple Queue Service Developer Guide.
Specifying SendMessage
, DeleteMessage
, or ChangeMessageVisibility
for
ActionName.n
also grants permissions for the corresponding batch versions of those actions:
SendMessageBatch
, DeleteMessageBatch
, and ChangeMessageVisibilityBatch
.
*
.
For more information about these actions, see Overview of Managing Access Permissions to Your Amazon Simple Queue Service Resource in the Amazon Simple Queue Service Developer Guide.
Specifying SendMessage
, DeleteMessage
, or ChangeMessageVisibility
for ActionName.n
also grants permissions for the corresponding batch versions of those
actions: SendMessageBatch
, DeleteMessageBatch
, and
ChangeMessageVisibilityBatch
.
public void setActions(Collection<String> actions)
The action the client wants to allow for the specified principal. Valid values: the name of any action or
*
.
For more information about these actions, see Overview of Managing Access Permissions to Your Amazon Simple Queue Service Resource in the Amazon Simple Queue Service Developer Guide.
Specifying SendMessage
, DeleteMessage
, or ChangeMessageVisibility
for
ActionName.n
also grants permissions for the corresponding batch versions of those actions:
SendMessageBatch
, DeleteMessageBatch
, and ChangeMessageVisibilityBatch
.
actions
- The action the client wants to allow for the specified principal. Valid values: the name of any action or
*
.
For more information about these actions, see Overview of Managing Access Permissions to Your Amazon Simple Queue Service Resource in the Amazon Simple Queue Service Developer Guide.
Specifying SendMessage
, DeleteMessage
, or ChangeMessageVisibility
for ActionName.n
also grants permissions for the corresponding batch versions of those
actions: SendMessageBatch
, DeleteMessageBatch
, and
ChangeMessageVisibilityBatch
.
public AddPermissionRequest withActions(String... actions)
The action the client wants to allow for the specified principal. Valid values: the name of any action or
*
.
For more information about these actions, see Overview of Managing Access Permissions to Your Amazon Simple Queue Service Resource in the Amazon Simple Queue Service Developer Guide.
Specifying SendMessage
, DeleteMessage
, or ChangeMessageVisibility
for
ActionName.n
also grants permissions for the corresponding batch versions of those actions:
SendMessageBatch
, DeleteMessageBatch
, and ChangeMessageVisibilityBatch
.
NOTE: This method appends the values to the existing list (if any). Use
setActions(java.util.Collection)
or withActions(java.util.Collection)
if you want to override
the existing values.
actions
- The action the client wants to allow for the specified principal. Valid values: the name of any action or
*
.
For more information about these actions, see Overview of Managing Access Permissions to Your Amazon Simple Queue Service Resource in the Amazon Simple Queue Service Developer Guide.
Specifying SendMessage
, DeleteMessage
, or ChangeMessageVisibility
for ActionName.n
also grants permissions for the corresponding batch versions of those
actions: SendMessageBatch
, DeleteMessageBatch
, and
ChangeMessageVisibilityBatch
.
public AddPermissionRequest withActions(Collection<String> actions)
The action the client wants to allow for the specified principal. Valid values: the name of any action or
*
.
For more information about these actions, see Overview of Managing Access Permissions to Your Amazon Simple Queue Service Resource in the Amazon Simple Queue Service Developer Guide.
Specifying SendMessage
, DeleteMessage
, or ChangeMessageVisibility
for
ActionName.n
also grants permissions for the corresponding batch versions of those actions:
SendMessageBatch
, DeleteMessageBatch
, and ChangeMessageVisibilityBatch
.
actions
- The action the client wants to allow for the specified principal. Valid values: the name of any action or
*
.
For more information about these actions, see Overview of Managing Access Permissions to Your Amazon Simple Queue Service Resource in the Amazon Simple Queue Service Developer Guide.
Specifying SendMessage
, DeleteMessage
, or ChangeMessageVisibility
for ActionName.n
also grants permissions for the corresponding batch versions of those
actions: SendMessageBatch
, DeleteMessageBatch
, and
ChangeMessageVisibilityBatch
.
public String toString()
toString
in class Object
Object.toString()
public AddPermissionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()