Exemple #1
0
 public static void checkSyslogServerSettings(SyslogServerSettings settings) {
   // Check optional fields
   if (settings.getSyslogServerIp1() != null) {
     checkIpAddress(settings.getSyslogServerIp1());
   }
   if (settings.getSyslogServerIp2() != null) {
     checkIpAddress(settings.getSyslogServerIp2());
   }
 }
 public Builder fromSyslogServerSettings(SyslogServerSettings in) {
   return syslogServerIp1(in.getSyslogServerIp1()).syslogServerIp2(in.getSyslogServerIp2());
 }
 public SyslogServerSettings build() {
   SyslogServerSettings syslogServerSettings = new SyslogServerSettings();
   syslogServerSettings.syslogServerIp1 = syslogServerIp1;
   syslogServerSettings.syslogServerIp2 = syslogServerIp2;
   return syslogServerSettings;
 }