@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsElbLoadBalancerHealthCheck extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about the health checks that are conducted on the load balancer.
Constructor and Description |
---|
AwsElbLoadBalancerHealthCheck() |
Modifier and Type | Method and Description |
---|---|
AwsElbLoadBalancerHealthCheck |
clone() |
boolean |
equals(Object obj) |
Integer |
getHealthyThreshold()
The number of consecutive health check successes required before the instance is moved to the Healthy state.
|
Integer |
getInterval()
The approximate interval, in seconds, between health checks of an individual instance.
|
String |
getTarget()
The instance that is being checked.
|
Integer |
getTimeout()
The amount of time, in seconds, during which no response means a failed health check.
|
Integer |
getUnhealthyThreshold()
The number of consecutive health check failures that must occur before the instance is moved to the Unhealthy
state.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setHealthyThreshold(Integer healthyThreshold)
The number of consecutive health check successes required before the instance is moved to the Healthy state.
|
void |
setInterval(Integer interval)
The approximate interval, in seconds, between health checks of an individual instance.
|
void |
setTarget(String target)
The instance that is being checked.
|
void |
setTimeout(Integer timeout)
The amount of time, in seconds, during which no response means a failed health check.
|
void |
setUnhealthyThreshold(Integer unhealthyThreshold)
The number of consecutive health check failures that must occur before the instance is moved to the Unhealthy
state.
|
String |
toString()
Returns a string representation of this object.
|
AwsElbLoadBalancerHealthCheck |
withHealthyThreshold(Integer healthyThreshold)
The number of consecutive health check successes required before the instance is moved to the Healthy state.
|
AwsElbLoadBalancerHealthCheck |
withInterval(Integer interval)
The approximate interval, in seconds, between health checks of an individual instance.
|
AwsElbLoadBalancerHealthCheck |
withTarget(String target)
The instance that is being checked.
|
AwsElbLoadBalancerHealthCheck |
withTimeout(Integer timeout)
The amount of time, in seconds, during which no response means a failed health check.
|
AwsElbLoadBalancerHealthCheck |
withUnhealthyThreshold(Integer unhealthyThreshold)
The number of consecutive health check failures that must occur before the instance is moved to the Unhealthy
state.
|
public void setHealthyThreshold(Integer healthyThreshold)
The number of consecutive health check successes required before the instance is moved to the Healthy state.
healthyThreshold
- The number of consecutive health check successes required before the instance is moved to the Healthy
state.public Integer getHealthyThreshold()
The number of consecutive health check successes required before the instance is moved to the Healthy state.
public AwsElbLoadBalancerHealthCheck withHealthyThreshold(Integer healthyThreshold)
The number of consecutive health check successes required before the instance is moved to the Healthy state.
healthyThreshold
- The number of consecutive health check successes required before the instance is moved to the Healthy
state.public void setInterval(Integer interval)
The approximate interval, in seconds, between health checks of an individual instance.
interval
- The approximate interval, in seconds, between health checks of an individual instance.public Integer getInterval()
The approximate interval, in seconds, between health checks of an individual instance.
public AwsElbLoadBalancerHealthCheck withInterval(Integer interval)
The approximate interval, in seconds, between health checks of an individual instance.
interval
- The approximate interval, in seconds, between health checks of an individual instance.public void setTarget(String target)
The instance that is being checked. The target specifies the protocol and port. The available protocols are TCP, SSL, HTTP, and HTTPS. The range of valid ports is 1 through 65535.
For the HTTP and HTTPS protocols, the target also specifies the ping path.
For the TCP protocol, the target is specified as TCP: <port>
.
For the SSL protocol, the target is specified as SSL.<port>
.
For the HTTP and HTTPS protocols, the target is specified as
<protocol>:<port>/<path to ping>
.
target
- The instance that is being checked. The target specifies the protocol and port. The available protocols
are TCP, SSL, HTTP, and HTTPS. The range of valid ports is 1 through 65535.
For the HTTP and HTTPS protocols, the target also specifies the ping path.
For the TCP protocol, the target is specified as TCP: <port>
.
For the SSL protocol, the target is specified as SSL.<port>
.
For the HTTP and HTTPS protocols, the target is specified as
<protocol>:<port>/<path to ping>
.
public String getTarget()
The instance that is being checked. The target specifies the protocol and port. The available protocols are TCP, SSL, HTTP, and HTTPS. The range of valid ports is 1 through 65535.
For the HTTP and HTTPS protocols, the target also specifies the ping path.
For the TCP protocol, the target is specified as TCP: <port>
.
For the SSL protocol, the target is specified as SSL.<port>
.
For the HTTP and HTTPS protocols, the target is specified as
<protocol>:<port>/<path to ping>
.
For the HTTP and HTTPS protocols, the target also specifies the ping path.
For the TCP protocol, the target is specified as TCP: <port>
.
For the SSL protocol, the target is specified as SSL.<port>
.
For the HTTP and HTTPS protocols, the target is specified as
<protocol>:<port>/<path to ping>
.
public AwsElbLoadBalancerHealthCheck withTarget(String target)
The instance that is being checked. The target specifies the protocol and port. The available protocols are TCP, SSL, HTTP, and HTTPS. The range of valid ports is 1 through 65535.
For the HTTP and HTTPS protocols, the target also specifies the ping path.
For the TCP protocol, the target is specified as TCP: <port>
.
For the SSL protocol, the target is specified as SSL.<port>
.
For the HTTP and HTTPS protocols, the target is specified as
<protocol>:<port>/<path to ping>
.
target
- The instance that is being checked. The target specifies the protocol and port. The available protocols
are TCP, SSL, HTTP, and HTTPS. The range of valid ports is 1 through 65535.
For the HTTP and HTTPS protocols, the target also specifies the ping path.
For the TCP protocol, the target is specified as TCP: <port>
.
For the SSL protocol, the target is specified as SSL.<port>
.
For the HTTP and HTTPS protocols, the target is specified as
<protocol>:<port>/<path to ping>
.
public void setTimeout(Integer timeout)
The amount of time, in seconds, during which no response means a failed health check.
timeout
- The amount of time, in seconds, during which no response means a failed health check.public Integer getTimeout()
The amount of time, in seconds, during which no response means a failed health check.
public AwsElbLoadBalancerHealthCheck withTimeout(Integer timeout)
The amount of time, in seconds, during which no response means a failed health check.
timeout
- The amount of time, in seconds, during which no response means a failed health check.public void setUnhealthyThreshold(Integer unhealthyThreshold)
The number of consecutive health check failures that must occur before the instance is moved to the Unhealthy state.
unhealthyThreshold
- The number of consecutive health check failures that must occur before the instance is moved to the
Unhealthy state.public Integer getUnhealthyThreshold()
The number of consecutive health check failures that must occur before the instance is moved to the Unhealthy state.
public AwsElbLoadBalancerHealthCheck withUnhealthyThreshold(Integer unhealthyThreshold)
The number of consecutive health check failures that must occur before the instance is moved to the Unhealthy state.
unhealthyThreshold
- The number of consecutive health check failures that must occur before the instance is moved to the
Unhealthy state.public String toString()
toString
in class Object
Object.toString()
public AwsElbLoadBalancerHealthCheck clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.