/** * Useful when performing a PATCH operation and you do not want to overwrite * unspecified values with the default values. */ public HttpHealthCheckCreationOptions buildForPatch() { return HttpHealthCheckCreationOptions.create(host, requestPath, port, checkIntervalSec, timeoutSec, unhealthyThreshold, healthyThreshold, description); } }
/** * Useful when performing a PATCH operation and you do not want to overwrite * unspecified values with the default values. */ public HttpHealthCheckCreationOptions buildForPatch() { return HttpHealthCheckCreationOptions.create(host, requestPath, port, checkIntervalSec, timeoutSec, unhealthyThreshold, healthyThreshold, description); } }
/** * Useful when performing a PATCH operation and you do not want to overwrite * unspecified values with the default values. */ public HttpHealthCheckCreationOptions buildForPatch() { return HttpHealthCheckCreationOptions.create(host, requestPath, port, checkIntervalSec, timeoutSec, unhealthyThreshold, healthyThreshold, description); } }
/** * Useful when performing a PATCH operation and you do not want to overwrite * unspecified values with the default values. */ public HttpHealthCheckCreationOptions buildForPatch() { return HttpHealthCheckCreationOptions.create(host, requestPath, port, checkIntervalSec, timeoutSec, unhealthyThreshold, healthyThreshold, description); } }
/** * @param requestPath Defaults to {@value #DEFAULT_REQUEST_PATH} when null. * @param port Defaults to {@value #DEFAULT_PORT} when null. * @param checkIntervalSec Defaults to {@value #DEFAULT_CHECK_INTERVAL_SEC} when null. * @param timeoutSec Defaults to {@value #DEFAULT_TIMEOUT_SEC} when null. * @param unhealthyThreshold Defaults to {@value #DEFAULT_UNHEALTHY_THRESHOLD} when null. * @param healthyThreshold Defaults to {@value #DEFAULT_HEALTHY_THRESHOLD} when null. */ static HttpHealthCheckCreationOptions createWithDefaults(String host, String requestPath, Integer port, Integer checkIntervalSec, Integer timeoutSec, Integer unhealthyThreshold, Integer healthyThreshold, String description) { return create(host, requestPath != null ? requestPath : DEFAULT_REQUEST_PATH, port != null ? port : DEFAULT_PORT, checkIntervalSec != null ? checkIntervalSec : DEFAULT_CHECK_INTERVAL_SEC, timeoutSec != null ? timeoutSec : DEFAULT_TIMEOUT_SEC, unhealthyThreshold != null ? unhealthyThreshold : DEFAULT_UNHEALTHY_THRESHOLD, healthyThreshold != null ? healthyThreshold : DEFAULT_HEALTHY_THRESHOLD, description); }
/** * @param requestPath Defaults to {@value #DEFAULT_REQUEST_PATH} when null. * @param port Defaults to {@value #DEFAULT_PORT} when null. * @param checkIntervalSec Defaults to {@value #DEFAULT_CHECK_INTERVAL_SEC} when null. * @param timeoutSec Defaults to {@value #DEFAULT_TIMEOUT_SEC} when null. * @param unhealthyThreshold Defaults to {@value #DEFAULT_UNHEALTHY_THRESHOLD} when null. * @param healthyThreshold Defaults to {@value #DEFAULT_HEALTHY_THRESHOLD} when null. */ static HttpHealthCheckCreationOptions createWithDefaults(String host, String requestPath, Integer port, Integer checkIntervalSec, Integer timeoutSec, Integer unhealthyThreshold, Integer healthyThreshold, String description) { return create(host, requestPath != null ? requestPath : DEFAULT_REQUEST_PATH, port != null ? port : DEFAULT_PORT, checkIntervalSec != null ? checkIntervalSec : DEFAULT_CHECK_INTERVAL_SEC, timeoutSec != null ? timeoutSec : DEFAULT_TIMEOUT_SEC, unhealthyThreshold != null ? unhealthyThreshold : DEFAULT_UNHEALTHY_THRESHOLD, healthyThreshold != null ? healthyThreshold : DEFAULT_HEALTHY_THRESHOLD, description); }
/** * @param requestPath Defaults to {@value #DEFAULT_REQUEST_PATH} when null. * @param port Defaults to {@value #DEFAULT_PORT} when null. * @param checkIntervalSec Defaults to {@value #DEFAULT_CHECK_INTERVAL_SEC} when null. * @param timeoutSec Defaults to {@value #DEFAULT_TIMEOUT_SEC} when null. * @param unhealthyThreshold Defaults to {@value #DEFAULT_UNHEALTHY_THRESHOLD} when null. * @param healthyThreshold Defaults to {@value #DEFAULT_HEALTHY_THRESHOLD} when null. */ static HttpHealthCheckCreationOptions createWithDefaults(String host, String requestPath, Integer port, Integer checkIntervalSec, Integer timeoutSec, Integer unhealthyThreshold, Integer healthyThreshold, String description) { return create(host, requestPath != null ? requestPath : DEFAULT_REQUEST_PATH, port != null ? port : DEFAULT_PORT, checkIntervalSec != null ? checkIntervalSec : DEFAULT_CHECK_INTERVAL_SEC, timeoutSec != null ? timeoutSec : DEFAULT_TIMEOUT_SEC, unhealthyThreshold != null ? unhealthyThreshold : DEFAULT_UNHEALTHY_THRESHOLD, healthyThreshold != null ? healthyThreshold : DEFAULT_HEALTHY_THRESHOLD, description); }
/** * @param requestPath Defaults to {@value #DEFAULT_REQUEST_PATH} when null. * @param port Defaults to {@value #DEFAULT_PORT} when null. * @param checkIntervalSec Defaults to {@value #DEFAULT_CHECK_INTERVAL_SEC} when null. * @param timeoutSec Defaults to {@value #DEFAULT_TIMEOUT_SEC} when null. * @param unhealthyThreshold Defaults to {@value #DEFAULT_UNHEALTHY_THRESHOLD} when null. * @param healthyThreshold Defaults to {@value #DEFAULT_HEALTHY_THRESHOLD} when null. */ static HttpHealthCheckCreationOptions createWithDefaults(String host, String requestPath, Integer port, Integer checkIntervalSec, Integer timeoutSec, Integer unhealthyThreshold, Integer healthyThreshold, String description) { return create(host, requestPath != null ? requestPath : DEFAULT_REQUEST_PATH, port != null ? port : DEFAULT_PORT, checkIntervalSec != null ? checkIntervalSec : DEFAULT_CHECK_INTERVAL_SEC, timeoutSec != null ? timeoutSec : DEFAULT_TIMEOUT_SEC, unhealthyThreshold != null ? unhealthyThreshold : DEFAULT_UNHEALTHY_THRESHOLD, healthyThreshold != null ? healthyThreshold : DEFAULT_HEALTHY_THRESHOLD, description); }