@Override
  public void toData(DataOutput out) throws IOException {
    String[] names = new String[requiredRoles.size()];
    Iterator<Role> iter = requiredRoles.iterator();
    for (int i = 0; i < names.length; i++) {
      names[i] = iter.next().getName();
    }
    DataSerializer.writeStringArray(names, out);
    out.writeByte(lossAction.ordinal);
    out.writeByte(resumptionAction.ordinal);
  }
Returns a string representation of the object.

@return a string representation of the object
geode-core/src/main/java/org/apache/geode/cache/MembershipAttributes.java