public CreateProbeResult withProtocol(Protocol protocol) {
        this.protocol = protocol.toString();
        return this;
    }
<p>
The protocol used for the network traffic between the <code>source</code> and <code>destination</code>. This must
be either <code>TCP</code> or <code>ICMP</code>.
</p>

@param protocol
       The protocol used for the network traffic between the <code>source</code> and <code>destination</code>.
       This must be either <code>TCP</code> or <code>ICMP</code>.
@return Returns a reference to this object so that method calls can be chained together.
@see Protocol
aws-java-sdk-networkmonitor/src/main/java/com/amazonaws/services/networkmonitor/model/CreateProbeResult.java