@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class HealthCheckConfig extends Object implements Serializable, Cloneable, StructuredPojo
Describes the health check configuration of a target group. Health check configurations aren't used for target groups
of type LAMBDA
or ALB
.
Constructor and Description |
---|
HealthCheckConfig() |
Modifier and Type | Method and Description |
---|---|
HealthCheckConfig |
clone() |
boolean |
equals(Object obj) |
Boolean |
getEnabled()
Indicates whether health checking is enabled.
|
Integer |
getHealthCheckIntervalSeconds()
The approximate amount of time, in seconds, between health checks of an individual target.
|
Integer |
getHealthCheckTimeoutSeconds()
The amount of time, in seconds, to wait before reporting a target as unhealthy.
|
Integer |
getHealthyThresholdCount()
The number of consecutive successful health checks required before considering an unhealthy target healthy.
|
Matcher |
getMatcher()
The codes to use when checking for a successful response from a target.
|
String |
getPath()
The destination for health checks on the targets.
|
Integer |
getPort()
The port used when performing health checks on targets.
|
String |
getProtocol()
The protocol used when performing health checks on targets.
|
String |
getProtocolVersion()
The protocol version used when performing health checks on targets.
|
Integer |
getUnhealthyThresholdCount()
The number of consecutive failed health checks required before considering a target unhealthy.
|
int |
hashCode() |
Boolean |
isEnabled()
Indicates whether health checking is enabled.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setEnabled(Boolean enabled)
Indicates whether health checking is enabled.
|
void |
setHealthCheckIntervalSeconds(Integer healthCheckIntervalSeconds)
The approximate amount of time, in seconds, between health checks of an individual target.
|
void |
setHealthCheckTimeoutSeconds(Integer healthCheckTimeoutSeconds)
The amount of time, in seconds, to wait before reporting a target as unhealthy.
|
void |
setHealthyThresholdCount(Integer healthyThresholdCount)
The number of consecutive successful health checks required before considering an unhealthy target healthy.
|
void |
setMatcher(Matcher matcher)
The codes to use when checking for a successful response from a target.
|
void |
setPath(String path)
The destination for health checks on the targets.
|
void |
setPort(Integer port)
The port used when performing health checks on targets.
|
void |
setProtocol(String protocol)
The protocol used when performing health checks on targets.
|
void |
setProtocolVersion(String protocolVersion)
The protocol version used when performing health checks on targets.
|
void |
setUnhealthyThresholdCount(Integer unhealthyThresholdCount)
The number of consecutive failed health checks required before considering a target unhealthy.
|
String |
toString()
Returns a string representation of this object.
|
HealthCheckConfig |
withEnabled(Boolean enabled)
Indicates whether health checking is enabled.
|
HealthCheckConfig |
withHealthCheckIntervalSeconds(Integer healthCheckIntervalSeconds)
The approximate amount of time, in seconds, between health checks of an individual target.
|
HealthCheckConfig |
withHealthCheckTimeoutSeconds(Integer healthCheckTimeoutSeconds)
The amount of time, in seconds, to wait before reporting a target as unhealthy.
|
HealthCheckConfig |
withHealthyThresholdCount(Integer healthyThresholdCount)
The number of consecutive successful health checks required before considering an unhealthy target healthy.
|
HealthCheckConfig |
withMatcher(Matcher matcher)
The codes to use when checking for a successful response from a target.
|
HealthCheckConfig |
withPath(String path)
The destination for health checks on the targets.
|
HealthCheckConfig |
withPort(Integer port)
The port used when performing health checks on targets.
|
HealthCheckConfig |
withProtocol(String protocol)
The protocol used when performing health checks on targets.
|
HealthCheckConfig |
withProtocol(TargetGroupProtocol protocol)
The protocol used when performing health checks on targets.
|
HealthCheckConfig |
withProtocolVersion(HealthCheckProtocolVersion protocolVersion)
The protocol version used when performing health checks on targets.
|
HealthCheckConfig |
withProtocolVersion(String protocolVersion)
The protocol version used when performing health checks on targets.
|
HealthCheckConfig |
withUnhealthyThresholdCount(Integer unhealthyThresholdCount)
The number of consecutive failed health checks required before considering a target unhealthy.
|
public void setEnabled(Boolean enabled)
Indicates whether health checking is enabled.
enabled
- Indicates whether health checking is enabled.public Boolean getEnabled()
Indicates whether health checking is enabled.
public HealthCheckConfig withEnabled(Boolean enabled)
Indicates whether health checking is enabled.
enabled
- Indicates whether health checking is enabled.public Boolean isEnabled()
Indicates whether health checking is enabled.
public void setHealthCheckIntervalSeconds(Integer healthCheckIntervalSeconds)
The approximate amount of time, in seconds, between health checks of an individual target. The range is 5–300 seconds. The default is 30 seconds.
healthCheckIntervalSeconds
- The approximate amount of time, in seconds, between health checks of an individual target. The range is
5–300 seconds. The default is 30 seconds.public Integer getHealthCheckIntervalSeconds()
The approximate amount of time, in seconds, between health checks of an individual target. The range is 5–300 seconds. The default is 30 seconds.
public HealthCheckConfig withHealthCheckIntervalSeconds(Integer healthCheckIntervalSeconds)
The approximate amount of time, in seconds, between health checks of an individual target. The range is 5–300 seconds. The default is 30 seconds.
healthCheckIntervalSeconds
- The approximate amount of time, in seconds, between health checks of an individual target. The range is
5–300 seconds. The default is 30 seconds.public void setHealthCheckTimeoutSeconds(Integer healthCheckTimeoutSeconds)
The amount of time, in seconds, to wait before reporting a target as unhealthy. The range is 1–120 seconds. The default is 5 seconds.
healthCheckTimeoutSeconds
- The amount of time, in seconds, to wait before reporting a target as unhealthy. The range is 1–120
seconds. The default is 5 seconds.public Integer getHealthCheckTimeoutSeconds()
The amount of time, in seconds, to wait before reporting a target as unhealthy. The range is 1–120 seconds. The default is 5 seconds.
public HealthCheckConfig withHealthCheckTimeoutSeconds(Integer healthCheckTimeoutSeconds)
The amount of time, in seconds, to wait before reporting a target as unhealthy. The range is 1–120 seconds. The default is 5 seconds.
healthCheckTimeoutSeconds
- The amount of time, in seconds, to wait before reporting a target as unhealthy. The range is 1–120
seconds. The default is 5 seconds.public void setHealthyThresholdCount(Integer healthyThresholdCount)
The number of consecutive successful health checks required before considering an unhealthy target healthy. The range is 2–10. The default is 5.
healthyThresholdCount
- The number of consecutive successful health checks required before considering an unhealthy target
healthy. The range is 2–10. The default is 5.public Integer getHealthyThresholdCount()
The number of consecutive successful health checks required before considering an unhealthy target healthy. The range is 2–10. The default is 5.
public HealthCheckConfig withHealthyThresholdCount(Integer healthyThresholdCount)
The number of consecutive successful health checks required before considering an unhealthy target healthy. The range is 2–10. The default is 5.
healthyThresholdCount
- The number of consecutive successful health checks required before considering an unhealthy target
healthy. The range is 2–10. The default is 5.public void setMatcher(Matcher matcher)
The codes to use when checking for a successful response from a target.
matcher
- The codes to use when checking for a successful response from a target.public Matcher getMatcher()
The codes to use when checking for a successful response from a target.
public HealthCheckConfig withMatcher(Matcher matcher)
The codes to use when checking for a successful response from a target.
matcher
- The codes to use when checking for a successful response from a target.public void setPath(String path)
The destination for health checks on the targets. If the protocol version is HTTP/1.1
or
HTTP/2
, specify a valid URI (for example, /path?query
). The default path is
/
. Health checks are not supported if the protocol version is gRPC
, however, you can
choose HTTP/1.1
or HTTP/2
and specify a valid URI.
path
- The destination for health checks on the targets. If the protocol version is HTTP/1.1
or
HTTP/2
, specify a valid URI (for example, /path?query
). The default path is
/
. Health checks are not supported if the protocol version is gRPC
, however, you
can choose HTTP/1.1
or HTTP/2
and specify a valid URI.public String getPath()
The destination for health checks on the targets. If the protocol version is HTTP/1.1
or
HTTP/2
, specify a valid URI (for example, /path?query
). The default path is
/
. Health checks are not supported if the protocol version is gRPC
, however, you can
choose HTTP/1.1
or HTTP/2
and specify a valid URI.
HTTP/1.1
or
HTTP/2
, specify a valid URI (for example, /path?query
). The default path is
/
. Health checks are not supported if the protocol version is gRPC
, however,
you can choose HTTP/1.1
or HTTP/2
and specify a valid URI.public HealthCheckConfig withPath(String path)
The destination for health checks on the targets. If the protocol version is HTTP/1.1
or
HTTP/2
, specify a valid URI (for example, /path?query
). The default path is
/
. Health checks are not supported if the protocol version is gRPC
, however, you can
choose HTTP/1.1
or HTTP/2
and specify a valid URI.
path
- The destination for health checks on the targets. If the protocol version is HTTP/1.1
or
HTTP/2
, specify a valid URI (for example, /path?query
). The default path is
/
. Health checks are not supported if the protocol version is gRPC
, however, you
can choose HTTP/1.1
or HTTP/2
and specify a valid URI.public void setPort(Integer port)
The port used when performing health checks on targets. The default setting is the port that a target receives traffic on.
port
- The port used when performing health checks on targets. The default setting is the port that a target
receives traffic on.public Integer getPort()
The port used when performing health checks on targets. The default setting is the port that a target receives traffic on.
public HealthCheckConfig withPort(Integer port)
The port used when performing health checks on targets. The default setting is the port that a target receives traffic on.
port
- The port used when performing health checks on targets. The default setting is the port that a target
receives traffic on.public void setProtocol(String protocol)
The protocol used when performing health checks on targets. The possible protocols are HTTP
and
HTTPS
. The default is HTTP
.
protocol
- The protocol used when performing health checks on targets. The possible protocols are HTTP
and HTTPS
. The default is HTTP
.TargetGroupProtocol
public String getProtocol()
The protocol used when performing health checks on targets. The possible protocols are HTTP
and
HTTPS
. The default is HTTP
.
HTTP
and HTTPS
. The default is HTTP
.TargetGroupProtocol
public HealthCheckConfig withProtocol(String protocol)
The protocol used when performing health checks on targets. The possible protocols are HTTP
and
HTTPS
. The default is HTTP
.
protocol
- The protocol used when performing health checks on targets. The possible protocols are HTTP
and HTTPS
. The default is HTTP
.TargetGroupProtocol
public HealthCheckConfig withProtocol(TargetGroupProtocol protocol)
The protocol used when performing health checks on targets. The possible protocols are HTTP
and
HTTPS
. The default is HTTP
.
protocol
- The protocol used when performing health checks on targets. The possible protocols are HTTP
and HTTPS
. The default is HTTP
.TargetGroupProtocol
public void setProtocolVersion(String protocolVersion)
The protocol version used when performing health checks on targets. The possible protocol versions are
HTTP1
and HTTP2
.
protocolVersion
- The protocol version used when performing health checks on targets. The possible protocol versions are
HTTP1
and HTTP2
.HealthCheckProtocolVersion
public String getProtocolVersion()
The protocol version used when performing health checks on targets. The possible protocol versions are
HTTP1
and HTTP2
.
HTTP1
and HTTP2
.HealthCheckProtocolVersion
public HealthCheckConfig withProtocolVersion(String protocolVersion)
The protocol version used when performing health checks on targets. The possible protocol versions are
HTTP1
and HTTP2
.
protocolVersion
- The protocol version used when performing health checks on targets. The possible protocol versions are
HTTP1
and HTTP2
.HealthCheckProtocolVersion
public HealthCheckConfig withProtocolVersion(HealthCheckProtocolVersion protocolVersion)
The protocol version used when performing health checks on targets. The possible protocol versions are
HTTP1
and HTTP2
.
protocolVersion
- The protocol version used when performing health checks on targets. The possible protocol versions are
HTTP1
and HTTP2
.HealthCheckProtocolVersion
public void setUnhealthyThresholdCount(Integer unhealthyThresholdCount)
The number of consecutive failed health checks required before considering a target unhealthy. The range is 2–10. The default is 2.
unhealthyThresholdCount
- The number of consecutive failed health checks required before considering a target unhealthy. The range
is 2–10. The default is 2.public Integer getUnhealthyThresholdCount()
The number of consecutive failed health checks required before considering a target unhealthy. The range is 2–10. The default is 2.
public HealthCheckConfig withUnhealthyThresholdCount(Integer unhealthyThresholdCount)
The number of consecutive failed health checks required before considering a target unhealthy. The range is 2–10. The default is 2.
unhealthyThresholdCount
- The number of consecutive failed health checks required before considering a target unhealthy. The range
is 2–10. The default is 2.public String toString()
toString
in class Object
Object.toString()
public HealthCheckConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.