/** * <p> * The IP protocol name (<code>tcp</code>, <code>udp</code>, <code>icmp</code>) or number (see <a * href="http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml">Protocol Numbers</a>). (VPC only) * Use <code>-1</code> to specify all protocols. If you specify <code>-1</code>, or a protocol number other than * <code>tcp</code>, <code>udp</code>, <code>icmp</code>, or <code>58</code> (ICMPv6), traffic on all ports is * allowed, regardless of any ports you specify. For <code>tcp</code>, <code>udp</code>, and <code>icmp</code>, you * must specify a port range. For protocol <code>58</code> (ICMPv6), you can optionally specify a port range; if you * don't, traffic for all types and codes is allowed. * </p> * * @param ipProtocol * The IP protocol name (<code>tcp</code>, <code>udp</code>, <code>icmp</code>) or number (see <a * href="http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml">Protocol Numbers</a>). (VPC * only) Use <code>-1</code> to specify all protocols. If you specify <code>-1</code>, or a protocol number * other than <code>tcp</code>, <code>udp</code>, <code>icmp</code>, or <code>58</code> (ICMPv6), traffic on * all ports is allowed, regardless of any ports you specify. For <code>tcp</code>, <code>udp</code>, and * <code>icmp</code>, you must specify a port range. For protocol <code>58</code> (ICMPv6), you can * optionally specify a port range; if you don't, traffic for all types and codes is allowed. * @return Returns a reference to this object so that method calls can be chained together. */ public AuthorizeSecurityGroupIngressRequest withIpProtocol(String ipProtocol) { setIpProtocol(ipProtocol); return this; }
/** * <p> * The IP protocol name (<code>tcp</code>, <code>udp</code>, <code>icmp</code>) or number (see <a * href="http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml">Protocol Numbers</a>). (VPC only) * Use <code>-1</code> to specify all protocols. If you specify <code>-1</code>, or a protocol number other than * <code>tcp</code>, <code>udp</code>, <code>icmp</code>, or <code>58</code> (ICMPv6), traffic on all ports is * allowed, regardless of any ports you specify. For <code>tcp</code>, <code>udp</code>, and <code>icmp</code>, you * must specify a port range. For protocol <code>58</code> (ICMPv6), you can optionally specify a port range; if you * don't, traffic for all types and codes is allowed. * </p> * * @param ipProtocol * The IP protocol name (<code>tcp</code>, <code>udp</code>, <code>icmp</code>) or number (see <a * href="http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml">Protocol Numbers</a>). (VPC * only) Use <code>-1</code> to specify all protocols. If you specify <code>-1</code>, or a protocol number * other than <code>tcp</code>, <code>udp</code>, <code>icmp</code>, or <code>58</code> (ICMPv6), traffic on * all ports is allowed, regardless of any ports you specify. For <code>tcp</code>, <code>udp</code>, and * <code>icmp</code>, you must specify a port range. For protocol <code>58</code> (ICMPv6), you can * optionally specify a port range; if you don't, traffic for all types and codes is allowed. * @return Returns a reference to this object so that method calls can be chained together. */ public AuthorizeSecurityGroupIngressRequest withIpProtocol(String ipProtocol) { setIpProtocol(ipProtocol); return this; }