public TargetGroupSummary withProtocol(String protocol) {
        setProtocol(protocol);
        return this;
    }
<p>
The protocol of the target group.
</p>

@param protocol
       The protocol of the target group.
@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/TargetGroupSummary.java