public void testProtocolICMPTypeCode() { IpPermissions authorization = IpPermissions.permitICMP().type(8).andCode(0).originatingFromSecurityGroupId( "groupId"); assertEquals(authorization, IpPermission.builder().ipProtocol(IpProtocol.ICMP).fromPort(8).toPort(0).groupId( "groupId").build()); }
public void testProtocolICMPTypeAnyCode() { IpPermissions authorization = IpPermissions.permitICMP().type(8).originatingFromSecurityGroupId("groupId"); assertEquals(authorization, IpPermission.builder().ipProtocol(IpProtocol.ICMP).fromPort(8).toPort(-1) .groupId("groupId").build()); }
public ToSourceSelection andCode(int code) { return new ToSourceSelection(getIpProtocol(), getFromPort(), code); }
public ToSourceSelection andCode(int code) { return new ToSourceSelection(getIpProtocol(), getFromPort(), code); }
/** * @param type ex. 8 for ECHO (i.e. Ping) * @see <a href="http://www.iana.org/assignments/icmp-parameters/icmp-parameters.xml"> ICMP Types</a> */ public AndCodeSelection type(int type) { return new AndCodeSelection(type); } }
public ToSourceSelection andCode(int code) { return new ToSourceSelection(getIpProtocol(), getFromPort(), code); }
public ToSourceSelection andCode(int code) { return new ToSourceSelection(getIpProtocol(), getFromPort(), code); }
/** * @param type ex. 8 for ECHO (i.e. Ping) * @see <a href="http://www.iana.org/assignments/icmp-parameters/icmp-parameters.xml"> ICMP Types</a> */ public AndCodeSelection type(int type) { return new AndCodeSelection(type); } }
public void testProtocolICMPTypeAnyCode() { IpPermissions authorization = IpPermissions.permitICMP().type(8).originatingFromSecurityGroupId("groupId"); assertEquals(authorization, IpPermission.builder().ipProtocol(IpProtocol.ICMP).fromPort(8).toPort(-1) .groupId("groupId").build()); }
public void testProtocolICMPTypeCode() { IpPermissions authorization = IpPermissions.permitICMP().type(8).andCode(0).originatingFromSecurityGroupId( "groupId"); assertEquals(authorization, IpPermission.builder().ipProtocol(IpProtocol.ICMP).fromPort(8).toPort(0).groupId( "groupId").build()); }
/** * @param type ex. 8 for ECHO (i.e. Ping) * @see <a href="http://www.iana.org/assignments/icmp-parameters/icmp-parameters.xml"> ICMP Types</a> */ public AndCodeSelection type(int type) { return new AndCodeSelection(type); } }
/** * @param type ex. 8 for ECHO (i.e. Ping) * @see <a href="http://www.iana.org/assignments/icmp-parameters/icmp-parameters.xml"> ICMP Types</a> */ public AndCodeSelection type(int type) { return new AndCodeSelection(type); } }