private void validateForwardingRule(ForwardingRules rule) { if (null == rule || null == rule.getEntryProtocol() || null == rule.getEntryPort() || null == rule.getTargetProtocol() || null == rule.getTargetPort()) { throw new IllegalArgumentException( "Missing required parameters [Entry Protocol, Entry Port, Target Protocol, Target Port] for forwarding rules."); } }
private void validateForwardingRule(ForwardingRules rule) { if (null == rule || null == rule.getEntryProtocol() || null == rule.getEntryPort() || null == rule.getTargetProtocol() || null == rule.getTargetPort()) { throw new IllegalArgumentException( "Missing required parameters [Entry Protocol, Entry Port, Target Protocol, Target Port] for forwarding rules."); } }