16 package org.openkilda.messaging.command.flow;
24 import com.fasterxml.jackson.annotation.JsonCreator;
25 import com.fasterxml.jackson.annotation.JsonInclude;
26 import com.fasterxml.jackson.annotation.JsonProperty;
27 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
34 @JsonInclude(JsonInclude.Include.NON_NULL)
44 @JsonProperty(
"meter_id")
47 @JsonProperty(
"criteria")
62 public RemoveFlow(@JsonProperty(TRANSACTION_ID) Long transactionId,
63 @JsonProperty(FLOW_ID) String flowId,
64 @JsonProperty(
"cookie") Long cookie,
65 @JsonProperty(
"switch_id")
SwitchId switchId,
66 @JsonProperty(
"meter_id") Long meterId,
68 super(transactionId, flowId, cookie, switchId);
70 if (meterId != null && meterId < 0L) {
71 throw new IllegalArgumentException(
"need to set non negative meter_id");
73 this.meterId = meterId;
74 this.criteria = criteria;
RemoveFlow(@JsonProperty(TRANSACTION_ID) Long transactionId, @JsonProperty(FLOW_ID) String flowId, @JsonProperty("cookie") Long cookie, @JsonProperty("switch_id") SwitchId switchId, @JsonProperty("meter_id") Long meterId, @JsonProperty("criteria") DeleteRulesCriteria criteria)
static final String TRANSACTION_ID
static final String FLOW_ID