/** * <p> * The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code. A value of <code>-1</code> indicates * all ICMP/ICMPv6 codes for the specified ICMP type. If you specify all ICMP/ICMPv6 types, you must specify all * codes. * </p> * * @param toPort * The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code. A value of <code>-1</code> * indicates all ICMP/ICMPv6 codes for the specified ICMP type. If you specify all ICMP/ICMPv6 types, you * must specify all codes. * @return Returns a reference to this object so that method calls can be chained together. */ public IpPermission withToPort(Integer toPort) { setToPort(toPort); return this; }
protected static IpPermission toIpPermission( IpRule rule ) { IpPermission permission = new IpPermission(); permission.setIpProtocol( rule.getIpProtocol() ); permission.setToPort( rule.getToPort() ); permission.setFromPort( rule.getFromPort() ); permission.setIpRanges( rule.getIpRanges() ); return permission; }
ipPermission.setToPort(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue;
/** * <p> * The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code. A value of <code>-1</code> indicates * all ICMP/ICMPv6 codes for the specified ICMP type. If you specify all ICMP/ICMPv6 types, you must specify all * codes. * </p> * * @param toPort * The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code. A value of <code>-1</code> * indicates all ICMP/ICMPv6 codes for the specified ICMP type. If you specify all ICMP/ICMPv6 types, you * must specify all codes. * @return Returns a reference to this object so that method calls can be chained together. */ public IpPermission withToPort(Integer toPort) { setToPort(toPort); return this; }
ipPermission.setToPort(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue;
ip.setIpProtocol("tcp"); ip.setFromPort(22); ip.setToPort(22); AuthorizeSecurityGroupIngressRequest r = new AuthorizeSecurityGroupIngressRequest(); r = r.withIpPermissions(ip.withIpRanges("0.0.0.0/0"));
ipPermission.setToPort(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue;