public java.util.List<PolicyGroup> getPolicyGroups() {
        if (policyGroups == null) {
            policyGroups = new com.amazonaws.internal.SdkInternalList<PolicyGroup>();
        }
        return policyGroups;
    }
<p>
A list of IAM groups that the policy is attached to.
</p>

@return 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