public ContainerDefinition withHealthCheck(ContainerHealthCheck healthCheck) {
        setHealthCheck(healthCheck);
        return this;
    }
<p>
A configuration for a non-terminal health check. A container, which automatically restarts if it stops
functioning, also restarts if it fails this health check. If an essential container in the daemon group fails a
health check, the entire container group is restarted. The essential container in the replica group doesn't use
this health check mechanism, because the Amazon GameLift Agent automatically handles the task.
</p>

@param healthCheck
       A configuration for a non-terminal health check. A container, which automatically restarts if it stops
       functioning, also restarts if it fails this health check. If an essential container in the daemon group
       fails a health check, the entire container group is restarted. The essential container in the replica
       group doesn't use this health check mechanism, because the Amazon GameLift Agent automatically handles the
       task.
@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/ContainerDefinition.java