private void validateHealthCheck(HealthCheck healthCheck) { if (null != healthCheck && (null == healthCheck.getProtocol() || null == healthCheck.getPort())) { throw new IllegalArgumentException( "Missing required parameters [Protocol, Port] for health check"); } }
private void validateHealthCheck(HealthCheck healthCheck) { if (null != healthCheck && (null == healthCheck.getProtocol() || null == healthCheck.getPort())) { throw new IllegalArgumentException( "Missing required parameters [Protocol, Port] for health check"); } }