/** * <p> * The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type number. A value of <code>-1</code> * indicates all ICMP/ICMPv6 types. If you specify all ICMP/ICMPv6 types, you must specify all codes. * </p> * * @param fromPort * The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type number. A value of * <code>-1</code> indicates all ICMP/ICMPv6 types. 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 withFromPort(Integer fromPort) { setFromPort(fromPort); 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.setFromPort(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue;
/** * <p> * The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type number. A value of <code>-1</code> * indicates all ICMP/ICMPv6 types. If you specify all ICMP/ICMPv6 types, you must specify all codes. * </p> * * @param fromPort * The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type number. A value of * <code>-1</code> indicates all ICMP/ICMPv6 types. 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 withFromPort(Integer fromPort) { setFromPort(fromPort); return this; }
ipPermission.setFromPort(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue;
IpPermission ip = new IpPermission(); ip.setIpProtocol("tcp"); ip.setFromPort(22); ip.setToPort(22); AuthorizeSecurityGroupIngressRequest r = new AuthorizeSecurityGroupIngressRequest();
ipPermission.setFromPort(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue;