@Generated(value="software.amazon.awssdk:codegen") public final class AddPermissionRequest extends SqsRequest implements ToCopyableBuilder<AddPermissionRequest.Builder,AddPermissionRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
AddPermissionRequest.Builder |
Modifier and Type | Method and Description |
---|---|
List<String> |
actions()
The action the client wants to allow for the specified principal.
|
List<String> |
awsAccountIds()
The AWS account number of the principal who is given permission.
|
static AddPermissionRequest.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
label()
The unique identification of the permission you're setting (for example,
AliceSendMessage ). |
String |
queueUrl()
The URL of the Amazon SQS queue to which permissions are added.
|
static Class<? extends AddPermissionRequest.Builder> |
serializableBuilderClass() |
AddPermissionRequest.Builder |
toBuilder() |
String |
toString() |
overrideConfiguration
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public String queueUrl()
The URL of the Amazon SQS queue to which permissions are added.
Queue URLs are case-sensitive.
Queue URLs are case-sensitive.
public 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 (
_
).
AliceSendMessage
).
Maximum 80 characters. Allowed characters include alphanumeric characters, hyphens (-
), and
underscores (_
).public List<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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public List<String> actions()
The action the client wants to allow for the specified principal. The following values are valid:
*
ChangeMessageVisibility
DeleteMessage
GetQueueAttributes
GetQueueUrl
ReceiveMessage
SendMessage
For more information about these actions, see Understanding Permissions 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
.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
*
ChangeMessageVisibility
DeleteMessage
GetQueueAttributes
GetQueueUrl
ReceiveMessage
SendMessage
For more information about these actions, see Understanding Permissions 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.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<AddPermissionRequest.Builder,AddPermissionRequest>
toBuilder
in class SqsRequest
public static AddPermissionRequest.Builder builder()
public static Class<? extends AddPermissionRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField
in class SdkRequest
Copyright © 2018. All rights reserved.