@Override
  public String toString() {
    StringBuilder buf = new StringBuilder(1000);
    String lf = lineSeparator();
    if (lf == null) {
      lf = ",";
    }

    buf.append("DistributedSystemConfig(");
    buf.append(lf);
    buf.append("  system-name=");
    buf.append(systemName);
    buf.append(lf);
    buf.append("  " + MCAST_ADDRESS + "=");
    buf.append(mcastAddress);
    buf.append(lf);
    buf.append("  " + MCAST_PORT + "=");
    buf.append(mcastPort);
    buf.append(lf);
    buf.append("  " + LOCATORS + "=");
    buf.append(locators);
    buf.append(lf);
    buf.append("  " + MEMBERSHIP_PORT_RANGE_NAME + "=");
    buf.append(getMembershipPortRange());
    buf.append(lf);
    buf.append("  " + BIND_ADDRESS + "=");
    buf.append(bindAddress);
    buf.append(lf);
    buf.append("  " + TCP_PORT + "=" + tcpPort);
    buf.append(lf);
    buf.append("  " + DISABLE_TCP + "=");
    buf.append(disableTcp);
    buf.append(lf);
    buf.append("  " + DISABLE_JMX + "=");
    buf.append(disableJmx);
    buf.append(lf);
    buf.append("  " + DISABLE_AUTO_RECONNECT + "=");
    buf.append(disableAutoReconnect);
    buf.append(lf);
    buf.append("  " + REMOTE_COMMAND_NAME + "=");
    buf.append(remoteCommand);
    buf.append(lf);
    buf.append("  " + CLUSTER_SSL_ENABLED + "=");
    buf.append(sslEnabled);
    buf.append(lf);
    buf.append("  " + CLUSTER_SSL_CIPHERS + "=");
    buf.append(sslCiphers);
    buf.append(lf);
    buf.append("  " + CLUSTER_SSL_PROTOCOLS + "=");
    buf.append(sslProtocols);
    buf.append(lf);
    buf.append("  " + CLUSTER_SSL_REQUIRE_AUTHENTICATION + "=");
    buf.append(sslAuthenticationRequired);
    buf.append(lf);
    buf.append("  " + LOG_FILE_NAME + "=");
    buf.append(logFile);
    buf.append(lf);
    buf.append("  " + LOG_LEVEL_NAME + "=");
    buf.append(logLevel);
    buf.append(lf);
    buf.append("  " + LOG_DISK_SPACE_LIMIT_NAME + "=");
    buf.append(logDiskSpaceLimit);
    buf.append(lf);
    buf.append("  " + LOG_FILE_SIZE_LIMIT_NAME + "=");
    buf.append(logFileSizeLimit);
    buf.append(lf);
    buf.append("  " + REFRESH_INTERVAL_NAME + "=");
    buf.append(refreshInterval);
    buf.append(")");
    return buf.toString();
  }
Makes a deep copy of this config object.
geode-core/src/main/java/org/apache/geode/admin/internal/DistributedSystemConfigImpl.java