public CreatePermissionRequest withActions(ActionType... actions) {
        java.util.ArrayList<String> actionsCopy = new java.util.ArrayList<String>(actions.length);
        for (ActionType value : actions) {
            actionsCopy.add(value.toString());
        }
        if (getActions() == null) {
            setActions(actionsCopy);
        } else {
            getActions().addAll(actionsCopy);
        }
        return this;
    }
<p>
The actions that the specified Amazon Web Services service principal can use. These include
<code>IssueCertificate</code>, <code>GetCertificate</code>, and <code>ListPermissions</code>.
</p>

@param actions
       The actions that the specified Amazon Web Services service principal can use. These include
       <code>IssueCertificate</code>, <code>GetCertificate</code>, and <code>ListPermissions</code>.
@return Returns a reference to this object so that method calls can be chained together.
@see ActionType
aws-java-sdk-acmpca/src/main/java/com/amazonaws/services/acmpca/model/CreatePermissionRequest.java