@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class HealthCheckPolicy extends Object implements Serializable, Cloneable, StructuredPojo
An object that represents the health check policy for a virtual node's listener.
Constructor and Description |
---|
HealthCheckPolicy() |
Modifier and Type | Method and Description |
---|---|
HealthCheckPolicy |
clone() |
boolean |
equals(Object obj) |
Integer |
getHealthyThreshold()
The number of consecutive successful health checks that must occur before declaring listener healthy.
|
Long |
getIntervalMillis()
The time period in milliseconds between each health check execution.
|
String |
getPath()
The destination path for the health check request.
|
Integer |
getPort()
The destination port for the health check request.
|
String |
getProtocol()
The protocol for the health check request.
|
Long |
getTimeoutMillis()
The amount of time to wait when receiving a response from the health check, in milliseconds.
|
Integer |
getUnhealthyThreshold()
The number of consecutive failed health checks that must occur before declaring a virtual node unhealthy.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setHealthyThreshold(Integer healthyThreshold)
The number of consecutive successful health checks that must occur before declaring listener healthy.
|
void |
setIntervalMillis(Long intervalMillis)
The time period in milliseconds between each health check execution.
|
void |
setPath(String path)
The destination path for the health check request.
|
void |
setPort(Integer port)
The destination port for the health check request.
|
void |
setProtocol(String protocol)
The protocol for the health check request.
|
void |
setTimeoutMillis(Long timeoutMillis)
The amount of time to wait when receiving a response from the health check, in milliseconds.
|
void |
setUnhealthyThreshold(Integer unhealthyThreshold)
The number of consecutive failed health checks that must occur before declaring a virtual node unhealthy.
|
String |
toString()
Returns a string representation of this object.
|
HealthCheckPolicy |
withHealthyThreshold(Integer healthyThreshold)
The number of consecutive successful health checks that must occur before declaring listener healthy.
|
HealthCheckPolicy |
withIntervalMillis(Long intervalMillis)
The time period in milliseconds between each health check execution.
|
HealthCheckPolicy |
withPath(String path)
The destination path for the health check request.
|
HealthCheckPolicy |
withPort(Integer port)
The destination port for the health check request.
|
HealthCheckPolicy |
withProtocol(PortProtocol protocol)
The protocol for the health check request.
|
HealthCheckPolicy |
withProtocol(String protocol)
The protocol for the health check request.
|
HealthCheckPolicy |
withTimeoutMillis(Long timeoutMillis)
The amount of time to wait when receiving a response from the health check, in milliseconds.
|
HealthCheckPolicy |
withUnhealthyThreshold(Integer unhealthyThreshold)
The number of consecutive failed health checks that must occur before declaring a virtual node unhealthy.
|
public void setHealthyThreshold(Integer healthyThreshold)
The number of consecutive successful health checks that must occur before declaring listener healthy.
healthyThreshold
- The number of consecutive successful health checks that must occur before declaring listener healthy.public Integer getHealthyThreshold()
The number of consecutive successful health checks that must occur before declaring listener healthy.
public HealthCheckPolicy withHealthyThreshold(Integer healthyThreshold)
The number of consecutive successful health checks that must occur before declaring listener healthy.
healthyThreshold
- The number of consecutive successful health checks that must occur before declaring listener healthy.public void setIntervalMillis(Long intervalMillis)
The time period in milliseconds between each health check execution.
intervalMillis
- The time period in milliseconds between each health check execution.public Long getIntervalMillis()
The time period in milliseconds between each health check execution.
public HealthCheckPolicy withIntervalMillis(Long intervalMillis)
The time period in milliseconds between each health check execution.
intervalMillis
- The time period in milliseconds between each health check execution.public void setPath(String path)
The destination path for the health check request. This is required only if the specified protocol is HTTP. If the protocol is TCP, this parameter is ignored.
path
- The destination path for the health check request. This is required only if the specified protocol is
HTTP. If the protocol is TCP, this parameter is ignored.public String getPath()
The destination path for the health check request. This is required only if the specified protocol is HTTP. If the protocol is TCP, this parameter is ignored.
public HealthCheckPolicy withPath(String path)
The destination path for the health check request. This is required only if the specified protocol is HTTP. If the protocol is TCP, this parameter is ignored.
path
- The destination path for the health check request. This is required only if the specified protocol is
HTTP. If the protocol is TCP, this parameter is ignored.public void setPort(Integer port)
The destination port for the health check request. This port must match the port defined in the PortMapping for the listener.
port
- The destination port for the health check request. This port must match the port defined in the
PortMapping for the listener.public Integer getPort()
The destination port for the health check request. This port must match the port defined in the PortMapping for the listener.
public HealthCheckPolicy withPort(Integer port)
The destination port for the health check request. This port must match the port defined in the PortMapping for the listener.
port
- The destination port for the health check request. This port must match the port defined in the
PortMapping for the listener.public void setProtocol(String protocol)
The protocol for the health check request.
protocol
- The protocol for the health check request.PortProtocol
public String getProtocol()
The protocol for the health check request.
PortProtocol
public HealthCheckPolicy withProtocol(String protocol)
The protocol for the health check request.
protocol
- The protocol for the health check request.PortProtocol
public HealthCheckPolicy withProtocol(PortProtocol protocol)
The protocol for the health check request.
protocol
- The protocol for the health check request.PortProtocol
public void setTimeoutMillis(Long timeoutMillis)
The amount of time to wait when receiving a response from the health check, in milliseconds.
timeoutMillis
- The amount of time to wait when receiving a response from the health check, in milliseconds.public Long getTimeoutMillis()
The amount of time to wait when receiving a response from the health check, in milliseconds.
public HealthCheckPolicy withTimeoutMillis(Long timeoutMillis)
The amount of time to wait when receiving a response from the health check, in milliseconds.
timeoutMillis
- The amount of time to wait when receiving a response from the health check, in milliseconds.public void setUnhealthyThreshold(Integer unhealthyThreshold)
The number of consecutive failed health checks that must occur before declaring a virtual node unhealthy.
unhealthyThreshold
- The number of consecutive failed health checks that must occur before declaring a virtual node unhealthy.public Integer getUnhealthyThreshold()
The number of consecutive failed health checks that must occur before declaring a virtual node unhealthy.
public HealthCheckPolicy withUnhealthyThreshold(Integer unhealthyThreshold)
The number of consecutive failed health checks that must occur before declaring a virtual node unhealthy.
unhealthyThreshold
- The number of consecutive failed health checks that must occur before declaring a virtual node unhealthy.public String toString()
toString
in class Object
Object.toString()
public HealthCheckPolicy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.