code: public void setPolicyGroups(java.util.Collection<PolicyGroup> policyGroups) {
          if (policyGroups == null) {
              this.policyGroups = null;
              return;
          }
  
          this.policyGroups = new com.amazonaws.internal.SdkInternalList<PolicyGroup>(policyGroups);
      }
docs: <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.