public TargetGroupConfig withProtocol(String protocol) {
        setProtocol(protocol);
        return this;
    }
<p>
The protocol to use for routing traffic to the targets. The default is the protocol of the target group. Not
supported if the target group type is <code>LAMBDA</code>.
</p>

@param protocol
       The protocol to use for routing traffic to the targets. The default is the protocol of the target group.
       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 TargetGroupProtocol
aws-java-sdk-vpclattice/src/main/java/com/amazonaws/services/vpclattice/model/TargetGroupConfig.java