docs: public void setDomainMemberships(java.util.Collection<DomainMembership> domainMemberships) {
          if (domainMemberships == null) {
              this.domainMemberships = null;
              return;
          }
  
          this.domainMemberships = new com.amazonaws.internal.SdkInternalList<DomainMembership>(domainMemberships);
      }