public AccessPreviewFinding withAction(String... action) {
        if (this.action == null) {
            setAction(new java.util.ArrayList<String>(action.length));
        }
        for (String ele : action) {
            this.action.add(ele);
        }
        return this;
    }
<p>
The action in the analyzed policy statement that an external principal has permission to perform.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAction(java.util.Collection)} or {@link #withAction(java.util.Collection)} if you want to override the
existing values.
</p>

@param action
       The action in the analyzed policy statement that an external principal has permission to perform.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-accessanalyzer/src/main/java/com/amazonaws/services/accessanalyzer/model/AccessPreviewFinding.java