public TargetGroupConfig withHealthCheck(HealthCheckConfig healthCheck) {
        setHealthCheck(healthCheck);
        return this;
    }
<p>
The health check configuration. Not supported if the target group type is <code>LAMBDA</code> or <code>ALB</code>
.
</p>

@param healthCheck
       The health check configuration. Not supported if the target group type is <code>LAMBDA</code> or
       <code>ALB</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-vpclattice/src/main/java/com/amazonaws/services/vpclattice/model/TargetGroupConfig.java