public ModifyTargetGroupRequest withHealthCheckProtocol(ProtocolEnum healthCheckProtocol) {
        this.healthCheckProtocol = healthCheckProtocol.toString();
        return this;
    }
<p>
The protocol the load balancer uses when performing health checks on targets. For Application Load Balancers, the
default is HTTP. For Network Load Balancers and Gateway Load Balancers, the default is TCP. The TCP protocol is
not supported for health checks if the protocol of the target group is HTTP or HTTPS. It is supported for health
checks only if the protocol of the target group is TCP, TLS, UDP, or TCP_UDP. The GENEVE, TLS, UDP, and TCP_UDP
protocols are not supported for health checks.
</p>

@param healthCheckProtocol
       The protocol the load balancer uses when performing health checks on targets. For Application Load
       Balancers, the default is HTTP. For Network Load Balancers and Gateway Load Balancers, the default is TCP.
       The TCP protocol is not supported for health checks if the protocol of the target group is HTTP or HTTPS.
       It is supported for health checks only if the protocol of the target group is TCP, TLS, UDP, or TCP_UDP.
       The GENEVE, TLS, UDP, and TCP_UDP protocols are not supported for health checks.
@return Returns a reference to this object so that method calls can be chained together.
@see ProtocolEnum
aws-java-sdk-elasticloadbalancingv2/src/main/java/com/amazonaws/services/elasticloadbalancingv2/model/ModifyTargetGroupRequest.java