public SecurityGroupRule withIpProtocol(String ipProtocol) {
        setIpProtocol(ipProtocol);
        return this;
    }
<p>
The IP protocol name (<code>tcp</code>, <code>udp</code>, <code>icmp</code>, <code>icmpv6</code>) or number (see
<a href="http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml">Protocol Numbers</a>).
</p>
<p>
Use <code>-1</code> to specify all protocols.
</p>

@param ipProtocol
       The IP protocol name (<code>tcp</code>, <code>udp</code>, <code>icmp</code>, <code>icmpv6</code>) or
       number (see <a href="http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml">Protocol
       Numbers</a>). </p>
       <p>
       Use <code>-1</code> to specify all protocols.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/SecurityGroupRule.java