public static final class DefaultHealthCheckSpec.Builder
extends java.lang.Object
DefaultHealthCheckSpec builder static inner class.| Modifier and Type | Method and Description |
|---|---|
DefaultHealthCheckSpec |
build()
Returns a
DefaultHealthCheckSpec built from the parameters previously set. |
DefaultHealthCheckSpec.Builder |
command(java.lang.String command)
Sets the
command and returns a reference to this Builder so that the methods can be chained together. |
DefaultHealthCheckSpec.Builder |
delay(java.lang.Integer delay)
Sets the
delay and returns a reference to this Builder so that the methods can be chained together. |
DefaultHealthCheckSpec.Builder |
gracePeriod(java.lang.Integer gracePeriod)
Sets the
gracePeriod and returns a reference to this Builder so that the methods can be chained
together. |
DefaultHealthCheckSpec.Builder |
interval(java.lang.Integer interval)
Sets the
interval and returns a reference to this Builder so that the methods can be chained
together. |
DefaultHealthCheckSpec.Builder |
maxConsecutiveFailures(java.lang.Integer maxConsecutiveFailures)
Sets the
maxConsecutiveFailures and returns a reference to this Builder so that the methods can be
chained together. |
DefaultHealthCheckSpec.Builder |
timeout(java.lang.Integer timeout)
Sets the
timeout and returns a reference to this Builder so that the methods can be chained together. |
public DefaultHealthCheckSpec.Builder command(java.lang.String command)
command and returns a reference to this Builder so that the methods can be chained together.command - the command to setpublic DefaultHealthCheckSpec.Builder maxConsecutiveFailures(java.lang.Integer maxConsecutiveFailures)
maxConsecutiveFailures and returns a reference to this Builder so that the methods can be
chained together.maxConsecutiveFailures - the maxConsecutiveFailures to setpublic DefaultHealthCheckSpec.Builder delay(java.lang.Integer delay)
delay and returns a reference to this Builder so that the methods can be chained together.delay - the delay to setpublic DefaultHealthCheckSpec.Builder interval(java.lang.Integer interval)
interval and returns a reference to this Builder so that the methods can be chained
together.interval - the interval to setpublic DefaultHealthCheckSpec.Builder timeout(java.lang.Integer timeout)
timeout and returns a reference to this Builder so that the methods can be chained together.timeout - the timeout to setpublic DefaultHealthCheckSpec.Builder gracePeriod(java.lang.Integer gracePeriod)
gracePeriod and returns a reference to this Builder so that the methods can be chained
together.gracePeriod - the gracePeriod to setpublic DefaultHealthCheckSpec build()
DefaultHealthCheckSpec built from the parameters previously set.DefaultHealthCheckSpec built with parameters of this DefaultHealthCheckSpec.Builder