public TargetGroupConfig withProtocolVersion(String protocolVersion) {
        setProtocolVersion(protocolVersion);
        return this;
    }
<p>
The protocol version. The default is <code>HTTP1</code>. Not supported if the target group type is
<code>LAMBDA</code>.
</p>

@param protocolVersion
       The protocol version. The default is <code>HTTP1</code>. Not supported if the target group type is
       <code>LAMBDA</code>.
@return Returns a reference to this object so that method calls can be chained together.
@see TargetGroupProtocolVersion
aws-java-sdk-vpclattice/src/main/java/com/amazonaws/services/vpclattice/model/TargetGroupConfig.java