public String value() { return name().toLowerCase(); }
@Override public String toString() { return value(); }
public static FirewallDirection fromValue(String type) { try { return valueOf(checkNotNull(type, "type").toUpperCase()); } catch (IllegalArgumentException e) { return null; } } }
@Override public int hashCode() { int result = action != null ? action.hashCode() : 0; result = 31 * result + (comment != null ? comment.hashCode() : 0); result = 31 * result + (direction != null ? direction.hashCode() : 0); result = 31 * result + (destinationIp != null ? destinationIp.hashCode() : 0); result = 31 * result + (destinationPort != null ? destinationPort.hashCode() : 0); result = 31 * result + (ipProtocol != null ? ipProtocol.hashCode() : 0); result = 31 * result + (sourceIp != null ? sourceIp.hashCode() : 0); result = 31 * result + (sourcePort != null ? sourcePort.hashCode() : 0); return result; }
@Override public int hashCode() { int result = action != null ? action.hashCode() : 0; result = 31 * result + (comment != null ? comment.hashCode() : 0); result = 31 * result + (direction != null ? direction.hashCode() : 0); result = 31 * result + (destinationIp != null ? destinationIp.hashCode() : 0); result = 31 * result + (destinationPort != null ? destinationPort.hashCode() : 0); result = 31 * result + (ipProtocol != null ? ipProtocol.hashCode() : 0); result = 31 * result + (sourceIp != null ? sourceIp.hashCode() : 0); result = 31 * result + (sourcePort != null ? sourcePort.hashCode() : 0); return result; }
@Override public String toString() { return value(); }
public static FirewallDirection fromValue(String type) { try { return valueOf(checkNotNull(type, "type").toUpperCase()); } catch (IllegalArgumentException e) { return null; } } }
@Override public int hashCode() { int result = action != null ? action.hashCode() : 0; result = 31 * result + (comment != null ? comment.hashCode() : 0); result = 31 * result + (direction != null ? direction.hashCode() : 0); result = 31 * result + (destinationIp != null ? destinationIp.hashCode() : 0); result = 31 * result + (destinationPort != null ? destinationPort.hashCode() : 0); result = 31 * result + (ipProtocol != null ? ipProtocol.hashCode() : 0); result = 31 * result + (sourceIp != null ? sourceIp.hashCode() : 0); result = 31 * result + (sourcePort != null ? sourcePort.hashCode() : 0); return result; }
public String value() { return name().toLowerCase(); }
@Override public String toString() { return value(); }
public static FirewallDirection fromValue(String type) { try { return valueOf(checkNotNull(type, "type").toUpperCase()); } catch (IllegalArgumentException e) { return null; } } }
public String value() { return name().toLowerCase(); }
ruleObject.addProperty("direction", rule.getDirection().value());
ruleObject.addProperty("direction", rule.getDirection().value());
ruleObject.addProperty("direction", rule.getDirection().value());