public void setPolicyNamesToAdd(java.util.Collection<String> policyNamesToAdd) {
        if (policyNamesToAdd == null) {
            this.policyNamesToAdd = null;
            return;
        }

        this.policyNamesToAdd = new java.util.ArrayList<String>(policyNamesToAdd);
    }
<p>
When testing custom authorization, the policies specified here are treated as if they are attached to the
principal being authorized.
</p>

@param policyNamesToAdd
       When testing custom authorization, the policies specified here are treated as if they are attached to the
       principal being authorized.
aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/TestAuthorizationRequest.java