public TestInvokeAuthorizerResult withPolicyDocuments(String... policyDocuments) {
        if (this.policyDocuments == null) {
            setPolicyDocuments(new java.util.ArrayList<String>(policyDocuments.length));
        }
        for (String ele : policyDocuments) {
            this.policyDocuments.add(ele);
        }
        return this;
    }
<p>
IAM policy documents.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setPolicyDocuments(java.util.Collection)} or {@link #withPolicyDocuments(java.util.Collection)} if you
want to override the existing values.
</p>

@param policyDocuments
       IAM policy documents.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/TestInvokeAuthorizerResult.java