public T fromIngressRule(IngressRule in) { return this .account(in.getAccount()) .CIDR(in.getCIDR()) .endPort(in.getEndPort()) .ICMPCode(in.getICMPCode()) .ICMPType(in.getICMPType()) .protocol(in.getProtocol()) .id(in.getId()) .securityGroupName(in.getSecurityGroupName()) .startPort(in.getStartPort()); } }
assert ICMPPingRule.getEndPort() == -1 : ICMPPingRule; assert ICMPPingRule.getICMPCode() == 0 : ICMPPingRule; assert ICMPPingRule.getICMPType() == 8 : ICMPPingRule; assert ICMPPingRule.getAccount() == null : ICMPPingRule; assert ICMPPingRule.getSecurityGroupName() == null : ICMPPingRule; assert SSHRule.getEndPort() == 22 : SSHRule; assert SSHRule.getICMPCode() == -1 : SSHRule; assert SSHRule.getICMPType() == -1 : SSHRule; assert SSHRule.getAccount() == null : SSHRule; assert SSHRule.getSecurityGroupName() == null : SSHRule;
public T fromIngressRule(IngressRule in) { return this .account(in.getAccount()) .CIDR(in.getCIDR()) .endPort(in.getEndPort()) .ICMPCode(in.getICMPCode()) .ICMPType(in.getICMPType()) .protocol(in.getProtocol()) .id(in.getId()) .securityGroupName(in.getSecurityGroupName()) .startPort(in.getStartPort()); } }
assert ICMPPingRule.getEndPort() == -1 : ICMPPingRule; assert ICMPPingRule.getICMPCode() == 0 : ICMPPingRule; assert ICMPPingRule.getICMPType() == 8 : ICMPPingRule; assert ICMPPingRule.getAccount() == null : ICMPPingRule; assert ICMPPingRule.getSecurityGroupName() == null : ICMPPingRule; assert SSHRule.getEndPort() == 22 : SSHRule; assert SSHRule.getICMPCode() == -1 : SSHRule; assert SSHRule.getICMPType() == -1 : SSHRule; assert SSHRule.getAccount() == null : SSHRule; assert SSHRule.getSecurityGroupName() == null : SSHRule;
public T fromIngressRule(IngressRule in) { return this .account(in.getAccount()) .CIDR(in.getCIDR()) .endPort(in.getEndPort()) .ICMPCode(in.getICMPCode()) .ICMPType(in.getICMPType()) .protocol(in.getProtocol()) .id(in.getId()) .securityGroupName(in.getSecurityGroupName()) .startPort(in.getStartPort()) .tags(in.getTags()); } }