public AddPermissionRequest withActions(String... actions) {
        if (this.actions == null) {
            setActions(new com.amazonaws.internal.SdkInternalList<String>(actions.length));
        }
        for (String ele : actions) {
            this.actions.add(ele);
        }
        return this;
    }
<p>
The action the client wants to allow for the specified principal. Valid values: the name of any action or
<code>*</code>.
</p>
<p>
For more information about these actions, see <a href=
"https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-overview-of-managing-access.html"
>Overview of Managing Access Permissions to Your Amazon Simple Queue Service Resource</a> in the <i>Amazon SQS
Developer Guide</i>.
</p>
<p>
Specifying <code>SendMessage</code>, <code>DeleteMessage</code>, or <code>ChangeMessageVisibility</code> for
<code>ActionName.n</code> also grants permissions for the corresponding batch versions of those actions:
<code>SendMessageBatch</code>, <code>DeleteMessageBatch</code>, and <code>ChangeMessageVisibilityBatch</code>.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setActions(java.util.Collection)} or {@link #withActions(java.util.Collection)} if you want to override
the existing values.
</p>

@param actions
       The action the client wants to allow for the specified principal. Valid values: the name of any action or
       <code>*</code>.</p>
       <p>
       For more information about these actions, see <a href=
       "https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-overview-of-managing-access.html"
       >Overview of Managing Access Permissions to Your Amazon Simple Queue Service Resource</a> in the <i>Amazon
       SQS Developer Guide</i>.
       </p>
       <p>
       Specifying <code>SendMessage</code>, <code>DeleteMessage</code>, or <code>ChangeMessageVisibility</code>
       for <code>ActionName.n</code> also grants permissions for the corresponding batch versions of those
       actions: <code>SendMessageBatch</code>, <code>DeleteMessageBatch</code>, and
       <code>ChangeMessageVisibilityBatch</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-sqs/src/main/java/com/amazonaws/services/sqs/model/AddPermissionRequest.java