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