public ContainerDefinitionInput withHealthCheck(ContainerHealthCheck healthCheck) {
        setHealthCheck(healthCheck);
        return this;
    }
<p>
Configuration for a non-terminal health check. A container automatically restarts if it stops functioning. This
parameter lets you define additional reasons to consider a container unhealthy and restart it. You can set a
health check for any container except for the essential container in the replica container group. If an essential
container in the daemon group fails a health check, the entire container group is restarted.
</p>

@param healthCheck
       Configuration for a non-terminal health check. A container automatically restarts if it stops functioning.
       This parameter lets you define additional reasons to consider a container unhealthy and restart it. You
       can set a health check for any container except for the essential container in the replica container
       group. If an essential container in the daemon group fails a health check, the entire container group is
       restarted.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-gamelift/src/main/java/com/amazonaws/services/gamelift/model/ContainerDefinitionInput.java