public void setPolicyGroups(java.util.Collection<PolicyGroup> policyGroups) {
        if (policyGroups == null) {
            this.policyGroups = null;
            return;
        }

        this.policyGroups = new com.amazonaws.internal.SdkInternalList<PolicyGroup>(policyGroups);
    }
<p>
A list of IAM groups that the policy is attached to.
</p>

@param policyGroups
       A list of IAM groups that the policy is attached to.
aws-java-sdk-iam/src/main/java/com/amazonaws/services/identitymanagement/model/ListEntitiesForPolicyResult.java