public CreateResourcePolicyStatementRequest withAction(java.util.Collection<String> action) {
        setAction(action);
        return this;
    }
<p>
The Amazon Lex action that this policy either allows or denies. The action must apply to the resource type of the
specified ARN. For more information, see <a
href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonlexv2.html"> Actions,
resources, and condition keys for Amazon Lex V2</a>.
</p>

@param action
       The Amazon Lex action that this policy either allows or denies. The action must apply to the resource type
       of the specified ARN. For more information, see <a
       href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonlexv2.html"> Actions,
       resources, and condition keys for Amazon Lex V2</a>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-lexmodelsv2/src/main/java/com/amazonaws/services/lexmodelsv2/model/CreateResourcePolicyStatementRequest.java