@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails extends Object implements Serializable, Cloneable, StructuredPojo
The container health check command and associated configuration parameters for the container.
Constructor and Description |
---|
AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails() |
Modifier and Type | Method and Description |
---|---|
AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails |
clone() |
boolean |
equals(Object obj) |
List<String> |
getCommand()
The command that the container runs to determine whether it is healthy.
|
Integer |
getInterval()
The time period in seconds between each health check execution.
|
Integer |
getRetries()
The number of times to retry a failed health check before the container is considered unhealthy.
|
Integer |
getStartPeriod()
The optional grace period in seconds that allows containers time to bootstrap before failed health checks count
towards the maximum number of retries.
|
Integer |
getTimeout()
The time period in seconds to wait for a health check to succeed before it is considered a failure.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCommand(Collection<String> command)
The command that the container runs to determine whether it is healthy.
|
void |
setInterval(Integer interval)
The time period in seconds between each health check execution.
|
void |
setRetries(Integer retries)
The number of times to retry a failed health check before the container is considered unhealthy.
|
void |
setStartPeriod(Integer startPeriod)
The optional grace period in seconds that allows containers time to bootstrap before failed health checks count
towards the maximum number of retries.
|
void |
setTimeout(Integer timeout)
The time period in seconds to wait for a health check to succeed before it is considered a failure.
|
String |
toString()
Returns a string representation of this object.
|
AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails |
withCommand(Collection<String> command)
The command that the container runs to determine whether it is healthy.
|
AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails |
withCommand(String... command)
The command that the container runs to determine whether it is healthy.
|
AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails |
withInterval(Integer interval)
The time period in seconds between each health check execution.
|
AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails |
withRetries(Integer retries)
The number of times to retry a failed health check before the container is considered unhealthy.
|
AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails |
withStartPeriod(Integer startPeriod)
The optional grace period in seconds that allows containers time to bootstrap before failed health checks count
towards the maximum number of retries.
|
AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails |
withTimeout(Integer timeout)
The time period in seconds to wait for a health check to succeed before it is considered a failure.
|
public AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails()
public List<String> getCommand()
The command that the container runs to determine whether it is healthy.
public void setCommand(Collection<String> command)
The command that the container runs to determine whether it is healthy.
command
- The command that the container runs to determine whether it is healthy.public AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails withCommand(String... command)
The command that the container runs to determine whether it is healthy.
NOTE: This method appends the values to the existing list (if any). Use
setCommand(java.util.Collection)
or withCommand(java.util.Collection)
if you want to override
the existing values.
command
- The command that the container runs to determine whether it is healthy.public AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails withCommand(Collection<String> command)
The command that the container runs to determine whether it is healthy.
command
- The command that the container runs to determine whether it is healthy.public void setInterval(Integer interval)
The time period in seconds between each health check execution. The default value is 30 seconds.
interval
- The time period in seconds between each health check execution. The default value is 30 seconds.public Integer getInterval()
The time period in seconds between each health check execution. The default value is 30 seconds.
public AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails withInterval(Integer interval)
The time period in seconds between each health check execution. The default value is 30 seconds.
interval
- The time period in seconds between each health check execution. The default value is 30 seconds.public void setRetries(Integer retries)
The number of times to retry a failed health check before the container is considered unhealthy. The default value is 3.
retries
- The number of times to retry a failed health check before the container is considered unhealthy. The
default value is 3.public Integer getRetries()
The number of times to retry a failed health check before the container is considered unhealthy. The default value is 3.
public AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails withRetries(Integer retries)
The number of times to retry a failed health check before the container is considered unhealthy. The default value is 3.
retries
- The number of times to retry a failed health check before the container is considered unhealthy. The
default value is 3.public void setStartPeriod(Integer startPeriod)
The optional grace period in seconds that allows containers time to bootstrap before failed health checks count towards the maximum number of retries.
startPeriod
- The optional grace period in seconds that allows containers time to bootstrap before failed health checks
count towards the maximum number of retries.public Integer getStartPeriod()
The optional grace period in seconds that allows containers time to bootstrap before failed health checks count towards the maximum number of retries.
public AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails withStartPeriod(Integer startPeriod)
The optional grace period in seconds that allows containers time to bootstrap before failed health checks count towards the maximum number of retries.
startPeriod
- The optional grace period in seconds that allows containers time to bootstrap before failed health checks
count towards the maximum number of retries.public void setTimeout(Integer timeout)
The time period in seconds to wait for a health check to succeed before it is considered a failure. The default value is 5.
timeout
- The time period in seconds to wait for a health check to succeed before it is considered a failure. The
default value is 5.public Integer getTimeout()
The time period in seconds to wait for a health check to succeed before it is considered a failure. The default value is 5.
public AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails withTimeout(Integer timeout)
The time period in seconds to wait for a health check to succeed before it is considered a failure. The default value is 5.
timeout
- The time period in seconds to wait for a health check to succeed before it is considered a failure. The
default value is 5.public String toString()
toString
in class Object
Object.toString()
public AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.